/* main containers */
body {
	min-width: 910px
	max-width: 910px;
	font-family: sans-serif;
	/* background: black; */
}
div.main-container {
	min-width: 910px; /* take footer padding into account */
	max-width: 910px; /* to center */
	margin: auto; /* to center */
	background-repeat: no-repeat;
	background-size: auto 100%;
	background-position: center;
}

/* header */
div.header {
	display: flex;
	justify-content: space-between;
	align-items: center; /* vertically centred */
	background-color: #222; /*black; */
	font-variant: small-caps;
	color: white;
	padding: 10px 20px 10px 20px;
}
div span.contact a {
	align-items: center; /* vertically centred */
	font-size: 24px;
	color: white;
	text-decoration: none;
	padding-left: 5px;
	padding-right: 5px;
}
div span.contact a:hover {
	color: cyan;
}

/* navigation bar */
nav.navigation {
	position: absolute;
	width: 910px; /* to centre if position absolute */
	padding: 10px 0 20px 0;
	font-size: 1.2em;
	font-weight: bold;
	background: rgba(0,0,0,0); /* do not change */
	transition: opacity 1s; /* applied when scrolling (see utils.js) */
}
nav.navigation.blackbg {
	background: rgba(0,0,0,1); /* do not change */
}
nav ul {
	display: table; /* to center */
	margin: 0 auto; /* to center */
	list-style-type: none;
	padding: 0;
	overflow: hidden;
}
nav li {
	float: left;
}
nav li a, .dropbtn {
	display: inline-block;
	color: white;
	text-align: center;
	padding: 0 16px 0 16px;
	text-decoration: none;
	-webkit-text-stroke: 0.5px black; /* text outline */
}
nav li a:hover, .dropdown:hover .dropbtn {
	-webkit-text-stroke: 0; /* remove text outline */
}
nav li.dropdown {
	display: inline-block;
}
.dropdown-content {
	display: none;
	position: absolute;
	min-width: 160px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* do not change */
	z-index: 2;
	font-variant: normal;
	font-size: 0.8em;
}
.dropdown-content a {
	display: block;
	color: white;
	padding: 8px 16px 4px 16px;
	text-decoration: none;
	text-align: left;
}
.dropdown-content a:hover {
	text-decoration: none;
	color: cyan;
}
.dropdown:hover .dropdown-content {
	display: block;
}

/* content */
div.content {
	height: 600px; /* fixed height but ... */
	overflow-y: scroll; /* ... allow vertical scrolling */
	color: white;
	background: rgba(0,0,0,0.2);
}
div.content.blackbg {
	background: rgba(0,0,0,1);
}
div.content div.button {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 2% 0 5% 0;
}
div.content button.top {
	background: black;
	font-size: 1em;
	font-variant: small-caps;
	color: white;
	padding: 5px;
	border: 1px solid white;
	border-radius: 5px;
}
div.content button.top:hover {
	background: cyan;
	color: black;
	border: 1px solid black;
}
/* home */
div.home {
	background: rgba(0,0,0,0.2); /* do not change */
	box-shadow: 0 0 0.8em 0.8em rgba(0,0,0,0.2); /* do not change */
	color: white;
	position: relative;
	top: 28%;
	left: 2%;
	width: 50%;
	padding: 0.5em 1em;
	font-size: 1em;
	font-style: italic;
	text-align: justify;
	line-height: 1.5em;
	border-radius: 5px;
}
div.home a {
	color: white;
}
div.home a:hover {
	color: cyan;
}
div.home hr.left {
	width: 80%;
	margin: 0 20% 1.5em 0;
}
div.home hr.center {
	width: 80%;
	margin: 1.5em auto 0 auto;
}
div.home hr.right {
	width: 80%;
	margin: 1.5em 0 0 20%;
}
/* profile */
div.profile {
	background: rgba(0,0,0,0.2); /* do not change */
	box-shadow: 0 0 0.8em 0.8em rgba(0,0,0,0.2); /* do not change */
	color: white;
	position: relative;
	top: 10%;
	left: 4%;
	width: 90%;
	padding: 0.5em 1em;
	font-size: 1em;
	font-style: italic;
	text-align: justify;
	line-height: 1.5em;
	border-radius: 5px;
}
div.profile a {
	color: orange;
	text-decoration: none;
}
div.profile a:hover {
	color: cyan;
}

/* projects  */
/* animation code */
@keyframes fade-in {
  from {opacity: 0;}
  to {opacity: 1;}
}
div.projects {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	font-size: 0.9em;
	line-height: 1.5em;
	margin: 10% 5% 5% 5%;
	text-align: justify;
	animation: fade-in ease 2s;
}
div.projects h2 {
	text-align: left;
}
div.projects section {
	animation: fade-in ease 2s;
}
div.projects img.thumbnail {
	width: 40%;
	margin: 5% 2% 5% 0;
	border-radius: 5px;
}
div.projects img.float-left {
	float: left; padding-right: 5%;
}
div.projects figure {
	margin: 5% auto 5% auto;
}
div.projects figcaption {
	text-align: justify;
}
div.projects select {
	margin: 2% 0 2% 0;
	font-size: 1em;
	padding: 2px;
	border-radius: 2px;
}
div.projects div {
	width: 50%;
	margin: auto 0 auto auto; /* vertically center p */
	display: table-cell;
	vertical-align: middle;
}
div.projects > div span {
	display: block;
	font-weight: bold;
}
div.projects a {
	display: inline-block;
	text-decoration: none;
	color: orange;
	cursor: pointer;
}
div.projects a:hover {
	color: cyan;
}
div.projects a.caption {
	padding-left: 2%;
}
/* Scrolling instruction */
/* The animation code */
@keyframes fade-out {
  from {opacity: 1;}
  to {opacity: 0;}
}
div.content > div.instruction {
	z-index: 2;
	position: absolute;
	margin-left: auto;
	margin-right: auto;
	left: 0;
	right: 0;
	top: 14%;
	text-align: center;
	width: 200px;
	background: linear-gradient(rgba(255,0,0,0),rgba(255,0,0,0.8));
	font-size: 0.9em;
	border-radius: 5px;
	animation-name: fade-out;
	animation-duration: 2s;
	animation-iteration-count: 4;
	animation-direction: alternate-reverse;
	animation-timing-function: ease-out;
}
div.content > div.instruction span {
	display: block;
	margin-top: 2%;
	font-weight: bold;
	color: white;
}
span#down-arrow {
	font-size: 1.5em;
}

/* copyright footer */
footer {
	width: 900px;
	margin: auto;
	display: flex;
	justify-content: space-between;
	background-color: #222; /*black; */
	color: white;
	padding: 5px;
	font-size: 0.8em;
	font-variant: small-caps;
}
