/*local hosted fonts*/

/* open-sans-regular - latin */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../www/fonts/open-sans-v34-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../www/fonts/open-sans-v34-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../www/fonts/open-sans-v34-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('../www/fonts/open-sans-v34-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('../www/fonts/open-sans-v34-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../www/fonts/open-sans-v34-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
  }
  /* open-sans-800 - latin */
  @font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 800;
    src: url('../www/fonts/open-sans-v34-latin-800.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../www/fonts/open-sans-v34-latin-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../www/fonts/open-sans-v34-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
         url('../www/fonts/open-sans-v34-latin-800.woff') format('woff'), /* Modern Browsers */
         url('../www/fonts/open-sans-v34-latin-800.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../www/fonts/open-sans-v34-latin-800.svg#OpenSans') format('svg'); /* Legacy iOS */
  }
/*General*/

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    background: #2a2a2a;
    height: auto;
}

h2 {
    font-size: 1.8rem;
    text-align: center;
    padding-left: .5rem;
    padding-right: .5rem;
}

h3 {
    font-size: 1.3rem;
}

h1, h2, h3 {
    font-weight: normal;
    margin: 0;
}

a {
    font-weight: 400;
    text-decoration: none;
}

a, a:visited, a:active, p, h1, h2, h3 {
    color: white;
}

img {
    display: block;
}

main, header, footer, #banner, #divisions, #about-slideshow, #about, #vehicles-container {
    width: 100%;
    min-width: 300px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

header {
    background-color: white;
}

/*Cookiebanner*/

.cookieinfo {
    width: 100%;
    max-width: 964px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row-reverse;

    /*rest is hardcoded in the js file*/
}

/*Header*/

header {
    min-height: 100px;
    height: 15vh;
}

#upper-header {
    background: white;
    background-image: url("../img/hess-logo.jpg");
    background-position: center;
    background-repeat: no-repeat;
    height: 65%;
}

#lower-header {
    width: 100%;
    height: 35%;
    background: #e30613;
    border-bottom: solid 1px #4d4d4d;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    height: 100%;
    z-index: 99;
}

.navigation-link {
    /* flex-wrap: none; */
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.navigation-link a {
    font-size: 1.1rem;
}

.navigation-link:hover {
    border-bottom: 2px solid white;
    border-top: 2px solid transparent;
}

.flexbox-break {
    display: none;
    flex-basis: 100%;
    height: 0;
}

#icon-container {
    display: flex;
    align-items: center;
}

#icon-container:hover, #icon-container:hover>a {
    border: none;
}

/*Dropdown Language Selection Button*/

.dropbtn {
    font-size: .7rem;
    display: flex;
    align-items: center;
    border: none;
    cursor: pointer;
    color: white;
    background-color: #e30613;
    outline: none;
}

#langbtn {
    margin-left: .5rem;
}

#langbtn:hover {
    opacity: .8;
}

#lang-icn {
    background-image: url('../img/language_icn.png');
    background-size: cover;
    height: 23px;
    width: 23px;
    margin-left: .2rem;
}

#btn-dropdown {
    position: relative;
    display: inline-block;
}

#btn-dropdown button {
    max-height: 35px;
}

.drop-content {
    display: none;
    position: absolute;
    background-color: white;
    /* overflow: auto; */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 99;
    width: 100%;
    top: 0;
    flex-wrap: wrap;
    /* left: 50%;
    margin-left: -500px; */
}

.drop-content a {
    overflow: hidden;
    color: #e30613;
    font-size: .7rem;
    padding: 12px 0;
    text-decoration: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

#drop-container p {
    margin: 0 1rem;
    font-size: 1rem;
    color: #e30613;
    cursor: pointer;
}

#drop-container p:hover {
    opacity: .8;
}

.show {
    display: flex;
    word-wrap: normal;
    justify-content: center;
}

/*landing banner*/

#banner {
    position: relative;
    max-width: 1000px;
}

#banner-txt-container {
    position: absolute;
    z-index: 99;
    display: flex;
    align-items: center;
    bottom: 0rem;
    max-width: 1000px;
    width: 100%;
    background: rgba(0, 0, 0, 0.295);
    height: fit-content;
}

#banner-txt-1 {
    position: relative;
    left: 110px;
    height: fit-content;
    width: fit-content;
    background-color: #e30613;
    color: white;
}

#banner-txt-1, #banner-txt-2 {
    margin: 1rem;
    padding: .5rem 1.2rem;
    font-size: 1.8rem;
    font-weight: bolder;
    opacity: 0.0;
}

/*Landing Banner slideshow*/

.rslides {
    position: relative;
    list-style: none;
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
}

.rslides li {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: absolute;
    display: none;
    width: 100%;
    left: 0;
    top: 0;
}

.rslides li:first-child {
    position: relative;
    display: block;
    float: left;
}

.rslides img {
    /* height: auto; */
    float: none;
    border: 0;
    display: block;
    margin: auto;
    width: 100vw;
    max-width: 1000px;
    height: 85vh;
    max-height: 550px;
    object-fit: cover;
}

/* IE gets no slideshow but a fixed img */

/* @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .rslides {
        display: none;
    }
    #banner {
        position: relative;
        background-image: url("../img/hero_slider/slider_01.jpg");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        height: 85vh;
    }
} */

/*Divisions*/

#divisions {
    z-index: 100;
    background-color: #4d4d4d;
    border-top-style: solid;
    border-color: #e30613;
    border-width: 2px;
    padding: 1rem 0 2rem 0;
}

#divisions-header {
    margin-bottom: 1rem;
}

#divisions-content {
    display: flex;
}

#divisions-text {
    margin-right: 10vw;
    margin-left: 5vw;
}

#divisions-text a {
    font-weight: normal;
}

#divisions-text a:hover {
    text-decoration: underline;
    color: #e30613;
}

#divisions-text ul li {
    margin: .5rem;
    list-style: square;
    color: #e30613;
}

#division-links-header {
    margin: 0 0;
    font-size: 1.2rem;
    color: rgb(37, 37, 37);
    text-shadow: 0 1px 1px rgb(117, 117, 117);
    text-align: center;
}

#divisions-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 5vw;
}

.division-logo {
    position: relative;
    float: left;
    margin: 1rem 0;
}

.division-hover-logo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: .5s ease;
    visibility: none;
}

.division-logo:hover .division-hover-logo {
    opacity: 1;
    visibility: visible;
}

/*Company*/

#about {
    background-color: #5d5d5d;
    padding: 1rem 0rem 1rem 0rem;
}

#about-content {
    display: flex;
}

#about-text {
    margin-top: 1rem;
    margin-right: 10vw;
    margin-left: 5vw;
}

.about-links {
    font-weight: normal;
    text-decoration: underline;
}

.about-links, .about-links:visited, .about-links:active {
    color: white;
}

.about-links:hover {
    color: #e30613;
}

#about-slideshow {
    display: flex;
    border-top-style: solid;
    border-bottom-style: solid;
    border-color: #e30613;
    border-width: 2px;
}

.slide {
    max-height: 70vh;
    margin-top: 15vh;
    margin-bottom: 15vh;
}

.slideshow-img {
    position: relative;
}

.slideshow-thumb {
    display: block;
    height: auto;
    max-width: 100%;
}

.slideshow-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: .3;
    transition: .5s ease;
    background-color: black;
    pointer-events: none;
}

.slideshow-img:hover .slideshow-overlay {
    opacity: 0;
}

#vehicles-container {
    background-color: white;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#vehicles-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    background: white;
    height: auto;
    max-width: 100%;
}

/*Contact / Footer*/

footer {
    line-height: 2;
}

#footer-upper {
    background-color: #00499a;
    padding: 1rem 2rem .5rem 2rem;
}

#contact-info {
    display: flex;
}

#contact-info p {
    margin-right: 3rem;
}

#social-container{
    display: flex;
    align-self: flex-end;
    margin-left: auto;
}
#social-container a{
    display: block;
}
#social-container p{
    margin-right: 0 ;
    width: 3rem;
}
.social-link {
    margin-left: .5rem;
    margin-right: .5rem;
}

.social-link:hover {
    border-top: none;
    border-bottom: none;
}

.social-link img {
    max-height: 1.2em;
}

.social-link img:hover {
    opacity: .8;
}

#footer-lower {
    display: flex;
    background-color: white;
    color: #2a2a2a;
    align-items: center;
    padding: 0 2rem 1rem 2rem;
    justify-content: space-between;
}

#footer-icons {
    display: flex;
    flex-wrap: wrap;
}

#footer-lower a {
    margin: 1rem 2rem 0 0;
    color: #5e5e5e;
}

#footer-lower a:last-child{
    margin-right: 0;
}

/*IE Special Treatments*/

@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
    .slideshow-img {
        width: 16.6%;
    }
}

@media screen and (max-width: 820px) {
    .navigation-link {
        font-size: 1rem;
    }
    #footer-lower {
        flex-direction: column;
    }
    #footer-lower a {
        margin: .5rem 1.5rem 0 0;
    }
    #legal-links {
        margin: 1rem;
    }
    #footer-icons {
        justify-content: center;
    }
    #contact-info{
        flex-direction: column;
    }
    #social-container{
        margin: auto;
    }
    #social-container p {
        margin: 1rem ;
    }
}
@media screen and (max-width: 610px) {
    #drop-container p {
        margin: 0 .2rem;
    }
    .navigation-link:hover {
        border-bottom: none;
        border-top: none;
    }
    #banner-txt-container {
        justify-content: flex-start;
    }
    #divisions{
        padding-bottom: 0;
    }
    #divisions-content {
        flex-direction: column-reverse;
        align-items: center;
    }
    #divisions-text {
        margin: 2vw 10vw 10vw 10vw;
        width: 80vw;
        text-align: left;
    }
    #divisions-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-right: 0vw;
    }
    #about {
        padding: 3rem 0 1rem 0;
    }
    #about-text {
        margin: 2vw 10vw 2vw 10vw;
        width: 80vw;
        text-align: left;
    }
    /*landing banner*/
    #banner-txt-1 {
        margin-left: 0;
        font-size: 1.2rem;
    }
    #banner-txt-2 {
        margin: .5rem .5rem .5rem 1rem;
        padding: .2rem 1.4rem;
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 500px) {

    .navigation-link a {
        margin: 0;
        font-size: .8em;
    }
    #drop-container p {
        font-size: .8rem;
    }
    #banner {
        background-position: -70vw;
    }
    #footer-lower a {
        margin: .5rem 0 0 0;
    }
    #footer-icons a {
        margin-left: .5rem;
        margin-right: .5rem;
    }
    #legal-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #contact-info p {
        margin-right: 0;
    }
}

@media screen and (max-width: 410px) {
    h2 {
        font-size: 1.3rem;
    }
    h3 {
        font-size: 1.2 rem;
    }
    #icon-container, #langbtn {
        margin-left: 0;
    }
    #lang-icn {
        height: 18px;
        width: 18px;
        background-size: contain;
        background-repeat: no-repeat;
    }
    #upper-header {
        background-image: url("../img/hess-logo_m.jpg");
        height: 45%;
        /* background-size: contain; */
    }
    #lower-header {
        height: 55%;
    }
    .division-default-logo, .division-hover-logo img {
        padding-right: unset;
        width: 80%;
        height: auto;
        margin-right: auto;
        margin-left: auto;
    }
}

/*page transitions*/

body {
    animation: myfadeInAnimation 2s;
}

@keyframes myfadeInAnimation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-webkit-keyframes myfadeInAnimation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}