/* NAV META */

.nav-meta {
    height: 2em;
    background-color: black;
    display: flex;
    justify-content:space-between;
    color: white;
    position: fixed;
    width: 100%;
    z-index: 1;
}

.meta-item {
    margin: 0 1em 0 1em;
    display:flex;
    align-items: center;
}

.meta-icon {
    width:25px;
}

.meta-text {
    margin: 0 0.5em 0 0.5em;
}

.meta-text a {
    color: lightskyblue;
}

@media only screen and (max-width: 550px) {
    .nav-meta {
        display: none;
    }
}

/* MAIN NAV */

#logo {
    margin: 0.8em 1em;
    width:4em;
}

.nav-main {
    margin: auto auto;
    display: flex;
}

.nav-main a {
    border-left: 1px solid #777777;
    color: gray;
    font-size: 18px;
    text-decoration: none;
    padding: 2em 3em;
    display: block;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    transition: background-color 0.25s;
}

.nav-main:last-of-type {
    border-right: 1px solid #777777;
}

.nav-main a:hover {
    background-color: var(--lightbrown);
    box-shadow: 0 5px 5px -5px black;
    color: white;
}

.nav-main a.current {
    color: white;
}

@media only screen and (max-width: 1000px) {
    .nav-main a {
        padding: 1.5em 2em;
    }

    #logo {
        width: 3em;
    }
}

@media only screen and (max-width: 700px) {
    .nav-main {
        position:absolute;
        top: 66px;
        flex-direction: column;
        width: 100%;     
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease-in-out;
    }

    .nav-main.active {
        visibility: visible;
        opacity: 1;
        border: none;
    }

    .nav-main a {
        display: block;
        background-color: #1E1916;
        border: none;
        border-top: 1px solid var(--gray);
    }

    .nav-main a:last-child {
        border-bottom: 1px solid var(--gray);
    }

    #logo {
        margin: 0.4em 0.4em;
    }
}

/* HAMBURGER MENU */

.hamburger-button {
    display: none;
    width: 50px;
    height: 50px;
    margin: auto 1em;
    background: none;
    border: none;
    transition: 0.3s ease-in-out;
}

.hamburger-button:hover {
    cursor: pointer;
}

.hamburger-line {
    width: 2.5em;
    height: 0.2em;
    background-color: white;
    border: 1px solid white;
    border-radius: 10px;
    margin: 0.4em;
    transition: 0.3s ease-in-out;
}

@media only screen and (max-width: 700px) {
    .hamburger-button {
        display: block;
        margin-left: auto;
        padding-left: 5px;
    }

    .hamburger-button.active .hamburger-line:first-child {
        transform: rotate(90deg) translateX(10px);
        opacity: 0;
    }

    .hamburger-button.active .hamburger-line:nth-child(2) {
        transform: rotate(-45deg);
    }

    .hamburger-button.active .hamburger-line:nth-child(3) {
        transform: rotate(45deg) translateX(-7px) translateY(-7px);
    }
}


