@import url(variables.css);

/* Header */
header {
    .banner-top {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        height: 80px;
        max-height: 80px;
    }

    .banner-logo {
        margin: auto var(--widthMargin);

        a {
            display: flex;
        }

        img {
            height: 40px;
        }
    }

    #header-banner-bottom {
        height: 3rem;
        background-color: var(--nyu-violet);
        display: flex;

        h1 {
            margin: auto var(--widthMargin);
            color: var(--white);
        }

        .nav-link {
            color: var(--white);
        }
    }
}

/* Default Icon Sizing */
.icon {
    height: 1rem;
    width: auto;
    margin-right: 0.5rem;
}

/* Mobile Menu Button */
button#menu-button {
    border: none;
    background: none;
    display: block;
    margin: auto var(--widthMargin);
    z-index: 1;
    height: fit-content;

    @media (min-width: 768px) {
        display: none;
    }

    img {
        height: 2rem;
        width: 2.5rem;
    }
}


/* Main Nav in Header */
nav {
    a {
        font-size: 0.85rem;
        text-decoration: none;
        font-family: GothamBold, sans-serif;
        color: var(--black);
        margin: auto 1rem;

        img {
            height: 1rem;
            margin: auto 0.5rem auto 0;
        }
    }

    form {
        font-size: 0.85rem;
        text-decoration: none;
        font-family: GothamBold, sans-serif;
        color: var(--black);
        margin: auto 1rem;
        display: flex;
        margin-right: var(--widthMargin);
        text-wrap: nowrap;

        img {
            height: 1rem;
            margin: auto 0.5rem auto 0;
        }
    }

}


/* Mobile Navigation */
#mobile-nav {
    display: flex;

    @media (min-width: 768px) {
        display: none;
        margin-right: 0;
    }

    nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        width: 0;
        overflow: hidden;
        right: 0;
        top: 0;
        border: none;
        background-color: var(--white);
        transition: all 0.25s ease-in;
        height: calc(100% - 80px);
        padding-top: 80px;
        z-index: 1;

        &.active {
            right: 0;
            top: 0;
            width: 200px;
            transition: all 0.25s ease-out;
            border: 1px solid var(--medium-gray-4);
            border-right: 0;
            border-top: 0;

            @media (min-width: 768px) {
                display: none;
            }
        }

        a {
            height: fit-content;
            padding: 0.9rem;
            width: calc(100% - 2rem);
            margin: 0;
            display: flex;
            justify-content: center;
            border-top: 1px solid var(--medium-gray-4);

            &:hover {
                background-color: var(--medium-gray-3);
            }

            &:last-of-type {
                border-bottom: 1px solid var(--medium-gray-4);
            }
        }
    }

    button#menu-button {
        background: none;
        border: none;
        padding: 0;
        z-index: 2;

        img {
            height: 2rem;
            width: 2.5rem;
        }
    }
}

/* Desktop Navigation */
#desktop-nav {
    display: none;

    @media (min-width: 768px) {
        display: flex;
    }

    nav {
        display: none;

        @media (min-width: 768px) {
            display: flex;
            flex-direction: row;
        }
    }
}
