/*
----- Reset Browser Values -----
*/

* {
    margin: 0;
    padding: 0;
    font-family: Verdana, sans-serif;
    font-size: 1.0rem;
}


/*
----- Set Styles without Flexbox -----
*/

body {
    background-color: #c4c4c4;
    border-left: 5px solid #E84E0F;
    border-right: 5px solid #e84e0f;
    border-bottom: 5px solid #e84e0f;
}


.container-imghead {
    position: relative;
    height: 170px;
    max-height: 170px;
    top: 0;
    overflow: hidden;
}

.container-imghead img {
    position: absolute;
    display: block;
    width: 100%;
}


.container-logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: left;
    -ms-flex-pack: left;
    justify-content: left;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 150px;
}

.container-logo img {
    height: 95px;
    width: auto;
    left: 1rem;
}
    
ul li {
    list-style-type: none;
}

ul a {
    text-decoration: none;
    font-weight: 300;
    display: block;
    color: #c4c4c4;
    background: #6a6a6a;
    padding: 10px 0;
    margin: 2px 0;
    text-align: center;
    -webkit-transition: 400ms ease-in-out;
    transition: 400ms ease-in-out;
}

ul a:hover {
    background: #e84e0f;
    font-size: 1.2rem;
    letter-spacing: 2px;
    -webkit-transition: 400ms ease-in-out;
    transition: 400ms ease-in-out;
}

.text {
    margin: 2rem 1rem;
    color: #646464;
}

h2 {
    font-size: 1.3rem;
    line-height: 1.9rem;
    margin: 2.6rem 0 1.2rem 0; 
    text-align: center;
}

p {
    line-height: 1.4rem;
}

.image {
    width: 100%;
    height: 350px;
    top: 0;
    overflow: hidden;
}

.image img {
    position: relative;
    display: block;
    width: 150%;
    }

.container-footer {
    height: 60px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #6a6a6a;
    padding: 0;
    margin: 0;
}

footer p {
    font-size: 0.7rem;
    color: #c4c4c4;
    margin: 0;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    text-align: center;
}

@media screen and (min-width: 768px) {
    
    header {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
    
   .container-imghead {
    position: relative;
    height: 220px;
    max-height: 220px;
    top: 0;
    overflow: hidden;
    border-bottom: 5px solid #e84e0f;
}

.container-imghead img {
    position: absolute;
    display: block;
    width: 100%;
}


.container-logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: left;
    -ms-flex-pack: left;
    justify-content: left;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 150px;
}

.container-logo img {
    height: 105px;
    width: auto;
    left: 1rem;
}

    nav ul {
        background-color: none;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        
    }
    
    nav li {
        -ms-flex-preferred-size: 29%;
        flex-basis: 29%;
        margin: -3.6rem 1rem 0 1rem;
        z-index: 100;
    }
    
    .image {
        width: 100%;
        height: 500px;
        top: 0;
        overflow: hidden;
}

    .image img {
        position: relative;
        display: block;
        width: 100%;
        }
    
   }