:root {
	--footer-main-cont-height: 60px;
}

html {
	background-color: #e3e8ee;
	font-family: sans serif;
}

body {
	min-height: 100vh;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

body > header {
	width: 100%;
	max-width: 800px;
	background-color: white;

	/* Get rid of small gap between logo and menu */
	display: flex;
	flex-direction: column;

	& > .logo {
		width: 400px;
		max-width: 100vw;
		padding: 10px;
		box-sizing: border-box;
	}

	& > menu {
		margin: 0;
		padding-left: 10px;
		padding-right: 10px;

		display: flex;

		background: linear-gradient(#3d4354, #2e3643);
		border-color: #171f2d;
		border-width: 1px;
		border-top-style: solid;
		border-bottom-style: solid;
		color: white;
		list-style: none;

		& a {
			color: white;
			text-decoration: none;

			/* Let user click anywhere in menu box */
			display: block;
			height: 100%;

			padding-left: 10px;
			padding-right: 10px;
			padding-top: 10px;
			padding-bottom: 10px;

			text-align: center;
		}

		& > li {
			margin: 0;
			padding: 0;

			border-right-style: solid;
			border-color: #171f2d;
			border-width: 1px;

			&:last-child {
				border-right-style: none;
			}
		}
	}
}

body > main {
	flex-grow: 1;
	width: 100%;
	max-width: 800px;
	background-color: white;
	z-index: 1; /* Cover shadow cast by footer */
	margin-bottom: calc(-1 * var(--footer-main-cont-height)); /* Grow into footer */
}

body > footer {
	width: 100%;
	height: 100px;
	background-color: #38424E;

	border-top-style: solid;
	border-top-width: 2px;
	border-top-color: white;

	box-shadow: 0 5px 20px black;

	& > .footer-main-cont-wrapper {
		margin-left: auto;
		margin-right: auto;
		max-width: 800px;
		width: 100%;
		height: var(--footer-main-cont-height);

		position: relative;

		& > .footer-main-cont {
			position: absolute;
			top: -2px;
			width: 100%;
			height: 100%;

			background-color: white;
			border-bottom-style: solid;
			border-bottom-width: 2px;
			border-bottom-color: #0E73B6;

			box-shadow: 0 0 10px #111;
		}
	}

	& > .footer-notes {
		margin-left: auto;
		margin-right: auto;
		max-width: 800px;
		padding-top: 5px;
		padding-left: 5px;

		& a {
			color: #828fa5;
			font-size: 9pt;
		}
	}
}

p {
	margin-left: 10px;
	margin-right: 10px;
}
