@charset "UTF-8";
/* CSS Document */

body {
    font-family: Arial, sans-serif;
    color: #dfdfdf;
    background-color: #faf1e1;
}
#container {
    background-color: #2d251f;
}
header {
    background: url(images/headerphoto1.jpg);
    background-size: cover;
    /*height: 318px;*/
    /*line-height: 318px;*/
    text-align: center;
    padding: 40px 0;
}

header img{
	width: 184px;
	height: 176px;
}
/**make the header and footer display 100%**/

/******navigation styles********/

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
nav ul li a {
    display: block;
    background-color: #1e1915;
    color: #e7dacc;
    font-weight: bold;
    font-size: 20px;
    /**line height and height both make the text verticla center.**/
    line-height: 60px;
    height: 60px;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 5px solid #ead6be;
    text-align: center;
}
nav ul li a:hover {
    background: #d06038;
}
main {
    display: block;
    padding: 25px;
}
/************typography***/

h2 {
    font-size: 32px;
    color: #d06038;
    margin-bottom: 16px;
}
p {
    margin-bottom: 16px;
}
footer {
    background-color: #383f43;
    padding: 25px;
}

@media only screen and (min-width:960px) {
#container {
    display: flex;
    flex-wrap: wrap;
}
header, footer {
    flex: 100%;
}
header {
    padding: 30px 30px 30px 25px;
    text-align: left;
}

header img{
	width: 263px;
	height: 261px;
}	
nav {
    flex: 1;
    width: 320px;
}
nav ul {
    list-style-type: none;
    margin-bottom: 60px;
}
nav ul li a {
    display: block;
    background-color: #1e1915;
    color: #e7dacc;
    font-weight: bold;
    font-size: 20px;
    /**line height and height both make the text verticla center.**/
    line-height: 60px;
    height: 60px;
    text-transform: uppercase;
    text-decoration: none;
    padding-left: 25px;
    border-bottom: 5px solid #ead6be;
    text-align: left;
}
main {
    flex: 2;
    width: 500px;
}
}

@media only screen and (min-width:1020px) {
#container {
    width: 1020px;
    margin: auto;
    padding: 0;
}
header, footer {
    flex: 100%;
}
header {
    padding: 20px 30px 90px 25px;
    text-align: left;
}
header img{
	width: 196px;
	height: 194px;
}		
	
nav ul {
    list-style-type: none;
    margin-bottom: 60px;
}
nav ul li a {
    display: block;
    background-color: #1e1915;
    color: #e7dacc;
    font-weight: bold;
    font-size: 20px;
    /**line height and height both make the text verticla center.**/
    line-height: 60px;
    height: 60px;
    text-transform: uppercase;
    text-decoration: none;
    padding-left: 25px;
    border-bottom: 5px solid #ead6be;
    text-align: left;
}
main {
    flex: 2;
    display: flex;
}
main article:first-of-type {
    margin-right: 20px;
}
}
