/*
==========
= HEADER =
==========
 */

/*Header stuff (Navigation, Logo etc.)*/

header {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 10;
}

@media screen and (min-width: 768px) {
    header {
    }
}

.logo {
    display: block;
    text-decoration: none;
    width: 200px;
    position: absolute;
    top: 32px;
    left: 40px;
}

@media screen and (min-width: 768px) {
    .logo {
        width: 220px;
    }
}

@media screen and (min-width: 1020px) {
    .logo {
        top: 79px;
        left: 10px;
    }
}

/*Main-Nav*/

.main-nav-container {
    height: 0;
    z-index: 9;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    background-color: #fff;
    transition: opacity 0.25s ease-in-out;
}

.nav_is_open .main-nav-container {
    position: fixed;
    visibility: visible;
    height: 100vh;
    opacity: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

@media screen and (min-width: 1000px) {
    .main-nav-container {
        height: auto;
        max-height: none;
        visibility: visible;
        opacity: 1;
        overflow: visible;
    }
}

.main-nav-container > .main-nav {
    padding: 0;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

@media screen and (min-width: 1000px) {
    .main-nav-container > .main-nav {
        padding: 0;
        position: relative;
        top: auto;
        transform: none;
    }
}

.main-nav li {
    list-style: none;
}

.main-nav a {
    display: block;
    text-align: center;
    padding: 10px;
    text-decoration: none;
}

.main-nav .current-menu-ancestor > a {
    color: #f00;
}

.main-nav .current-menu-item > a {
    color: #0f0;
}
/* Animate Menu Button */

@-webkit-keyframes menutop {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@keyframes menutop {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@-webkit-keyframes menubottom {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-45deg);
    }
}

@keyframes menubottom {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-45deg);
    }
}

@-webkit-keyframes menutopstart {
    0% {
        transform: rotate(45deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes menutopstart {
    0% {
        transform: rotate(45deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@-webkit-keyframes menubottomstart {
    0% {
        transform: rotate(-45deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes menubottomstart {
    0% {
        transform: rotate(-45deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}
.menu-button {
    z-index: 10;
    display: block;
    position: fixed;
    top: 0;
    right: 10px;
    width: 50px;
    height: 50px;
    border: none;
    background-color: transparent !important;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 24px 16px;
    outline: none;
}

@media screen and (min-width: 1000px) {
    .menu-button,
    .menu-button:hover {
        display: none;
    }
}

.menu-button:focus {
    background-color: transparent;
}

.nav-line {
    width: 20px;
    height: 2px;
    background-color: #000;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform-origin: center center;
    transition: all 0.5s ease-in-out;
}

.line-top {
    position: absolute;
    top: 15px;
    -webkit-animation: menutopstart 0.5s forwards;
    animation: menutopstart 0.5s forwards;
}

.nav_is_open .line-top {
    top: calc(50% - 1px);
    -webkit-animation: menutop 0.5s forwards;
    animation: menutop 0.5s forwards;
}

.line-center {
    position: absolute;
    top: calc(50% - 1px);
    transition: opacity 0.2s ease-in-out 0.2s;
}

.nav_is_open .line-center {
    opacity: 0;
}

.line-bottom {
    position: absolute;
    bottom: 15px;
    -webkit-animation: menubottomstart 0.5s forwards;
    animation: menubottomstart 0.5s forwards;
}

.nav_is_open .line-bottom {
    bottom: calc(50% - 1px);
    -webkit-animation: menubottom 0.5s forwards;
    animation: menubottom 0.5s forwards;
}
