* {
	box-sizing: border-box;
}
body {
	font-family: Verdana, Tahoma, sans-serif;
	background-color: #222222;
	margin: 0;
}
#header-wrapper {
	box-shadow: 0 0 0.4em #111111;
	position: relative;
	z-index: 2;
}
header {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.8em;
	background-color: #1C2840;
	text-align: center;
	color: #F2F2F2;
	font-weight: bold;
	padding: 0.4em 0;
}
nav {
	background-color: #4C667C;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.5em;
	text-align: center;
	font-weight: bold;
}
nav a {
	text-decoration: none;
	color: #F2F2F2;
}
nav ul {
	display: flex;
	justify-content: center;
	align-items: center;
	list-style-type: none;
	margin: 0;
	padding: 0;
}
nav a {
	display: inline-block;
	padding: 0.4em 0.8em;
}
nav li {
	transition: background-color 0.15s ease-out;
}
nav li:hover {
	background-color: #5F7B94;
}
nav #active-page {
	background-color: #D9D0BF;
}
nav #active-page a {
	color: #222222;
}
#wrapper {
	margin-left: auto;
	margin-right: auto;
	width: 88%;
	position: relative;
	z-index: 1;
}
main {
	background-color: #F2F2F2;
	min-height: 20em;
	box-shadow: 0.2em 0.2em 1em #000000;
	padding-top: 2em;
	overflow: auto;
}
h1 {
	margin: 0;
}
h2 {
	text-align: center;
	font-size: 3em;
	color: #222222;
	margin: 0.25em auto;
	position: relative;
	z-index: 3;
}
h3 {
	text-align: center;
	font-size: 2.5em;
	color: #222222;
	margin: 0.5em;
}
h4 {
	text-align: center;
	font-size: 2.5em;
	color: #222222;
	margin: 0 auto;
	align-content: center;
}
h5 {
	text-align: center;
	font-size: 1.5em;
	color: #222222;
	margin: 1em auto 0.5em auto;
}
#dec-block {
	background-color: #D9D0BF;
	min-height: 5em;
	position: absolute;
	width: 100%;
	z-index: 2;
	padding: 1.5em;
}
.dec-block-content {
	background-color: #D9D0BF;
	min-height: 5em;
	width: 100%;
	position: relative;
	z-index: 3;
	display: flex;
}
.dec-block-content img {
	border: 0.4em solid #AD9F86;
}
.paragraph-box {
	text-align: center;
	font-size: 1.25em;
	width: 85%;
	max-width: 800px;
	margin: 0 auto;
	padding: 0.75em;
}
p {
	text-align: center;
	font-size: 1.15em;
	line-height: 1.3;
}
p a {
	color: #2E4159;
}
p a:hover {
	color: #4C667C;
}
footer {
	text-align: center;
	color: #F2F2F2;
	margin: 0.75em;
	font-size: 0.75em;
}

/* Home Page */
#home-banner {
	background-image: url(homebanner.jpg);
	background-size: auto 100%;
	background-repeat: repeat-x;
	background-position: center;
	height: 10em;
	position: relative;
	margin: 0 0 2em 0;
	z-index: 3;
}
#spotlight-box {
	display: flex;
	justify-content: center;
	gap: 1em;
	padding: 1.2em;
	background-color: #C3D6E6;
	margin-top: 2em;
	position: relative;
}
#spotlight-box img {
	width: 100%;
	border: 0.4em solid #99B0C7;
}

/* Projects Page */
.project-text {
	text-align: center;
	margin: 1em auto;
	width: 85%;
	max-width: 1000px;
	padding: 0 1em;
}
.rgrid-container img, .rgrid-container video, .lgrid-container img, .lgrid-container video, .tallgrid-container img {
	width: 100%;
	object-fit: cover;
}
.rgrid-container, .lgrid-container, .tallgrid-container {
	display: grid;
	width: 85%;
	max-width: 1000px;
	margin: 2em auto 0 auto;
	gap: 1em;
	grid-template-rows: auto auto;
}
.rgrid-container {
	grid-template-columns: 1fr 2fr;
}
.rgrid-hero {
	grid-column: 2;
	grid-row: 1 / span 2;
	height: 100%;
}
.lgrid-container {
	grid-template-columns: 2fr 1fr;
}
.lgrid-hero {
	grid-column: 1;
	grid-row: 1 / span 2;
	height: 100%;
}
.tallgrid-container {
	grid-template-columns: 47.5% auto;
	padding: 0;
}
.tallgrid-hero {
	grid-column: 1;
	grid-row: 1 / span 2;
	height: 100%;
}
.rgrid-1, .rgrid-2, .lgrid-1, .lgrid-2, .tallgrid-1, .tallgrid-2 {
	margin: 0;
	padding: 0;
}


/* About Me Page */
#about-flex {
	display: flex;
	margin: 0 auto;
	padding: 1.5em;
	justify-content: center;
	max-width: 850px;
	min-height: 20em;
}
#about-flex img {
	width: 17.5em;
	height: 17.5em;
}
#about-flex p {
	margin: 0 0 0 1em;
	padding: 0;
	text-align: left;
}
#linkedin-button a {
	display: block;
	text-decoration: none;
	color: #F2F2F2;
	text-align: center;
	text-decoration: none;
	margin: 0.75em 1em 0 1em;
	background-color: #2E4159;
	width: 10em;
	height: 2em;
	align-content: center;
	border-radius: 0.9em;
	font-size: 1.25em;
	transition: box-shadow 0.1s, background-color 0.1s;
}
#linkedin-button a:hover {
	background-color: #475D78;
	box-shadow: 0.1em 0.1em 0.3em #777777;
}
#linkedin-button a:active {
	background-color: #475D78;
	box-shadow: 0.05em 0.05em 0.15em #777777;
}
#table-background {
	background-color:#C3D6E6;
	padding: 1em 0 2em 0;
}
#table-div {
	padding: 0 1.5em;
	margin: 0 auto;
	max-width: 850px;
}
table {
	border-collapse: collapse;
	margin: 0 auto;
	border: 0.4em solid #99B0C7;
	background-color: #F2F2F2;
}
th {
	font-size: 1.75em;
	color: #F2F2F2;
	background-color: #2E4159;
	padding: 0.4em 0;
}
td {
	text-align: center;
	width: 33%;
	height: 3em;
}

/* Resume Page */
#resume-image {
	display: block;
	position: relative;
	z-index: 5;
	width: 80%;
	max-width: 785px;
	min-width: 28em;
	margin: 1.5em auto;
}
#pdf-download a {
	display: block;
	text-decoration: none;
	color: #F2F2F2;
	text-align: center;
	text-decoration: none;
	margin: 0.75em auto 1.5em auto;
	background-color: #2E4159;
	width: 9em;
	height: 2em;
	align-content: center;
	border-radius: 0.9em;
	font-size: 1.25em;
	transition: box-shadow 0.1s, background-color 0.1s;
}
#pdf-download a:hover {
	background-color: #475D78;
	box-shadow: 0.1em 0.1em 0.3em #777777;
}
#pdf-download a:active {
	background-color: #475D78;
	box-shadow: 0.05em 0.05em 0.15em #777777;
}
#more-info-div {
	display: flex;
	flex-direction: column;
	padding: 1em 0 2em 0;
	margin: 0 auto;
	width: 80%;
	max-width: 785px;
}
#library-div {
	display: flex;
	margin-top: 0.25em;
	gap: 1em;
}
#library-div p {
	text-align: left;
	margin-top: 0;
	margin-right: 0;
	font-size: 1.1em;
}
#library-pictures {
	display: flex;
	flex-direction: column;
	width: 21em;
	max-width: 50%;
	gap: 1em;
}
figure {
	display: flex;
	flex-direction: column;
	margin: 0;
	text-align: center;
	gap: 0.25em;
}
figcaption {
	font-size: 0.85em;
}

/* Contact Page */
form {
	width: 30em;
	margin: 1em auto;
	padding: 0.5em;
	display: flex;
	flex-direction: column;
	position: relative;
}
form span {
	position: absolute;
	left: -0.1em;
}
.required {
	color: #CC0000;
}
label {
	margin-bottom: 0.25em;
	margin-left: 0.2em;
}
input, textarea {
	width: 100%;
	font-family: Verdana, Tahoma, sans-serif;
	margin-bottom: 1em;
	border-radius: 0.2em;
	border: none;
	padding: 0.5em;
	border-bottom: solid 0.22em #CCCCCC;
	transition: border-bottom 0.2s;
}
input {
	height: 2.3em;
}
input:focus, textarea:focus {
	outline: none;
	border-bottom: solid 0.22em #4C667C;
}
textarea {
	min-height: 2.3em;
	height: 5em;
	max-width: 100%;
	min-width: 100%;
}
input[type="submit"] {
	padding: 0.4em;
	text-align: center;
	text-decoration: none;
	margin: 0.5em auto;
	background-color: #2E4159;
	width: 5.5em;
	height: 2em;
	justify-content: center;
	border-radius: 0.9em;
	font-size: 1.25em;
	transition: box-shadow 0.1s, background-color 0.1s;
	color: #F2F2F2;
	border: none;
}
input[type="submit"]:hover {
	background-color: #475D78;
	box-shadow: 0.1em 0.1em 0.3em #777777;
	cursor: pointer;
}
input[type="submit"]:active {
	background-color: #475D78;
	box-shadow: 0.05em 0.05em 0.15em #777777;
}

@media only screen and (max-width: 64em) {
	nav {
		font-size: 1.35em;
	}
	#wrapper {
		width: 100%;
	}
	main {
		box-shadow: none;
	}
	#about-flex {
		display: block;
	}
	#about-flex img {
		border: 0.4em solid #AD9F86;
		margin-bottom: 0;
		margin-right: 1.2em;
		float: left;
	}
	#about-flex p {
		margin: 0;
	}
	#linkedin-button {
		margin-left: 0;
	}
	td {
		text-align: center;
		width: 33%;
		height: 3.5em;
		padding: 0.5em;
	}
	#library-div {
		flex-direction: column;
	}
	#library-div p {
		text-align: left;
		margin-top: 0;
		margin-right: 0;
		font-size: 1em;
	}
	#library-pictures {
		flex-direction: row;
		justify-content: center;
		width: 100%;
		max-width: 100%;
		gap: 1em;
		margin-left: auto;
		margin-right: auto;
	}
	#library-pictures img {
		width: auto;
		max-width: 100%;
		height: auto;
	}
	
	
	
}
@media only screen and (max-width: 37.5em) {
	#header-wrapper {
		box-shadow: none;
	}
	nav ul {
		flex-direction: column;
	}
	nav li {
		width: 100%;
	}
	nav a {
		display: inline-block;
		width: 100%;
		border-bottom: 0.1em solid #5F7B94;
	}
	nav #active-page {
		background-color: #5F7B94;
	}
	nav #active-page a {
		color: #F2F2F2;
	}
	#home-banner {
		display: none;
	}
	.paragraph-box {
		background: none;
	}
	#spotlight-box {
		flex-direction: column;
		padding: 1em;
		gap: 1em;
	}
	#spotlight-box img {
		width: 100%;
	}
	.rgrid-container, .lgrid-container, .tallgrid-container {
		grid-template-columns: auto auto;
	}
	.rgrid-container {
		grid-template-rows: 1fr 2fr;
	}
	.rgrid-hero {
		grid-row: 2;
		grid-column: 1 / span 2;
	}
	.lgrid-container {
		grid-template-rows: 2fr 1fr;
	}
	.lgrid-hero {
		grid-row: 1;
		grid-column: 1 / span 2;
	}
	#about-flex {
		display: flex;
		flex-direction: column;
		gap: 1em;
		max-width: 35em;
	}
	#about-flex img {
		width: 75%;
		height: auto;
		margin: 0 auto;
	}
	#about-flex p {
		text-align: center;
	}
	#linkedin-button {
		margin-left: auto;
		margin-right: auto;
	}
	#table-background {
		display: none;
	}
	#library-pictures {
		flex-direction: column;
		max-width: 100%;
		width: 100%;
		margin: 0 auto;
	}
	#library-pictures img {
		height: 100%;
		max-height: 100%;
	}
	form {
		width: 82%;
	}
	footer {
		font-size: 0.6em;
	}
}