/* reset selector */
* {
	margin: 0;
	padding: 0;
}

/* the styles for the html element */
html {
	background: white;
}

/* the styles for the body */
body {
	font-family: Arial, Helvetica, sans-serif;
    font-size: 100%;
    width: 90%;
    margin: 1em auto;
	border: 3px solid brown;
	background: #d3d3d3;
}

/* the styles for the header */
header {
	border-bottom: 3px solid #931420;
	padding: .5em 0 .5em 0;
	background: linear-gradient(
		20deg, #8b4513 0%, #8b4513 40%, white 50%, #8b4513 60%, #8b4513 100% );
}
header h1 {
	text-align: center;
}

/* the styles for the main */
main a:hover, main a:focus {
	font-style: italic;
	color: #1e90ff;
}

/* the styles for the aside */
aside {
	width: 70%;
}
aside img {
	float: left;
	padding: 3% 3% 3% 3%;
	min-width: 5%;
	max-width: 45%;
}
aside p {
	padding: 3% 0 0 0;
}

/* 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 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 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: 60%;}
}

/* media code at 400px */
@media screen and (max-width: 400px) {
	body {font-size: 45%;}
	main p {font-size: 130%;}
}

/* media code at 270px */
@media screen and (max-width: 270px) {
	body {font-size: 30%;}
	main p {font-size: 140%;}
}
