header {
    width: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    top: 0;
    left: 0;
    padding: 10px 5vw;
    position: fixed;
    background: #fffffff0;
}

header .logo {
    background-image: url('../img/logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 60px;
    width: 100%;
    margin: 10px 0;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    flex-shrink: 0;
}

nav navItem {
    padding: 5px 0px;
    margin: 0 10px;
    font-size: 17px;
    font-weight: bold;
    color: #7c7564;
    cursor: none;
    white-space: nowrap;
    font-family: 'Quicksand', sans-serif;
    box-shadow: inset 0 0 0 0 #333;
    transition: all .2s ease-in-out;
    overflow: hidden;
}

nav navItem:last-of-type {
    margin-right: 0;
}

nav navItem:hover {
    color: var(--color);
    box-shadow: inset 0 -2px 0 0 var(--color);
    transition: all .2s ease-in-out;
    overflow: visible;
}

nav navItem.active {
    color: var(--color);
    box-shadow: inset 0 -2px 0 0 var(--color);
    transition: all .2s ease-in-out;
}

subnav {
    position: absolute;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 0 0 10px 0;
    margin-left: -20px;
    margin-top: 0;
    border-radius: 0 0 10px 10px;
    transition: all 300ms;
    opacity: 0;
    max-width: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
}

navItem:hover > subnav {
    opacity: 1;
    z-index: -1;
    transition: all 300ms;
    max-width: 100vw;
    max-height: 100vh;
    box-shadow: 0 5px 5px rgba(0,0,0,.2);
}

subnav > navItem {
    margin: 0 10px !important;
    padding: 10px;
    font-weight: 300;
    font-size: 15px;
    overflow: hidden;
}

subnav > navItem:hover {
    box-shadow: inset 0 -2px 0 0 var(--color);
    overflow: hidden;
}

subnav > navItem:first-of-type {
    padding-top: 20px !important;
}

.navBurger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    width: 0px;
    height: 30px;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    flex-shrink: 0;
}

.navBurger input {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    cursor: none;
    opacity: 0;
    z-index: 2;
    -webkit-touch-callout: none;
}

.navBurger span {
    display: block;
    width: 40px;
    height: 5px;
    position: relative;
    background: #9e9077;
    border-radius: 0px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), opacity 0.55s ease;
}

.navBurger span:first-child {
    transform-origin: 0% 0%;
}

.navBurger span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

.navBurger input:checked~span {
    opacity: 1;
    transform: rotate(-45deg) translate(-9px, 23px);
    background: #9e9077;
    width: 36px;
}

.navBurger input:checked~span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

.navBurger input:checked~span:nth-last-child(2) {
    transform: rotate(45deg) translate(-11px, -26px);
}

.navBurger input~nav {
    transition: all 400ms;
    height: 0%;
    opacity: .99;
    overflow: hidden;
}

.navBurger input:checked~nav {
    transition: all 400ms;
    height: calc(100% - 80px);
}

.navBurger subnav {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    padding: 0 0 10px 0;
    margin-right: 0px;
    margin-left: 0;
    margin-top: 0;
    border-right: 2px solid #666;
    border-radius: 0;
    transition: all 300ms;
    opacity: 1;
    height: initial;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    max-width: initial;
    max-height: initial;
    box-shadow: none;
    border: none;
}

@media screen and (max-width: 700px) {

    .navBurger input:checked~nav {
        transition: all 400ms;
        height: calc(100% - 70px);
        top: 69px;
    }
    header {
        padding: 10px
    }

    header .logo {
        height: 50px;
        width: 100%;
        margin: 15px 0;
        margin-left: 10px;
    }

    header>nav {
        display: none;
    }

    nav {
        flex-direction: column;
        width: 100%;
        position: fixed;
        top: 80px;
        right: 0;
        background-color: #fff;
        align-items: flex-end;
        height: calc(100vh - 80px);
        justify-content: space-evenly;
    }

    nav navItem {
        margin: 0px !important;
        color: #383838;
        font-size: min(10vw, 5vh);
        padding: 0 20px;
        height: auto;
        width: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        box-shadow: inset 0 0 0 0 #666;
        flex-direction: column;
    }

    nav navItem:hover {
        color: var(--color);
        background-color: rgba(0, 0, 0, .1);
        box-shadow: inset 10vw 0px 0 0 var(--color);
        transition: all .2s ease-in-out;
    }

    nav navItem.active {
        color: var(--color);
        background-color: rgba(0, 0, 0, .1);
        box-shadow: inset 10vw 0px 0 0 var(--color);
        transition: all .2s ease-in-out;
    }

    .navBurger {
        width: 40px;
        display: flex;
        margin-right: 10px;
    }

    .navBurger subnav > navitem {
        font-size: min(5vw, 3vh);
        padding: 1vh 20px;
        padding-top: 1vh !important;
    }
}
