/*--- HEADER ---*/

body {
    margin: 0px;
}

.mainHeader {
    display: flex;
    padding: 0 10%;
    flex: 0 0 80px;
}

.mainHeader h1 {
    font-size: 22px;
    letter-spacing: 0.4px;
    margin: 0;
    line-height: 80px;
}

.mainHeader h1 a {
    text-decoration: none;
    color: #333;
    transition: color 0.8s ease-in-out;
}


/*--- MAIN NAV COMMON ---*/

ul.MainNav,
.button_phon {
    margin: 0;
    padding: 0;
}

ul.MainNav li {
    list-style-type: none;
}

ul.MainNav li a,
.button_phone a {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: #105685;
    font-size: 22px;
    text-decoration: none;
    display: block;
}


/*--- MOBILE MENU BUTTON ---*/

.navMobile {
    position: absolute;
    z-index: 300;
    right: 0;
    top: 30px;
    padding-right: 5%;
}

.navMobile a {
    display: block;
    height: 30px;
    width: 30px;
}

.navMobile a:after,
.navMobile a:before,
.navMobile a div {
    background-color: #333;
    border-radius: 3px;
    content: '';
    display: block;
    height: 2px;
    margin: 7px 0;
    transition: all .3s ease-in-out;
}

.navigationActive a div {
    transform: scale(0);
    background-color: #FFF;
}

.navigationActive a:before {
    transform: translateY(6px) rotate(135deg);
    background-color: #FFF;
}

.navigationActive a:after {
    transform: translateY(-12px) rotate(-135deg);
    background-color: #FFF;
}


/*animation stopper*/

.resize-animation-stopper * {
    animation: none !important;
    transition: none !important;
}

.button_phone {
    padding: 6vh 0 0 0;
    margin-left: 25px;
}


/*--- MEDIA QUERIES ---*/

@media (max-width: 1200px) {
    .navigationActive.mainHeader h1 a {
        position: absolute;
        z-index: 2;
        color: #FFF;
    }
    .navigationActive ul.MainNav {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        transition: transform 0.6s cubic-bezier(0.65, 0, 0.07, 1), -webkit-transform 0.6s cubic-bezier(0.65, 0, 0.07, 1);
    }
    ul.MainNav {
        background-color: #065682;
        position: fixed;
        z-index: 100;
        top: 0;
        left: 0;
        margin-top: 2em;
        padding: 25vh 0 0 0;
        text-align: center;
        transition: transform 0.6s cubic-bezier(0.65, 0, 0.07, 1), opacity 0.01s linear 0.6s, -webkit-transform 0.6s cubic-bezier(0.65, 0, 0.07, 1);
        -webkit-transform: translate(100%, 0);
        transform: translate(100%, 0);
        margin: 0;
        height: 100vh;
        width: 100vw;
    }
    ul.MainNav li a {
        color: #FFF;
        font-size: 1.5rem;
        line-height: 2em;
        padding-top: 1.5rem;
    }
}

@media (min-width: 1200px) and (orientation: landscape) {
    ul.MainNav {
        padding: 3vh 0 0 0;
    }
}

@media (min-width: 1200px) {
    .mainHeader {
        flex-direction: row;
    }
    ul.MainNav {
        height: 80px;
        display: block;
    }
    ul.MainNav li {
        float: left;
    }
    ul.MainNav li a {
        line-height: 80px;
        padding: 0 1em;
    }
    ul.MainNav li a:after {
        content: '';
        height: 1px;
        background-color: #065682;
        opacity: 0.9;
        width: 0;
        display: block;
        position: relative;
        top: -20px;
        bottom: 1px;
        z-index: 1;
        transition: width .33s ease-in-out 80ms;
    }
    ul.MainNav li a:hover {
        color: #000000;
        cursor: pointer;
    }
    ul.MainNav li a:hover:after {
        width: 100%;
        z-index: -1;
    }
    .mainHeader nav {
        margin-left: auto;
    }
    .navMobile {
        display: none;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    ul.MainNav {
        padding: 5vh 0 0 0;
    }
}