@charset "utf-8";
/* CSS Document */

* {margin: 0; padding: 0;}

body {
	font-family: Arial, san-serif;
	color: #dfdfdf;
	background: #241f1e;
}

section {
	width: 1020px;
	margin: auto;
	background-color: #d9eaf8;
	display: flex;
	flex-wrap: wrap;
}

header, footer {
	flex: 100%;
}

/*#content{
	display: flex;
}*/

nav {
	/*float:left;*/
	width: 320px;
}

article {
	/*float:right;*/
	width: 590px;
	padding: 25px;
	flex: 2;
}

footer {
	width: 1020px;
	background-color: #5c1b06;
	padding: 25px;
}
footer p {
	/*clear: both;*/
	color:#e5e5e5;
}

h2{
	font-size: 32px;
	color: #5c1b06;
	margin-bottom: 16px;
}

p {
	margin: 16px;
	color:#333333;
}

nav ul {
	list-style-type: none;
	margin-bottom: 60px;
}

nav ul li a {
	display: block;
	
	background-color: #5f676d;
	color: #f5f5f5;
	
	font-weight: bold;
	font-size: 20px;
	
	line-height: 60px;
	height: 60px;
	
	text-transform: uppercase;
	text-decoration: none;
	
	padding-left: 25px; 
	border-bottom: 5px solid #929ea7;
	
}

nav ul li a:hover {
	background: #d06038;
}

header img{
	display: block;
}

aside {
	flex: 1;
}

@media only screen and (min-width: 600px) {
	
	/***** Layout rules go in here ****/
	
	section {
		display: flex;
		flex-wrap: wrap;
		width: 70%
	}
			
	#container {
		display: flex;
		flex-wrap: wrap;
		width: 90%
	}
	
	article {
		width: 90%
	}
	
	header, footer {
		flex: 100%;
		width: 90%;
	}
	
	nav {
		display: flex;
		flex-wrap: wrap;
		
	}
	
	img {
		width: 100%;
		
	}
}

@media only screen and (min-width: 1020px) {
	
	/***** Maximum sized layout rules go in here ****/
	
	#container {
		width: 1020px;
		margin: auto;
	}
}
