
/* reset selector */
* {
	margin: 0;
	padding: 0;
}

/* the styles for the html element */
html {
	background: white;
}

/* custom color*/
:root {
	--global-color-1: #1e90ff
}

/* the styles for the body */
body {
	font-family: Arial, Helvetica, sans-serif;
    font-size: 100%;
	margin: 1em auto;
	width: 90%;
	border: 3px solid brown;
	background: #d3d3d3;
}

/* the styles for the header */
header {
	border-bottom: 3px solid #931420;
	padding-top: 1.1em;
	padding-bottom: 5em;
	background: linear-gradient(
		20deg, #8b4513 0%, #8b4513 40%, white 50%, #8b4513 60%, #8b4513 100% );
}

header img {
	float: left;
	padding: 0 3% 0 35%;
	max-width: 100px;
}

header h1 {
	font-size: 170%;
	color: var(--global-color-1);

}

header h3 {
	font-size: 130%;
	font-style: italic;
}

header .shadow {
	text-shadow: 2px 2px 2px var(--global-color-1);
}

/* the styles for the nav */
nav ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	position: relative;
}
nav ul li {
	float: left;
	width: 20%;
	text-align: center;
	background-color: #931420;
}
nav a:hover, nav a:focus {
	font-style: italic;
	color: var(--global-color-1);
}
nav ul li a {
	display: block;
	padding: 1em 0;
	text-decoration: none;
	color: white;
	font-weight: bold;
}
nav ul li.current a {
	color: yellow;
}
nav ul li ul {
	display: none;
	position: absolute;
	top: 100%;
	width: 100%;
}
nav ul li ul li {
	float: none;
	max-width: 100%;
}
nav ul li:hover > ul {
	display: block;
}
nav > ul::after {
	content: "";
	display: block;
	clear: both;
}

/* the styles for the main content */
main {
	padding: 0 30px;
}

main h2 {
	color: var(--global-color-1);
	font-size: 130%;
	padding: .5em 0;
}

main address {
	padding: .5em 0 0 0;
}

main h3 {
	font-size: 105%;
	padding: .5em 0;
}

main ul {
	padding: .3em 0 .5em 2em;
}
main li {
	padding-bottom: .35em;
}

main p.note {
	font-weight: bold;
	color: rgba(218, 44, 32, 0.63);
	padding: .5em 0;
}

main a:hover, main a:focus {
	font-style: italic;
	color: #8b4513;
}

/* the styles for the section */
section {
	float: left;
	width: 30%;
	border-right: .25em solid #931420;
	padding-right: 20%;
}
section ul {
	list-style-type: circle;
}

/* the styles for the aside */
aside {
	float: right;
	width: 30%;
	text-align: right;
}
aside p {
	margin: 0 0 1em 0;
}
aside h2 {
	margin: .2em 0 .5em 0;
	padding: .3em 0;
	border: 3px solid #931420;
	border-radius: 10px 10px 10px 10px;
	box-shadow: 5px 5px 5px #8b4513;
	text-align: center;
}
aside img {
	padding: 0 0 .25em 0;
	width: 80%;
	max-width: 175px;
}

/* the styles for the footer */
footer {
	clear: both;
}
footer p {
	text-align: center;
	padding: 1em 0;
	background: #8b4513;
	color: white;
}

/* media code at 582px */
@media screen and (max-width: 582px) {
	body {font-size: 50%;}
	header img {max-width: 10%; padding: 0 3% 0 25%;}
}

/* media code at 400px */
@media screen and (max-width: 400px) {
	body {font-size: 30%;}
	header img {max-width: 10%; float: none; padding: 0 0 0 0; }
	header {text-align: center;}
}
