* {
    box-sizing: border-box;
}

/* Style the body */
body {
    font-family: Arial;
    margin: 0;
}

/* Title header */
.header {
    padding: 15px;
    text-align: center;
    background: #1BABBE;
    color: white;
    word-break: break-word;
}

/* Style the top navigation bar */
.navbar {
    display: flex;
    background-color: #333;
}

/* Style the navigation bar links */
.navbar a {
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    text-align: center;
}

/* Change color on hover */
.navbar a:hover {
    background-color: #ddd;
    text-decoration: none;
    color: black;
}

/* Language setting dropdown */

/* Dropdown Button */
.dropbtn {
    background-color: #333;
    display: flex;
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: absolute;
    right: 0px;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd;}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {background-color: #ddd; color: black;}

/* Column container */
.row {  
    display: flex;
    flex-wrap: wrap;
}

/* Main column */
.main {
    flex: 0%;
    background-color: white;
    padding: 20px;
    width: 100%;
    word-break: break-word;
}

/* YouTube limiter */
.limiter {
	max-width: 1000px;
}

/* YouTube container */
.container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

/* YT video */
.video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* wrapping of the pre-formatted text (code) */
pre { 
    white-space: pre; 
    white-space: -moz-pre-wrap; 
    white-space: -o-pre-wrap; 
    white-space: pre-wrap; 
    word-wrap: break-word; 
    word-break: break-all;
    /*width: 700px; */
    overflow: auto;
}

/* All the standard links */
a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:active {
    text-decoration: underline;
}

/* standard images, stretch but limit */
img {
    width: 100%;
    max-width: 800px;
}

audio {
    max-width: 100%;
}

/* The photo of me */
#myPhoto {
	width: 50%;
	height: auto;
   	float: right;
   	padding: 0px 20px;
}

/* table of contents */
.sidebar {
	background: #f9f9f9;
	border: 1px solid #aaa;
	padding: 15px;
	width: auto;
	height: auto;
	text-align: justify;
	font-size: 0.75em;
}

a.backToTop:link, a.backToTop:visited {
	background-color:#f9f9f9;
	color: black;
	padding: 5px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
}

a.backToTop:hover, a.backToTop:active {
	background-color: #ddd;
}

a.toc {
	color: black;
}

.backToTop {
	border: 1px solid #aaa;
	width: 100px;
	height: auto;
	bottom: 0;
	left: 0;
	font-size: 0.75em;
	position: fixed;
}

/* Responsive layout */

@media (max-width: 700px) {
    .row, .navbar {   
        flex-direction: column;
    }
  	#myPhoto {
		width: 100%;
		height: auto;
   		float: right;
   		padding: 0px 0px;
	}
	.dropdown {
	    position: relative;
	}
	.dropbtn {
	    width: 100%;
	    justify-content: center;
	}
	.dropdown-content {
		right: 0;
		width: 100%;
	}
    .header {
        font-size: 0.75em;
    }
    .main {
        font-size: 0.75em;
    }
    .sidebar {
        font-size: 0.75em;
    }
}