body {
	font-family: 'Barlow', sans-serif;
	font-weight: 300;
	font-size: 12pt;
	background-color: #495464;
	color: #f4f4f2;
	text-align: center;
}

em {
	font-weight: 500;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.1s;
}
a:hover, a:active {
	color: #0070c0;
}

/* HEADER */

#header {
	overflow: hidden;
	background: #495464;
	color: #f4f4f2;
	padding: 44px 26px;
	text-align: center;
	max-width: 100vw;
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
}
#header h1 {
	font-size: 26pt;
}
#header h2, #header h3 {
	font-size: 14pt;
	margin-top: 6px;
}
#header h3 {
	color: #bbbfca;
}
#header a, #footer a {
	transition: color 0.1s;
}
#header a:hover, #footer a:hover {
	color: #b3c5db;
}

/* MAIN CONTENT */

#main {
	width: 100%;
	margin: 0 auto;
	background-color: #f4f4f2;
	color: #333a45;
}

#main_wrapper {
	width: 100%;
}
#content {
	padding: 26px 0px 26px 26px;
	text-align: left;
	overflow: hidden;
}
#content p {
	margin-bottom: 16px;
}
#content h1 {
	color: #495464;
	font-size: 20pt;
	margin-bottom: 22px;
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
}
#content h2 {
	color: #495464;
	font-size: 18pt;
	margin-bottom: 6px;
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
}
#content h3 {
	color: #495464;
	font-size: 14pt;
	margin: 22px 0 16px;
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	text-align: center;
}
#content h4 {
	color: #495464;
	font-size: 14pt;
	margin-bottom: 16px;
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
}
#content h5 {
	color: #495464;
	font-size: 12pt;
	margin-bottom: 6px;
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
}
#content ul {
	list-style: disc;
	margin-bottom: 36px;
}
#content ul.tight {
	margin-bottom: 16px;
}
#content p.description ~ ul {
	margin-bottom: 16px;
}
#content ul li {
	margin: 14px 0 14px 3em;
}
#content ul.tight li {
	margin: 6px 0 6px 3em;
}
#content hr {
	border: 1px solid #d8d8d8;
	margin: 24px 0;
}
#content p i, #content li i {
	font-style: italic;
}
#content p + h1 {
	margin-top: 44px;
}
#content p.contact-info {
	line-height: 150%;
}
#content p.biography, #content p.description, #content div.thesis-abstract p {
	text-align: justify;
}
#content p.person-footer {
}
#content p.biography img {
	float: left;
	max-width: 240px;
	max-height: 240px;
	margin: 12px 12px 12px 0;
}
#content img.photobig {
	display: block;
	max-width: 100%;
	max-height: 330px;
	margin: 20px 0;
}
#content select {
	font-size: 12pt;
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	color: #495464;
	width: 180px;
	padding: 6px;
}

#content img.thumb {
	max-width: 100%;
	margin-bottom: 16px;
	max-height: 180px;
	/* box-shadow: 0 0 5px #495464; */
}

@media (min-width: 540px){
	#content img.right {
		display: inline-block;
		float: right;
		margin-left: 10px;
		margin-right: 5px;
	}
}

#content img {
	transition: box-shadow 0.2s;
}
#content a img:hover {
	box-shadow: 0 0 5px #000 !important;
}

#content div.thesis-block {
	min-height: 180px;
}

#content div#thesis-images img {
	max-width: 95%;
	display: block;
	margin: 14px auto;
	max-height: 440px;
}

#content img.with-border {
	border: 2px solid #ccc;
}

#content .slider-main .mainslide {
	height: 340px;
	background-size: cover;
	position: relative;
	display: flex;
	flex-direction: column-reverse;
}
#content .slider-main .mainslide .text {
	padding: 14px 14px 16px;
	background-color: rgba(0, 0, 0, 0.5);
}
#content .slider-main .mainslide h1 {
	color: #f4f4f2;
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	font-size: 20pt;
	margin: 0;
}
#content .slider-main .mainslide h2 {
	color: #f4f4f2;
	font-family: Barlow, sans-serif;
	font-weight: 300;
	font-size: 12pt;
	margin-top: 14px;
}

#content .slider-people .person {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: center;
	/* height: 200px; */
	max-width: 80%;
	/* background: #d00; */
	padding: 20px 40px;
}
#content .slider-people .person img {
	max-height: 200px;
	max-width: 150px;
	border-radius: 5%;
	box-shadow: 0 0 5px #495464;
}
#content .slider-people .person .description {
	margin: auto 20px;
	height: 140px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: left;
	padding: 0 0 0;
}
#content .slider-people .person .description h1 {
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	font-size: 16pt;
	margin: 0 0 10px;
}
#content .slider-people .person .description h2 {
	font-family: Barlow, sans-serif;
	font-weight: 300;
	font-size: 12pt;
}
#content .slider-people ul li, #content .slider-main ul li {
	margin: 0 5px;
}

a.download-button {
	display: inline-block;
	padding: 0.7em 2.1em;
	background-color: #495464;
	color: #f4f4f2;
	transition: color .2s linear, background-color .2s linear;
}

a.download-button:hover {
	color: #fff;
	background-color: #3d4858;
}

/* CODE HIGHLIGHTING */

code, pre {
	font-family: Consolas, Monaco, 'Andale Mono', 'Lucida Console', monospace;
	hyphens: none;
}

pre[class*="language-"] {
	font-size: 0.8em;
	background: #fdfdfd;
	border: 1px solid #ccc;
	margin-bottom: 16px;
	margin-top: 16px;
}

pre {
	max-height: 36em;
	overflow: auto;
}

pre > code.highlight {
	outline: .4em solid red;
	outline-offset: .4em;
}

/* MENU */

#menu {
	text-align: left;
	background-color: #e8e8e8;
	font-size: 12pt;
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	color: #495464;
}
#menu li {
	cursor: pointer;
	border-bottom: 1px solid #bbbfca;
	padding: 20px 16px 8px;
}
#menu li:hover {
	color: #0070c0;
}
#menu ul.submenu {
	background-color: #e8e8e8;
	display: none;
	z-index: 1000;
}

#menu .languages {
	text-align: right;
	padding: 16px 8px 14px;
}

#menu .language_flag_wrapper {
	display: inline-block;
	margin: 0 8px;
}

#menu .language_flag {
	height: 16px;
	border: 2px solid #d8d8d8;
}

@media (max-width: 768px){
	#content {
		padding-right: 26px;
		max-width: 100%;
		box-sizing: border-box;
	}
	button#show_menu {
		display: block;
		width: 100%;
		background-color: #e8e8e8;
		padding: 0 20px;
		height: 45px;
		border: 0;
		margin: 0;
		font-size: 16pt;
		color: #bbbfca;
		cursor: pointer;
	}
	#menu {
		display: none;
		border-top: 1px solid #bbbfca;
	}
	#menu.show_menu {
		display: block;
	}
	#menu ul.submenu.show_menu {
		display: block;
	}
	#menu ul.submenu li {
		margin-left: 26px;
	}
}

@media (min-width: 769px){
	#main_wrapper {
		display: flex;
		flex-flow: row-reverse wrap;
		max-width: 900px;
		margin: 0 auto;
	}
	#content {
		flex: 5;
	}
	#menu {
		display: block;
		margin-left: 22px;
		flex: 2;
		padding-bottom: 44px;
		/* max-width: 250px; */
	}
	#menu .two-level-menu {
		position: relative;
	}
	#menu .two-level-menu:hover ul.submenu {
		display: block;
	}
	button#show_menu {
		display: none;
	}
	#menu li {
		position: relative;
	}
	#menu ul.submenu {
		position: absolute;
		width: 260px;
		left: -260px;
		top: 0px;
	}
	#menu ul.submenu li {
		border: none;
		padding: 13px;
		margin: 0;
	}
}

/* FOOTER */

#footer {
	max-width: 900px;
	display: block;
	margin: 0 auto;
	padding: 28px 0;
	color: #f4f4f2;
	text-align: center;
}

#footer p {
	text-align: left;
	width: 100%;
	max-width: 900px;
	line-height: 125%;
	padding: 0 26px;
	box-sizing: border-box;
	margin: 8px 0;
}

#footer img.logo {
	display: inline-block;
	max-height: 72px;
	margin-top: 8px;
	margin-right: 30px;
}