html {
	background-color: #E1E1E8;
}

body {
	font-family: 'Open Sans', sans-serif;
	width: 70%;
	margin-top: 0px;
	margin-left: auto;
	margin-right: auto;
	background-color: #91969e;
	box-sizing: border-box;
}

.padded-container {
	padding: 20px;
}

.header-container {
	margin-bottom: 20px;
}

.header-container * {
	margin: 0px;
	color: black;
	text-decoration: none;
}

.header-container h4 {
	margin-top: 7px;
	padding-left: 30px;
}

.button {
	border: 1px solid black;
	background-color: #666666;
	text-align: center;
	color: black;
	text-decoration: none;
	-webkit-transition: color 0.1s, border-color 0.1s;
	transition: color 0.1s, border-color 0.1s;
}

.standard-button {
	padding: 8px;
	border-radius: 8px;
}

.standard-button:active {
	color: white;
	border-color: white;
}

.navigation-button {
	width: 50px;
	margin-top: 20px;
}

.navigation-button#prev-button {
	align-self: flex-start;
}

.navigation-button#next-button {
	margin-left: auto;
	align-self: flex-end;
}

.navigation-container {
	display: flex;
	justify-content: space-between;
}

.footer-container {
	background-color: #212121;
	padding: 2px 20px;
}

.footer-container #about-link {
	color: #FFFFFF;
	text-decoration: none;
}

.hat-box {
	display: flex;
	align-items: center;
}

.hat-image {
	flex: 0 1 120px;
	max-height: 120px;
	max-width: 15%;
}

.hat-definition {
	padding-left: 20px;
	flex: 1;
}

.overlay {
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	overflow: hidden;
}

.overlay-body {
	margin: auto;
	margin-top: 5%;
	width: 50%;
	padding: 20px;
	background-color: #91969e;
	border-radius: 20px;
	text-align: center;
}

.overlay-content {
	width: 100%;
	padding-bottom: 15px;
	text-align: start;
}

.overlay-closed {
	opacity: 0;
	height: 0px;
	-webkit-transition: opacity 0.3s, height 0s 0.3s;
	transition: opacity 0.3s, height 0s 0.3s;
}

.overlay-close-button {
	display: inline-block;
	padding-left: 20px;
	padding-right: 20px;
}

@media ( max-width : 1000px) {
	body {
		width: 100%;
		margin: 0px;
	}
	
	.overlay-body {
		width: 80%;
	}
}