html {
	background-image: url(../img/parchment.jpg);
}

body {
	margin: 20px auto;
	padding: 0;
	background-color: #ffffee;
	max-width: 1200px;
	box-shadow: 0px 0px 10px 10px #958a65;
}

header {
	background-color: #f9edc5;
	box-shadow: 0px 10px 10px #c8bd98;
	text-align: center;
}

.banner {
	width: 100%;
	max-width: 800px;
}

.main-menu {
	width: 100%;
	font: 1em Verdana, sans-serif;
}

.main-menu a {
	color: white;
	text-decoration: none;
	background-color: #958a65;
	padding: 5px 0;
	display: inline-block;
	width: 100%;
}

.main-menu ul {
	width: 100%;
	padding: 0;
	margin: 9px 0;
}

.main-menu li {
	list-style-type: none;
	display: inline-block;
	width: 100%;
}

.container {
	width: 100%;
	margin: 0 auto;
	padding: 10px 0 10px 0;
}

main {
	padding: 20px 20px 0 20px;
	font: 1em Verdana, sans-serif;
	text-align: justify;
	min-height: 500px;
	overflow: hidden;
}

h1 {
	text-align: center;
	font-family: Verdana;
	font-size: 1.7em;
	color: #958a65;
	padding: 10px 0 0 0;
	font-weight: bold;
	margin: 0;
	text-transform: uppercase;
}

a.link {
	text-decoration: none;
}

a.link:hover {
	text-decoration: underline;
	color: #6666ff;
}

a.link:visited {
	color: #0000ff;
	
}footer {
	background-color: #958a65;
	color: #ffffff;
	text-align: left;
	padding: 5px;
	font: 1em Verdana, sans-serif;
	margin-top: 20px;
}

footer p {
	margin: 0;
	padding: 5px 0 5px 20px;
}

.login {
	float: right;
	padding: 5px 10px 0 0;
	font-size: 0.75em;
}

footer a {
	color: white;
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

.left {
	float: left;
	margin-right: 10px;
	border-top: solid #cabb89 3px;
	border-left: solid #cabb89 3px;
	border-bottom: solid #958a65 3px;
	border-right: solid #958a65 3px;
}

.right {
	float: right;
	margin-left: 10px;
	border-top: solid #cabb89 3px;
	border-left: solid #cabb89 3px;
	border-bottom: solid #958a65 3px;
	border-right: solid #958a65 3px;
}

.login-form {
	max-width: 600px;
	text-align: center;
	margin: 0 auto;
}

.login-fields {
	margin: 10px 0;
	padding: 10px 0;
}

.login-form label {
	display: block;
	margin-top: 10px;
}

label:first-of-type {
	margin-top: 0;
}

.database-contents {
	display: flex;
}

.database-section {
	flex: 1;
	text-align: center;
	margin: 0 10px;
}

tr, td {
	text-align: left;
	border: 1px solid #625832;
}

table {
	margin: 20px auto;
	border: 2px solid #625832;
	border-collapse: collapse;
}

td {
	padding: 5px;
}

td:first-of-type {
	width: 100%;
}

.dark-cell {
	background-color: #958a65;
}

a.edit-link {
	color: white;
	text-decoration: none;
}

a.edit-link:hover {
	text-decoration: underline;
}

.dark-cell:active {
	background-color: #625832;
}

a.button-link {
	background-color: #958a65;
	color: white;
	text-decoration: none;
	padding: 5px 10px;
	border-radius: 10px;
	border: 2px solid #625832;
}

a.button-link:hover {
	text-decoration: underline;
}

a.button-link:active {
	background-color: #625832;
}

h2 {
	text-align: center;
}

.edit-form {
	min-width: 50%;
	margin: 0 auto;
	text-align: center;
}

.edit-form input[type="text"] {
	min-width: 300px;
}

.editing-page {
	text-align: center;
	margin-bottom: 20px;
}

.blackout {
	background-color: rgba(0,0,0,0.9);
	width: 100%;
	height: 100%;
	z-index: 1;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	position: fixed;
}

.confirm {
	text-align: center;
	border: 2px solid #625832;
	border-radius: 20px;
	background-color: #f9edc5;
	width: 200px;
	height: 80px;
	padding: 10px;
	position: fixed;
	top: 50%;
	left: 50%;
	margin-top: -42px;
	margin-left: -102px;
}	

.hide {
	display: none;
}
.show {
	display: block;
}

.confirmation {
	display: inline;
}

.center {
	text-align: center;
	margin: 0 auto;
}

.error-message {
	text-align: center;
	background-color: #ffcccc;
	color: #660000;
	border: 2px solid #660000;
	border-radius: 20px;
	padding: 5px 10px;
	margin: 10px auto;
	width: max-content;
}

.success-message {
	text-align: center;
	background-color: #ccffcc;
	color: #006600;
	border: 2px solid #006600;
	border-radius: 20px;
	padding: 5px 10px;
	margin: 10px auto;
	width: max-content;
}

@media screen and (min-width: 801px) {

	.main-menu {
		border-bottom: 5px solid #958a65;
	}

	.main-menu a {
		color: white;
		text-decoration: none;
		background-color: #958a65;
		padding: 10px 30px;
		margin: 0 20px;
		border-radius: 20px 20px 0 0;
		display: inline;
	}

	.main-menu a:hover {
		color: black;
		text-decoration: underline;
		background-color: #ffffdd;
		border-top: 5px solid #958a65;
		border-left: 5px solid #958a65;
		border-right: 5px solid #958a65;
		padding: 5px 25px 10px 25px;
		box-shadow: 0px 0px 5px 5px #c8bd98 inset;
	}

	.main-menu a:active {
		box-shadow: 0px 0px 5px 5px #b7ac87 inset;
	}

	.main-menu li {
		display: inline;
	}
	
	h1 {
		font-size: 2em;
	}
	
}
