:root {
    font-size: 16px;
    --navBgCurrent: #304141;
    --navBgCol: #3E5151;
    --navBgHover: #3E6262;
}

nav.site {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    /* background-color: var(--navBgCol); */
    background-color: black;
}

nav.site > * {
    border: 1px solid black;
    background-color: var(--navBgCol);
    width: 20%;
    padding: .5rem;
}

nav.site > a {

}

nav.site a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

nav.site a:hover, .dropdown:hover {
    transition: .1s;
    background-color: var(--navBgHover);
    text-decoration: underline;
}

.dropList {
    display: none;
    position: absolute;
    background-color: var(--navBgCol);
    flex-direction: column;
    align-items: center;
    transform: translate3d(-10px, 8%, 0);
    border: 1px solid black;
    z-index: 2;
    width: 20%;
}

.dropdown {
    padding: 0;
}

.dropdown > a {
    width: 100%;
    display: inline-block;
}

.dropList > a {
    padding: .5rem 0;
    width: 100%;
}

.dropdown:focus-within .dropList {
    /* opacity: 1; */
    display: flex;
    pointer-events: auto;
}

#menubutton {
    display: none;
}

#menubutton:hover {
    transform: none;
}

#currentNav {
    background-color: var(--navBgCurrent);
    text-decoration: underline;
    cursor: default;
}

@media screen and (max-width: 720px) {
    nav.site {
        flex-direction: column;
        align-items: center;
    }

    nav.site > a, nav.site > div {
        display: none;
        width: 100%;
    }

    #menubutton {
        display: block;
    }

    nav.site:focus-within > * {
        display: block;
    }

    .dropdown {
        width: 100%;
        padding: 0 !important;
        border: 0 !important;
    }

    .dropdown > a {
        display: none;
    }

    .dropList {
        position: static;
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: center;
        transform: translate3d(0,0,0);
    }

    .dropList > *:nth-child(2) {
        border-left: 2px solid black;
        border-right: 2px solid black;
    }
}
