html, body {
	min-height: 100%;
	width: 100%;
}

body {
	max-width: 1050px;
	margin: auto;
	overflow-y: scroll;
	background: #E8EFF2;
	font-family: "Markazi Text", serif;
	font-size: 16pt;
	font-weight: 400;
	color: #2B1126;
}

[lang=zh] {
	font-family: "Kaiti SC", cursive;
	font-size: 20pt;
}

a {
	color: #2D82B7;
	text-decoration: none;
}

header {
	position: sticky;
	z-index: 1;
}

@media (max-width:800px) {
	.svg_dots {
		width: 20px;
		height: 20px;
		cursor: pointer;
		margin-left: -6px;
		padding-top: 20px;
	}
	
	header {
		top: 0;
		width: 90%;
		height: 60px;
		margin: auto;
		background: #E8EFF2;
		opacity: 95%;
	}
	
	header>a {
		display: inline-block;
	}
	
	nav {
		position: fixed;
		top: 60px;
		left: 0;
		width: 100%;
		max-height: 0%;
		background: #E8EFF2;
		overflow: hidden;
		transition: max-height 0.2s;
	}
	
	nav ul {
		width: 90%;
		margin: auto;
		margin-top: 0;
	}
	
	nav li a {
		margin-bottom: 15px;
	}
	
	main {
		width: 90%;
		margin: auto;
		margin-top: 0;
	}
}

@media (min-width:801px) {
	header {
		float: left;
		width: 25%;
		top: 3em;
		margin-top: 3em;
	}
	
	.svg_dots {
		display: none;
	}
	
	nav ul {
		margin-left: 2em;
		margin-right: 2em;
	}
	
	nav li a {
		margin-bottom: 1em;
	}
	
	main {
		width: 75%;
		margin-top: 3em;
		float: right;
	}
}

nav ul {
	list-style: none;
	padding-left: 0;
}

nav li a {
	display: block;
	text-align: left;
	text-transform: uppercase;
	font-size: 18pt;
	font-weight: 500;
}

nav li:hover a {
	font-weight: 700;
}

section {
	margin-right: 1em;
}

section h1 {
	line-height: 1em;
	margin-top: 0.5em;
}

#profile {	
	margin-bottom: 2em;
	text-align: left;
	line-height: 1em;
	display: flex;
	flex-flow: row-reverse;
	flex-wrap: wrap;
	justify-content: space-between;
}

#profile h1 {
	margin-bottom: 2em;
}

#profile .contact {
	flex-grow: 1;
	justify-content: center;
}

#profile img {
	width: 25%;
	min-width: 150px;
	height: auto;
	float: right;
	align-self: center;
	border-radius: 50%;
	border: 6px solid #2D82B7;
}

footer {
    clear: both;
	width: 100%;
	padding-top: 2em;
	padding-bottom: 1em;
	text-align: right;
}

footer span {
	margin-right: 1em;
}

/* Publication*/

.svg_pdf, .svg_parag, .svg_quote {
	width: 20px;
	height: 20px;
	margin-top: 5px;
	cursor: pointer;
	display: inline-block;
}

.abstract, .bibtex {
	display: none;
	font-size: smaller;
	border: 1px solid #2D82B7;
	border-radius: 5px;
	padding-left: 1em;
	padding-right: 1em;
	margin-bottom: 0.5em;
}

pre {
	white-space: pre-wrap;
	tab-size: 4;
	font-size: small;
}

/* Misc */

#map {
	width: 100%;
	height: 400px;
	margin-top: 1em;
}