header {
	display: inline-block;
	width: 95%;
	font-weight: bold;
}

header > * { width: 100%; }

.titlebar {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: rgb(202, 149, 1);
	padding: 16px 0;
}

.title {
	font-size: 50px;
	text-transform: uppercase;
	text-align: center;
}

.title a {
	text-decoration: blink;
	color: inherit;
}

.name {
	font-size: 20px;
}

header nav {
	display: flex;
	font-size: 20px;
	background-color: rgb(202, 149, 1);
}

header nav a {
	text-align: center;
	color: rgb(0,0,0);
	text-decoration: blink;
	flex-grow: 1;
	display: inline-block;
}

@media screen and (max-width: 1080px) { /* small screens? */

	header nav {
		flex-direction: column;
		position: fixed;
		top: 0;
		left: -33vw;
		width: 33vw;
		height: 100vh;
		z-index: 998;
		transition: left 0.25s ease-in;
	}

	header nav div.dropdown {
		display: flex;
		flex-direction: column;
		flex-grow: 4;
	}

	header nav div.dropdown > a.dropdown_title { display: none; }

	header.navActive nav { left: 0; }

	header nav a {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	#openNav, #closeNav {
		position: absolute;
		cursor: pointer;
		top: 8px;
		left: 8px;
	}

	#openNav {
		width: 48px;
		z-index: 999;
		position: absolute;
		color: rgb(202, 149, 1);
		transition: left 0.25s ease-in, opacity 0.25s ease-in;
	}

	header.navActive #openNav {
		left: calc(33vw + 8px);
		opacity: 0;
	}

	#closeNav {
		position: absolute;
	}

	header .material-icons { font-size: 48px; }


}

@media screen and (min-width: 1080px) { /*large-enough screen*/

	header nav {
		height: 36px;
		line-height: 36px;
	}

	header nav a, header nav > div.dropdown {
		position: relative;
	}

	header nav div.dropdown {
		height: 100%;
		overflow-y: hidden;
		flex-grow: 1;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-items: center;
		background-color: rgb(202, 149, 1);
		transition: .5s height ease;
		z-index: 999;
	}

	header nav div.dropdown > a.dropdown_title { cursor: pointer; }

	header nav div.dropdown:hover, header nav div.dropdown.active { height: 500%; }
	header nav div.dropdown:hover { transition-delay: .1s; }

	header nav div.dropdown > a { width: 100%; }

	header nav div.dropdown > a:after { content: "\00a0\00a0\00a0"; }
	header nav div.dropdown > a:before {
		content: "★ ";
		visibility: hidden;
	}
	header nav div.dropdown > a.current:before { visibility: visible; }

	header nav > a.current:before, header nav > div.dropdown.current a.dropdown_title:before {
		content: "";
		width: 0;
		height: 0;
		position: absolute;
		left: 50%;
		transform: translate(-50%);
		top: 100%;
		border-width: 16px;
		border-color: rgb(202, 149, 1) transparent;
		border-style: solid;
		border-bottom: none;
	}

	header nav > a.current:hover:after {
		content: "";
		width: 0;
		height: 0;
		position: absolute;
		left: 50%;
		transform: translate(-50%);
		top: 100%;
		border-width: 16px;
		border-color: rgba(255, 255, 255, 0.3) transparent;
		border-style: solid;
		border-bottom: none;
	}

	#openNav, #closeNav { display: none; }

}

header nav a:hover {
	background-color: rgba(255,255,255,0.3);
}

main {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	position: relative;
	margin: 16px 0 64px 0;
	padding-bottom: 64px;
	width: 95%;
	min-height: 75vh;
	border: 5px solid rgb(202, 149, 1);
}

main:before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	bottom: 0; right: 0;
	z-index: 1;
	background: url("/assets/img/carbon_fiber_background.jpg");
	background-repeat: repeat;
	background-size: 5%;
	-webkit-filter: blur(2px);
	-moz-filter: 	blur(2px);
	-o-filter: 		blur(2px);
	-ms-filter: 	blur(2px);
	filter: 		blur(2px);
}

main > * { z-index: 2; }

@media screen and (min-width: 1080px) { /*large-enough screen*/

	main .images {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-around;
		width: 25%;
		margin-top: 112px;
	}

	main .images .img {
		width: 100%;
		text-align: center;
	}

	main .images .img img { width: 90%; }

	main .md { width: 75%; }

	main:not(.no-images) .md h1:first-child {
		margin-left: -33.8%;
		text-decoration: none;
		width: calc(133% + 24px);
		border-bottom: 5px solid currentColor;
	}

}

@media screen and (max-width: 1080px) { /* small screens? */

	main .images { display: none; }

	main .md {
		width: 100%;
	}

}

main iframe.document {
	width: 100%;
	border: solid 0px black;
}

main.no-images .md {
	width: 100%;
	margin-left: 10%;
}

main .md {
	color: rgb(202, 149, 1);
	padding-right: 24px;
}

main .md h1 {
	font-size: 40px;
	text-align: center;
	margin: 32px 0;
	text-decoration: underline;
}

main .md h2 {
	font-size: 30px;
	margin: 32px 0 16px 0;
	text-align: center;
	font-weight: bold;
}

main .md h3 {
	font-size: 28px;
	text-align: center;
	margin: 16px 0;
}

main .md p {
	font-size: 24px;
	text-indent: 50px;
}

main .md li {
	font-size: 24px;
}

main .md p + iframe.document,
main .md p + div.double-viewer { /* iframe or .double-viewer after a p */
	margin-top: 16px;
}

main .md div.double-viewer {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
}

main .md div.double-viewer nav {
	background-color: rgb(202, 149, 1);
	width: 100%;
	display: flex;
	justify-content: space-around;
	align-items: center;
}

main .md div.double-viewer nav div {
	width: 50%;
	text-align: center;
	cursor: pointer;
	color: black;
	font-size: 36px;
	padding: 4px 0;
}

main .md div.double-viewer nav div:hover { background-color: rgba(0, 0, 0, 0.25); }
main .md div.double-viewer[data-which="first"] nav div.first,
main .md div.double-viewer[data-which="second"] nav div.second {
	text-decoration: underline;
}

main .md div.double-viewer iframe.document { display: none; }
main .md div.double-viewer[data-which="first"] iframe.document:nth-of-type(1),
main .md div.double-viewer[data-which="second"] iframe.document:nth-of-type(2) { 
	display: initial;
}

main .md a:link, main .md a:hover { color: rgb(0, 255, 255); }
main .md a:visited, main .md a:active { color: rgb(0, 125, 125); }

body[data-location$='-sources'] main .md { overflow: hidden; }

body[data-location$='-sources'] main .md li {
	color: rgb(0, 125, 125);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

main .md h1 a.heading-link, main .md h2 a.heading-link, main .md h3 a.heading-link {
	font-size: 16px;
	color: inherit;
	text-decoration: none !important;
	margin-left: 0.75em;
	visibility: hidden;
}

main .md h1:hover a.heading-link, main .md h2:hover a.heading-link, main .md h3:hover a.heading-link { visibility: visible; }

footer .center a { padding: 0 .5em; }
footer .center a:not(:last-child) {	border-right: solid 1px black; }