:root {
	--text: #445429;
	--line: #94b454;
	--accent: #3b5d8e;
	--bg: #d3d4d6;
	--fill: whitesmoke;
}

body{
	color: var(--text);
	font-family: "Kiwi Maru", serif;
}

u {    
    border-bottom: 3px dashed var(--text);
    text-decoration: none;
}

* { 
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	scrollbar-color: var(--text) var(--line) 
}

*::-webkit-scrollbar { width: 20px; }
*::-webkit-scrollbar-track { background: var(--line); }
*::-webkit-scrollbar-thumb { background-color: var(--text); border: transparent; }

img { 
	max-width: 100%;
}

nav {
	float: left;
	width: 15%;
	height: 100vh;
	position: relative;
	background-image: url("images/ctal-sliver.png");
	background-color: var(--bg);
}

nav div {
	height: fit-content;
	width: fit-content;
	position: absolute;
	top: 50%;
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	right: -1.5vw;
	text-align: right;
}

nav a {
	display: block;
	margin: 10px 0;
	padding: 0;
	font-size: 1.5em;
	text-decoration: none;
	color:var(--fill);
	filter: drop-shadow(1px 1px 0 var(--text)) 
			drop-shadow(-1px 1px 0 var(--text)) 
			drop-shadow(0 -1px 0 var(--text)) 
			drop-shadow(1px 0 var(--text));
}

nav a:hover, nav a:focus {
	color: var(--accent);
}

main {
	float:left;
	width: 82%;
	height: 100vh;
	padding: 2em;
	overflow-y: scroll;
	background-image: url("images/bg-two-knits-2000x1465px.png");
	background-color: var(--bg);
}

.container { 
	max-width: 1500px;
}

.btn {
	margin: 40px 0 70px;
	background: #3b5d8e;
	padding: 15px 40px;
	border-radius: 5px;
}

section {
	margin: 2em 0;
	padding: 1em 2em;
	background-color: var(--fill);
	border: 5px solid: var(--line);
}

.stripe {
	float: left;
	width: 3%;
	height: 100vh;
	background-color: var(--line);
}



hr {
	border: none;
	border-top: 5px solid var(--line);
}

header {
	font-size: 2em;
	margin-bottom: 2rem;
	color:var(--fill);
	filter: drop-shadow(1px 1px 0 var(--text))
			drop-shadow(-1px 1px 0 var(--text))
			drop-shadow(0 -1px 0 var(--text))
			drop-shadow(1px 0 var(--text));
}

h2 {
	margin: 1rem 0;
	color:#94b454;
}

h3 {
	font-size: 3em;
	font-weight: bolder;
	padding-bottom: 10px;
	text-align: center;
	border-bottom: 3px solid #94b454;
} 

h4, h5, h6, p, table, details, cite, blockquote {
	margin: 1rem 0;
}

img {
	margin: 1rem 0;
}

ul, ol, dl {
	margin: 1rem 0 1rem 2rem;
}

ul ul, ol ol { 
	margin: 0 0 0 2rem;
}

p, table,  ul, ol, dl {
	font-size: 1rem;
}

p2 {
	font-size: 1rem;
	color: var(--line)
}

a { 
	color: var(--accent);
	padding: 2px;
}

p a:hover { 
	color: var(--fill);
	background-color: var(--accent);
}

h6 { font-size: 1em; }
h5 { font-size: 1.25em; }
h4 { font-size: 1.5em; }
h3 { font-size: 1.75em; }
h2 { font-size: 2em;
	text-align: center;
	background-color: var(--accent);
	padding: 5px;
}

blockquote {
	background-color: var(--accent);
	color: var(--fill);
	padding: 1em;
}

blockquote a, blockquote code {
	color: var(--text);
}

cite { 
	display: block;
	text-align: right;
}

code, details, pre {
	background-color: var(--bg);
}

code { 
	font-family: 'Courier New', monospace; 
	padding: 2px;
}

details, pre {
	padding: 1em;
}

pre { overflow-x: auto; }

details p { margin: 1rem 0 1rem 2rem; }

table {	border: 5px solid var(--line); }
tr, td, th { border: 2px solid var(--line); }
td, th { padding: 3px }

figcaption { 
	text-align: center;
	margin: -0.5em 1em 1em 1em;
}
/* Projects
-----------------------------------------*/
.project-item {
	display: grid;
	grid-template-columns: 300px 1fr;
	column-gap: 20px;
}
/* -----------------------------------------*/
/* Photogallery
-----------------------------------------*/
.photogallery {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	margin: 40px 20px 0 20px;
}

.photogallery .heading {
	width: 50%;
	padding-bottom: 50px;
}

.box {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.box .onecolumn{
	display: flex;
	flex-direction: column;
	width: 32.5%;
}

.box .onecolumn img{
	width: 100%;
	border-radius: 5px;
}
/* -----------------------------------------*/
footer { 
	font-size: 1em;
	text-align: center;
	background-color: var(--accent); 
	margin-top: 2em;
	padding: 5px;
}

footer a { color: var(--text); }

.flex-box {
    display:flex;
    flex-wrap:wrap;
    margin: -1em;
	align-items: flex-start;
}

.flex-box section {
	margin: 1em;
	}

.full { flex: 1 1 100%;}
.half { 
	flex: 1 1 calc(50% - 2em); 
	height: 430px;
	width: 50%;
	overflow: auto;
	float: left;
	position: relative;
	margin-left: -5px;
}
.third { 
	flex: 1 1 calc(33% - 2em); 
	height: 430px;
	width: 33%;
	overflow: auto;
	float: left;
	position: relative;
	margin-left: -5px;
	align-items: center;
}
.twothird { 
	flex: 1 1 calc(66% - 2em);
	height: 430px;
	width: 66%;
	overflow: auto;
	float: left;
	position: relative;
	margin-left: -5px;
}
.quarter { flex: 1 1 calc(25% - 2em); }
.threequarter { 
	flex: 1 1 calc(75% - 2em); 
	height: 2000px;
	width: 66%;
	overflow: auto;
	float: left;
	position: relative;
	margin-left: -5px;
}


@media screen and (max-width: 800px){

	nav, main, .stripe {
		float: none;
		width: 100%;
		height: fit-content;
	}
	
	nav { padding: 2vw }
	
	nav div {
		height: fit-content;
		width: 100%;
		position: static;
		-ms-transform: translateY(0);
		transform: translateY(0);
		text-align: right;
	}
	
	nav img {
		z-index: -1;
		position: absolute;
		left:0;
		max-height: 100%;
	}
	
	nav a {
		display: inline-block;
		margin: 5px;
	}
	
	nav a::after { content: " ↗"; }
	
	main { 
		overflow: auto;
		padding: 2em 1em;
	}
	
	header { 
		text-align: center;
		font-size: 1.5em;
	}
	
	section { padding: 0 1em; }
	
	.stripe { height: 30px; }
	
	*::-webkit-scrollbar { width: 10px; }
	
}