header {
    background-color: rgba(255, 255, 255, .6);
    box-sizing: border-box;
    font-family: SourceSansPro;
    height: 6rem;
    left: 0;
    padding: 1rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1;
}

header > a {
    left: 2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

header > a img {
    height: auto;
    width: 16rem;
}

header ul {
    list-style: none;
}

header > ul li a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease-in-out;
}

header > ul {
    margin: 1rem 0;
    padding: 0 0 0 18rem;
}

header > ul > li {
    display: inline-block;
    position: relative;
}

header > ul > li > a {
    font-size: 1.35rem;
    line-height: 2rem;
    margin: 0 1rem;
    padding-bottom: 2rem;
}

header > ul > li > ul {
    background-color: rgba(255, 255, 255, .95);
    border-radius: .25rem;
    left: -1rem;
    margin: 0 1rem;
    opacity: 0;
    padding: .75rem 1rem !important;
    position: absolute;
    top: -100vh;
    transition: opacity .5s ease-in-out;
    width: 20rem;
}

header > ul > li:hover > ul {
    opacity: 1;
    top: 2.5rem;
}

header > ul > li > ul > li > a {
    display: inline-block;
    font-size: 1.15rem;
    line-height: 1.4rem;
    padding: .5rem 0;
}

header > ul > li > ul > li:last-child:after {
    display: none;
}

header > ul > li > ul > li > a.sub {
    color: #666;
    font-size: 1rem;
    margin-left: 1.8rem;
    padding: .3rem 0;
    position: relative;
}

header > ul > li > ul > li > a.sub:before {
    background-color: #555;
    border-radius: 50%;
    content: '';
    height: .3rem;
    left: -1rem;
    position: absolute;
    top: calc(50% - .15rem);
    width: .3rem;
}

header > ul > li a.highlighted {
    font-weight: bold;
}

header > ul > li:nth-of-type(2) a:hover,
header > ul > li:nth-of-type(2) a.highlighted {
    color: #c14828 !important;
}

header > ul > li:nth-of-type(3) a:hover,
header > ul > li:nth-of-type(3) a.highlighted {
    color: #0c5172 !important;
}

header > ul > li:nth-of-type(4) a:hover,
header > ul > li:nth-of-type(4) a.highlighted {
    color: #806916 !important;
}

header > ul > li:nth-of-type(5) a:hover,
header > ul > li:nth-of-type(5) a.highlighted {
    color: #1d4678 !important;
}

header > ul > li:nth-of-type(6) a:hover,
header > ul > li:nth-of-type(6) a.highlighted {
    color: #267c42 !important;
}

header > ul > li:nth-of-type(7) a:hover,
header > ul > li:nth-of-type(7) a.highlighted {
    color: #50195a !important;
}

header > ul > li:nth-of-type(8) a:hover,
header > ul > li:nth-of-type(8) a.highlighted {
    color: #4d536b !important;
}

header >  span {
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: .25rem;
    cursor: pointer;
    display: none;
    height: 3rem;
    position: absolute;
    right: 1rem;
    top: 1.5rem;
    width: 3rem;
    z-index: 2;
}

header > ul + span i {
    background-color: #fff;
    border-radius: 1px;
    height: 2px;
    left: 12.5%;
    position: absolute;
    top: calc(30% - 1px);
    width: 75%;
}

header > ul + span i:nth-child(2) {
    top: calc(50% - 1px);
}

header > ul + span i:nth-child(3) {
    top: calc(70% - 1px);
}

header > ul li.close {
    display: none;
}

#arrow-top {
    background-color: rgba(255, 255, 255, .5);
    border-radius: .25rem;
    bottom: 1rem;
    color: inherit;
    cursor: pointer;
    font-weight: bold;
    height: 3rem;
    line-height: 3em;
    position: fixed;
    right: 1rem;
    text-align: center;
    text-decoration: none;
    transition: background-color .3s ease-in-out;
    z-index: 2;
    width: 3rem;
}

#arrow-top:hover {
    background-color: rgba(255, 255, 255, .75);
}

#mobile-menu-layer {
    background-color: rgba(0, 0, 0, .75);
    display: none;
    height: 100vh;
    left: -100vw;
    opacity: 0;
    position: fixed;
    top: -100vh;
    z-index: 3;
    width: 100vw;
}

#mobile-menu-layer.active {
    left: 0;
    opacity: 1;
    top: 0;
}

@media screen and (max-width: 1570px) {
    header > ul > li:nth-child(7) > ul {
        left: -12.5rem;
    }

    header > ul > li:nth-child(8) > ul {
        left: -18rem;
    }
}

@media screen and (max-width: 1330px) {
    header {
        z-index: 4;
    }

    header > ul {
        background-color: #fff;
        box-sizing: border-box;
        height: 100vh;
        max-width: 80vw;
        overflow-y: scroll;
        padding: 2rem;
        position: absolute;
        right: -30rem;
        top: -1rem;
        transition: right .6s ease-in-out;
        width: 30rem;
        z-index: 3;
    }

    header > ul.active {
        right: 0;
    }

    header > ul > li {
        display: block;
        margin-bottom: 2rem;
        width: 100%;
    }

    header > ul > li.close {
        cursor: pointer;
        display: block;
        font-size: 2rem;
        line-height: 2rem;
        text-align: right;
    }

    header > ul > li:last-child {
        margin-bottom: 0;
    }

    header > ul > li > a {
        display: block;
        margin: 0;
        padding-bottom: 0;
    }

    header > ul > li > ul {
        display: none !important;
        left: auto !important;
        margin: 0 !important;
        opacity: 1;
        padding: 0 !important;
        padding-left: 1rem !important;
        position: relative;
        top: auto !important;
        width: calc(100% - 1rem);
    }

    header > ul > li > ul.active {
        display: block !important;
    }

    header > ul > li > ul a {
        color: #666;
        display: block;
    }

    header > ul + span {
        display: block;
    }

    #mobile-menu-layer {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    header > a img {
        width: 12rem;
    }
}