/* Colour Palette Definition */
:root {
	--cWhite: #fcfcfc;
	--cBlack: #353535;
	--cGrey: #3a4b35;
	--cLightBackground: #F1F1ED;
	--cDarkBackground: #E5E5E0;
	--cBorder: #a8a8a8;
	--cPrimary: #326176;
	--cPrimaryDark: #325076;
	--cPrimaryLight: #498dac;
	--cPrimaryVeryLight: #7bafc7;
	--cPrimaryAlmostWhite: #f7f7f7;
	
	--cLink: #597d3e;
	--cOld: #76323F;
}




/* ===================================================================== */
/* Global */
body {
	background-color: var(--cWhite);
	font-family: "Trebuchet MS", Helvetica, sans-serif;
	margin: 0;
	padding: 0;
	text-align: justify;
	text-justify: inter-word;
}
.emphasis {
	color: var(--cPrimaryDark);
	font-weight: bold;
}
footer {
    margin-bottom: 200px;
}

/* ===================================================================== */
/* Header */
#header {
	background-color: var(--cLightBackground);
	margin: 0;
	border-bottom: 2px solid var(--cBorder);
	padding-top: 10px;
	padding: 0px;
}
#header h1 {
	color: var(--cBlack);
	font-size: 3.1em;
	margin: 0;
	letter-spacing: -2px;
	text-decoration: none;
	border: none;
}
#header h2 {
	color: var(--cGrey);
	font-size: 1.5em;
	padding-top: 5px;
	margin: 0px;
	letter-spacing: -0.8px;
	font-weight: 400;
}
#handles {
	float: right;
	margin: 20px;
	margin-bottom: 0;
}
#handles img {
	height: 30px;
	padding: 10px 20px;
}
#handles img:hover {
	-webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
	filter: grayscale(100%);
	cursor: pointer;
}


/* ===================================================================== */
/* Navigation Flex */
#nav-outer {
	border-bottom: 2px solid #a8a8a8;
	background-color: #e5e5e0;
	padding: 1px;
}
#nav-outer a {
	text-decoration: none;
	color: unset;
	display: block;
	padding: 4px 16px;
}
#nav-inner {
	margin: 0 auto;
	max-width: 1200px;
	min-width: 600px;
	padding: 0;

	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-around;
	align-items: stretch;
	column-gap: 5px;
}
.nav-button {
	flex-grow: 1;
    text-align: center;
	font-size: 1.2em;
	color: #3a4b35;
	text-decoration: none;
	margin-top: 2px;
}
.nav-button:hover {
	background-color: #d9d9d2;
	border-radius: 10px;
	cursor: pointer;
	/* font-weight: bold; */
	/* box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); */
}
#nav-inner .active {
	color: var(--cPrimaryDark);
	font-weight: bolder;
	border: 2px solid var(--cBorder);
	background-color: #d9d9d2;
	border-radius: 10px;
	margin-top: 0;
}






/* ===================================================================== */
/* Content */
.content {
	padding: 20px 40px;
	margin-left: auto;
	margin-right: auto;
	max-width: 1200px;
	min-width: 600px;
}
.content h1 {
	color: #353535;
	font-size: 1.7em;
	margin-top: 0;
	margin-bottom: 8px;
	border-bottom: 7px solid #3C7A89;
	/* border-bottom: 7px solid #76323F; */
}
.content h2 {
	color: #353535;
	font-size: 1.1em;
	margin-top: 0;
	margin-bottom: 8px;
}
.content p {
	color: #353535;
	font-size: 1.1em;
	margin: 7px 0;
	line-height: 1.4;
}
.content a {
	text-decoration: none;
	font-weight: bold;
	color: var(--cLink);
}
.content ul {
    margin-top: 0;
    display: table;
}
.content li {
    color: #353535;
    font-size: 1.1em;
    line-height: 1.4;
}
.content li > ul > li {
    font-size: 1em;
}



/* ===================================================================== */
/* Images */
.caption {
    /* Caption */
    text-align: center;
    margin-top: 0;
    font-size: 0.9em !important;
    color: var(--cGrey) !important;
}
.img-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    align-content: stretch;
    column-gap: 10px;
}
.img-row > .img-box {
    flex-grow: 1;
    flex: 1 1 0px;
    /* border: 1px solid black; */
    text-align: center;
    padding-top: 20px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 15px;
    border-radius: 10px;
}
.img-row > .img-box > img {
    border-radius: 10px;
    width: 80%;
    max-width: 300px;
}




/* ===================================================================== */
/* Phones and narrow screens */
@media screen and (max-width: 800px) {
	.content.project img {
		float: none;
		max-width: 500px;
		max-height: 500px;
		margin-right: 0;
		margin-bottom: 20px;
	}
	.content.project h1 {
		display: block;
	}
	.content.project .image {
		text-align: center;
	}


}
