.menu {
    position: fixed;
    top: -200%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(14, 52, 84, .95);
    z-index: 1000;
    text-align: center;
    padding-top: 60px;
    overflow: auto;
    .logo {
        height: 50px;
    }
    nav {
        padding-top: 30px;
        a {
            color: #fff;
            text-transform: uppercase;
            font-size: 3.6rem;
            font-family: 'Roboto Condensed', sans-serif;
            line-height: 1.5em;
            display: block;
            text-decoration: none;
            &:hover {
                text-decoration: underline;
            }
        }
    }
    .share {
        height: 36px;
        display: inline-block;
        font-family: 'Lato', sans-serif;
        font-weight: 300;
        font-size: 26px;
        line-height: 1.38;
        color: #ffffff;
        text-transform: uppercase;
        text-align: center;
        margin-bottom: 10px;
    }
    .terms-conditions {
        margin: 40px 0;
        text-transform: uppercase;
        a {
            color: #fff;
            text-decoration: underline;
            font-weight: 300;
            font-size: 18px;
            font-family: 'Lato', sans-serif;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
            line-height: 2;
        }
    }
}

.menu-page {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background-color: rgba(14, 52, 84, .95);
    z-index: 1000;
    padding-top: 45px;
    color: #fff;
    font-size: 1.6rem;
    overflow: auto;
    .back {
        opacity: 0;
        position: fixed;
        top: 30px;
        left: 30px;
        background-image: url('/images/btn-back.svg');
        background-repeat: no-repeat;
        background-position: center center;
        width: 80px;
        height: 40px;
        outline-style: none;
    }
    h2 {
        font-family: 'Roboto Condensed', sans-serif;
        font-weight: 400;
        font-size: 2.6rem;
        margin-bottom: 10px;
        text-transform: uppercase;
    }
    p, a {
        font-family: 'Lato', sans-serif;
        font-weight: 300;
    }
    .form-control, label {
        margin-bottom: 10px;
    }
    label {
        color: #fff;
    }
    .btn {
        margin-bottom: 30px;
    }
    .btn-dropdown {
        margin-bottom: 0;
    }
    .underline-link {
        color: #fff;
        text-decoration: underline;
    }
}

.menu,
.menu-page {
    .close {
        opacity: 0;
        position: fixed;
        z-index: 2000;
        top: 30px;
        right: 50px;
        outline-style: none;
        img {
            height: 40px;
        }
        &:hover,
        &:focus,
        &:active {
            box-shadow: none;
        }
    }
}

/* Workarounds for close button on fixed positioned menu pages */
.menu {
    .back {
        display: none;
    }

    &.menu-kill {
        .close {
            display: none;
        }
    }

    & + .menu-page {
        .close {
            display: none;
        }
    }
}

.menu-page {
    & + .menu-page {
        .close {
            display: none;
        }
    }

    &:not(.mp-open) {
        .back {
            display: none;
        }
    }

    &.mp-open, &.up {
        .back, .close {
            display: block;
        }
    }

    &.reverse-open {
        .back {
            display: none;
        }
    }
}

@media (min-width: 768px) {
    .menu {
        padding-top: 62px;
        .logo {
            height: 80px;
        }
        nav {
            padding-top: 54px;
            padding-bottom: 24px;
            a {
                font-size: 4.8rem;
            }
        }
    }

    .menu-page {
        padding-top: 124px;
        font-size: 1.8rem;
        .back {
            height: 40px;
        }
        h2 {
            font-size: 3.6rem;
        }
    }
}

@media (max-width: 767px) {
    .menu {
        overflow: hidden;
        padding-top: 75px;

        .close {
            right: 30px;
        }

        .container {
            overflow-y: auto;
            height: 100%;
        }
    }

    .menu-page {
        overflow: hidden;
        padding-top: 75px;
        padding-bottom: 38px;

        .close {
            right: 30px;
        }

        h2 {
            margin-top: 10px;
        }

        .container {
            overflow-y: auto;
            height: 100%;
        }
    }
}

.menu-kill {
    animation-name: menu-kill;
    animation-duration: .5s;
    animation-fill-mode: forwards;
}

.kill {
    animation-name: kill;
    animation-duration: .5s;
    animation-fill-mode: forwards;
}

.xin {
    animation-name: xin;
    animation-duration: .5s;
    animation-fill-mode: forwards;
    animation-delay: .75s;
}

.menu-down {
    animation-name: menu-down;
    animation-duration: .75s;
    animation-fill-mode: forwards;
}

.slip {
    animation-name: slip;
    animation-duration: .75s;
    animation-fill-mode: forwards;
}

.reverse-slip {
    animation-name: reverse-slip;
    animation-duration: .75s;
    animation-fill-mode: forwards;
}

.mp-open {
    animation-name: mp-open;
    animation-duration: .75s;
    animation-fill-mode: forwards;
}

.reverse-open {
    animation-name: reverse-open;
    animation-duration: .75s;
    animation-fill-mode: forwards;
}

.up {
    top: auto;
    left: 0;
    bottom: -200%;
    animation-name: up;
    animation-duration: .75s;
    animation-fill-mode: forwards;
}

.mp-up {
    animation-name: mp-up;
    animation-duration: .75s;
    animation-fill-mode: forwards;
}

@keyframes menu-kill {
    0% {
        opacity: 1;
        top: 0;
        left: 0;
    }

    99% {
        opacity: 0;
        top: 0;
        left: 0;
    }

    100% {
        opacity: 0;
        top: -200%;
    }
}

@keyframes kill {
    0% {
        opacity: 1;
        top: 0;
        left: 0;
    }

    99% {
        opacity: 0;
        top: 0;
        left: 0;
    }

    100% {
        opacity: 0;
        left: 100%;
    }
}

@keyframes xin {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes menu-down {
    from {
        top: -200%;
    }

    to {
        top: 0;
    }
}

@keyframes slip {
    from {
        top: 0;
        left: 0;
    }

    to {
        top: 0;
        left: -100%;
    }
}

@keyframes reverse-slip {
    from {
        top: 0;
        left: -100%;
    }

    to {
        top: 0;
        left: 0;
    }
}

@keyframes mp-open {
    from {
        left: 100%;
        opacity: 1;
    }

    to {
        left: 0;
        opacity: 1;
    }
}

@keyframes reverse-open {
    from {
        left: 0;
    }

    to {
        left: 100%;
    }
}


@keyframes up {
    from {
        top: auto;
        left: 0;
        bottom: -100%;
    }

    to {
        top: auto;
        left: 0;
        bottom: 0;
    }
}

@keyframes mp-up {
    from {
        top: 0;
        left: 0;
    }

    to {
        top: -100%;
        left: 0;
    }
}
