@import url('https://fonts.googleapis.com/css?family=Dosis');
body {
    background-color: #fff
}

.home {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    right: 0;
}


/* ====================================
Navigation 
==================================== */

.overlay-navigation {
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsla(100, 100%, 100%, 0.8);
    transform: translateX(-100%);
}

.overlay-slide-down {
    transition: all .4s ease-in-out;
    transform: translateY(0)
}

.overlay-slide-up {
    transition: all .8s ease-in-out;
    transform: translateY(-100%)
}

nav,
nav ul {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

nav ul {
    list-style: none;
}

nav ul li {
    flex-basis: 100%;
    justify-content: center;
    align-items: center;
    height: 16.6%;
    width: 100%;
    overflow: hidden;
    transform: translateX(-100%);
}

nav li a {
    position: relative;
    top: 46%;
    color: #fff;
    font-family: 'Dosis', sans-serif;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 1.5rem;
}

nav li a:before {
    content: '';
    width: 50%;
    height: 1px;
    background-color: #fdd568;
    position: absolute;
    top: 85%;
    left: 0;
    z-index: 100;
    transform: translateX(-100%);
    opacity: 0;
    transition: all .2s linear;
}

nav li a:hover:before {
    transform: translateX(0);
    opacity: 1;
}

nav li:nth-of-type(1) {
    background-color: rgba(51, 52, 73, .9)
}

nav li:nth-of-type(2) {
    background-color: rgba(68, 77, 99, .9)
}

nav li:nth-of-type(3) {
    background-color: rgba(75, 91, 109, .9)
}

nav li:nth-of-type(4) {
    background-color: rgba(82, 104, 118, .9)
}

nav li:nth-of-type(5) {
    background-color: rgba(89, 118, 126, .9)
}

nav li:nth-of-type(6) {
    background-color: rgba(80, 133, 148, 0.9)
}

.slide-in-nav-item {
    animation: slide-in-nav-item 0.4s linear 1 .2s both;
}

.slide-in-nav-item-delay-1 {
    animation: slide-in-nav-item 0.4s linear 1 .4s both;
}

.slide-in-nav-item-delay-2 {
    animation: slide-in-nav-item 0.4s linear 1 .6s both;
}

.slide-in-nav-item-delay-3 {
    animation: slide-in-nav-item 0.4s linear 1 .8s both;
}

.slide-in-nav-item-delay-4 {
    animation: slide-in-nav-item 0.4s linear 1 .9s both;
}

.slide-in-nav-item-delay-5 {
    animation: slide-in-nav-item 0.4s linear 1 1s both;
}

.slide-in-nav-item-reverse {
    animation: slide-in-nav-item-reverse .3s linear 1 1s both;
}

.slide-in-nav-item-delay-1-reverse {
    animation: slide-in-nav-item-reverse .3s linear 1 1s both;
}

.slide-in-nav-item-delay-2-reverse {
    animation: slide-in-nav-item-reverse .3s linear 1 .8s both;
}

.slide-in-nav-item-delay-3-reverse {
    animation: slide-in-nav-item-reverse .3s linear 1 .6s both;
}

.slide-in-nav-item-delay-4-reverse {
    animation: slide-in-nav-item-reverse .3s linear 1 .4s both;
}

.slide-in-nav-item-delay-5-reverse {
    animation: slide-in-nav-item-reverse .3s linear 1 .2s both;
}


/* ====================================
Burger king
==================================== */

.open-overlay {
    position: absolute;
    right: 5rem;
    top: 2.2rem;
    z-index: 100;
    width: 34px;
    display: block;
    cursor: pointer;
}

.text-menu {
    position: absolute;
    right: 3.2rem;
    top: -3px;
    z-index: 100;
    display: block;
    cursor: pointer;
}

.text-menu h1 {
    font-size: 1rem;
}

.open-overlay span {
    display: block;
    height: 1px;
    background-color: #000;
    cursor: pointer;
    margin-top: 8px;
}

.animate-top-bar {
    animation: animate-top-bar .6s linear 1 both
}

.animate-bottom-bar {
    animation: animate-bottom-bar .6s linear 1 both
}

.animate-middle-bar {
    animation: animate-middle-bar .6s linear 1 both
}

.animate-out-top-bar {
    animation: animate-out-top-bar .6s linear 1 both
}

.animate-out-bottom-bar {
    animation: animate-out-bottom-bar .6s linear 1 both
}

.animate-out-middle-bar {
    animation: animate-out-middle-bar .6s linear 1 both
}


/* ====================================
Animation keyframes
==================================== */

@keyframes slide-in-nav-item {
    from {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%)
    }
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
}

@keyframes slide-in-nav-item-reverse {
    from {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
    to {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%)
    }
}

@keyframes animate-top-bar {
    0% {
        background-color: #fff;
    }
    50% {
        -webkit-transform: Y(9px);
        transform: translateY(9px)
    }
    80% {
        -webkit-transform: translateY(5px);
        transform: translateY(5px);
        background-color: #fff
    }
    100% {
        -webkit-transform: translateX(-10px);
        transform: translateX(-10px);
        background-color: #29363B;
    }
}

@keyframes animate-bottom-bar {
    0% {
        background-color: #fff;
    }
    50% {
        -webkit-transform: translateY(-9px);
        transform: translateY(-9px)
    }
    80% {
        -webkit-transform: translateY(-5px);
        transform: translateY(-5px);
        background-color: #fff;
    }
    100% {
        -webkit-transform: translateX(-10px);
        transform: translateX(-10px);
        background-color: #29363B;
    }
}

@keyframes animate-middle-bar {
    0% {
        background-color: #fff;
    }
    80% {
        background-color: #fff;
    }
    100% {
        background-color: #29363B;
    }
}

@keyframes animate-out-top-bar {
    0% {
        background-color: #fff;
    }
    50% {
        -webkit-transform: translateY(9px);
        transform: translateY(9px)
    }
    80% {
        -webkit-transform: translateY(5px);
        transform: translateY(5px);
        background-color: #fff;
    }
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        background-color: #000;
    }
}

@keyframes animate-out-bottom-bar {
    0% {
        background-color: #fff;
    }
    50% {
        -webkit-transform: translateY(-9px);
        transform: translateY(-9px)
    }
    80% {
        -webkit-transform: translateY(-5px);
        transform: translateY(-5px);
        background-color: #fff;
    }
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        background-color: #000;
    }
}

@keyframes animate-out-middle-bar {
    0% {
        background-color: #fff
    }
    80% {
        background-color: #fff;
    }
    100% {
        background-color: #000;
    }
}

.home a {
    position: absolute;
    z-index: 10;
    top: 15px;
    left: 50px;
    padding-bottom: 3px;
}

@media only screen and (max-width: 850px) and (orientation: landscape) {
    nav li a {
        font-size: 1rem;
    }
    .open-overlay {
        right: 1rem;
    }
    nav li a:before {
        width: 15px;
    }
    .home a {
        top: 5px;
        left: 15px;
        padding-bottom: 10px;
    }
    .open-overlay {
        right: 1rem;
        top: 1.2rem;
        z-index: 100;
        width: 34px;
        display: block;
        cursor: pointer;
    }
}

@media (max-width: 640px) {
    nav ul li a {
        font-size: .8rem;
    }
    nav li a:after {
        font-size: 0.6rem;
    }
    .open-overlay {
        right: 1rem;
    }
    nav li a:before {
        width: 15px;
    }
    .home a {
        top: 5px;
        left: 15px;
        padding-bottom: 10px;
    }
    .open-overlay {
        right: 1rem;
        top: 1.2rem;
        z-index: 100;
        width: 34px;
        display: block;
        cursor: pointer;
    }
}