/* So the HTML5 structural tags work in older browsers */
article, aside, figure, footer, header, nav, section {
    display: block;
}

*{
	margin: 0;
	padding: 0;
}

html{
	background: #003366;
}

body {
	font-family: sans-serif;
    font-size: 87.5%;
    width: 845px;
    margin: 0 auto;
    border: 3px solid black;
    background-color: #CCCCCC;
}

a:focus, a:hover {
	font-style: italic;
}

header {
	text-align: center;
	border-bottom: 3px solid black;
	padding: 1.5em 0;
	background: linear-gradient(#F5F5F5, gray, #F5F5F5);
}

header h1 {
	text-align: left;
	padding-left: 25px;
	color: black;
	font-size: 50px;
}
header img {
	float: left;
	padding: 0 30px;
}

nav ul {
	list-style: none;
	padding: 1em 0;
	background-color: red;
	border-bottom: 3px solid black;
}
nav li {
	display: inline;
}
nav a {
	padding: 1em 2em;
	color: #fffded;
	font-weight: bold;
	border-right: 2px solid black;
}
a:hover {
	color: blue;
}
.active_nav {
	color: black;
}
aside {
	width: 150px;
	float: left;
	padding: 20px;
	border-right: 2px solid black;
}
aside ul {
	list-style: none;
}
aside li {
	padding: 4px 0;
	border-bottom: 1px solid black;
}
figure {
	margin-top: 1em;
}
figure h2 {
	text-align: center;
}
table {
	border-collapse: collapse; 
}
thead {
	border-top: 2px solid black;
	border-bottom: 2px solid black;
}
th {
	padding: .2em .7em;
	text-align: left;
}
td {
	padding: .2em .7em;
	text-align: center;
}

footer {
	border-top: 3px solid black;
	clear: both;
	background-color: red;
}
footer p {
	padding: 1em 0;
	text-align: center;
}

@media print {
	body {
		font-family: "Times New Roman", Times, serif;
		background-color: white;
		width: auto;
		border: none;
	}
	header img {
		display: none;
	}
	section h1, section p {
		font-family: Verdana, Arial, Helvetica, sans-serif;
	}
	nav {
		display: none;
	}
	header {
		border-bottom: 3px solid black;
	}
	table {
		width: 550px;
		padding: 0;
	}
	aside {
		width: 120px;
		padding: 0;
	}

}