/* Navigation bar styles */
nav {
    width: 100%;
    max-width: var(--width-vw);
    margin-left: 0;
    margin-right: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    max-height: 50px;
    background: var(--nav-bg);
    top: 65px;
    position: sticky;
    text-align: left;
    z-index: 1500;
}

.nav-toggle-checkbox {
    display: none;
}

.nav-left, .nav-right {
    display: none;
    align-items: center;
}

.nav-left {
    flex: 1;
}

.nav-toggle-label {
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    display: block;
    color: #fff;
    background: var(--nav-bg);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    padding-left: 0.5rem;
    align-self: center;
}

.nav-logout-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.nav-toggle-checkbox:checked + .nav-toggle-label + .nav-left {
    display: flex;
    flex-direction: column;
    background: var(--nav-bg);
    width: var(--width-vw);
    text-align: left;
    align-items: flex-start;
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 2000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.nav-left a,
.nav-right a {
    display: block;
    margin: 1rem 0;
    color: #fff;
    text-align: left;
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.nav-left a:hover,
.nav-right a:hover {
    color: var(--accent);
}

/* Tablet and up */
@media (min-width: 700px) {
    .nav-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: auto;
        margin-left: 10vw;
        padding-left: 0;
    }

    .nav-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        margin-left: 0;
        margin-right: 10vw;
        padding-left: 0;
    }

    /* Hamburger icon hidden */
    .nav-toggle-label {
        display: none;
        font-size: 2rem;
        cursor: pointer;
        padding: 0.5rem 1rem;
        user-select: none;
    }
}