/* App Bar Styles */

.appbar {
    width: 100vw;
    display: flex;
    background-color: var(--secondary-color);
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    position: relative;
}

.appbar-logo {
    width: 80px;
    border-radius: 100%;
}

/* Hamburger menu styles  */
.hamburger {
    display: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgb(0, 0, 0, 0);
}

/* Signal which page is active */
.menuitem.active {
    color: white !important;
    font-weight: bold;
}

/* Less than 650px */
@media screen and (max-width: 650px) {

    .appbar-logo img {
        width: 80px;
    }

    /* Show hamburger menu */
    .hamburger {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        border-radius: 32px;
    }

    .hamburger:hover {
        background-color: #543623;
    }

    .hamburger span {
        width: 25px;
        height: 2px;
        background-color: var(--primary-color);
        margin: 3px 0;
        transition: 0.3s;
    }

    .hamburger:hover span {
        background-color: white;
    }

    /* Hamburger animation toggle to X when clicked */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hide regular nav and show mobile nav dropdown */
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        z-index: 2;
        flex-direction: column;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    }

    nav.active {
        display: flex;
    }


    /* Menu items */
    .menuitem {
        padding: 16px 32px;
        color: var(--secondary-color);
        font-family: 'Verdana', sans-serif;
        font-size: 0.9em;
        border-bottom: 1px solid var(--secondary-color);
        transition: background-color 0.2s;
    }

    .menuitem:hover {
        background-color: var(--secondary-color);
        color: var(--primary-color);
    }

    .menuitem.active {
        background-color: var(--secondary-color);
        color: var(--primary-color) !important;
    }
}

/* Between 600px and 1000px */
@media screen and (min-width: 650px) and (max-width: 1000px) {
    .appbar {
        padding: 32px 64px;
    }

    .appbar-logo {
        width: 150px;
    }

    .appbar-logo img {
        width: 150px;
    }

    .menuitem {
        padding: 8px;
        color: var(--primary-color);
        font-family: 'Verdana', sans-serif;
        font-size: 1.2em;
        position: relative;
        transition: ease-in-out 0.2s;
    }

    .menuitem::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width 0.2s ease-in-out;
    }

    .menuitem:hover::before {
        width: 100%;
    }

    .menuitem.active::before {
        width: 100%;
        background-color: white;
    }
}

/* Greater than 1000px */
@media screen and (min-width: 1000px) {
    .appbar {
        padding: 64px 160px;
    }

    .appbar-logo img {
        width: 200px;
    }

    .menuitem {
        padding: 8px;
        color: var(--primary-color);
        font-family: 'Verdana', sans-serif;
        font-size: 1.5em;
        position: relative;
        transition: ease-in-out 0.2s;
    }

    .menuitem::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width 0.2s ease-in-out;
    }

    .menuitem:hover::before {
        width: 100%;
    }

    .menuitem.active::before {
        width: 100%;
        background-color: white;
    }
}