header {
    position: relative;
    display: inline-block;
    text-align: left;
    margin-top: 1vw;
    width: 100%;
    height: 8vh;
    z-index: 10;
}

header * {
    font-family: 'Prata';
    color: var(--headerColor);
}

header.open {
    height: 100%;
}

ul#navbar {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.logo-wrapper {
    height: 100%;
    width: 100%;
    position: relative;
    flex-grow: 1;
}

.logo {
    display: inline-block;
    height: 65px;
    width: unset;
    aspect-ratio: 14 / 6;
    transform-origin: left top;
    background-image: url(/assets/media/logo/logo_stack_black.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left;
    cursor: pointer;
}

.hamburger {
    position: absolute;
    right: 0;
    top: calc(50% - 19px);
    height: 4vh;
    width: 4vh;
    font-size: 22px;
    cursor: pointer;
    user-select: none;
}

ul#navbar > li {
    flex-grow: 0;
    display: none;
    padding: 1.3vh;
    border-top: 1px solid grey;
    background-color: #fff;
}
ul#navbar > li:last-of-type {
    border-bottom: 1px solid grey;
}

ul#navbar.open > li {
    display: inline-block;
}

ul#navbar > li ul li {
    margin-inline-start: 10vw;
    padding: 0.7vh 0;
}

ul#navbar > li div img {
    display: none;
}

/* Admin */

#adminWrap {
    position: fixed;
    top: 10vh;
    left: 0;
    width: 60px;
    color: white;
    font-size: 24px;
    z-index: 10;
}

#adminWrap .adminLink {
    font-family: 'roundhand';
    background-color: var(--allianceColor);
    height: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#adminWrap .signOutLink {
    background-color: var(--lightGrey);
    height: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#adminWrap img {
    width: 50%;
    height: 50%;
    object-fit: contain;
}

@media only screen and (min-width: 650px) {
    .logo {
        height: 90px;
        margin-right: 3rem;
    }
}

@media only screen and (min-width: 950px) {
    ul#navbar {
        flex-direction: row;

        gap: 1rem;
        justify-content: space-between;
        height: 90px;
        align-items: center;
    }


    .hamburger {
        display: none;
    }

    ul#navbar > li {
        width: max-content;
        display: inline-block;
        position: relative;
        flex-basis: unset;
        list-style: none;
        height: fit-content;
        font-size: 18px;
        padding: 0;
        border-top: none;
        background-color: transparent;

    }
    ul#navbar > li:hover {
        z-index: 3;
    }
    ul#navbar > li:hover ul {
        display: block;
    }
    ul#navbar > li:last-of-type {
        border-bottom: none;
    }

    ul#navbar > li div {
        display: flex;
        margin-top: 8px;
        align-items: center;
        z-index: 2;
        position: relative;
    }
    ul#navbar > li div a.label {
        font-family: 'Roboto';
        font-size: 1.2rem;
    }
    
    ul#navbar > li ul {
        display: none;
        position: absolute;
        top: -6px;
        left: -1rem;
        padding: 1rem;
        padding-top: 3rem;
        min-width: calc(100% + 2rem);
        width: max-content;

        background-color: #fff;
		border-radius: 5px;
		box-shadow: 0 0 10px rgba(0,0,0,0.1);

        z-index: 1;
    }
    
    ul#navbar > li ul li {
        position: relative;
        display: none;
        justify-content: left;
        z-index: 10;
        color: var(--paragraphColor);
        margin-inline-start: 0;
        padding-top: 6px;
        font-size: 16px;
        z-index: 2;
    }
    ul#navbar > li ul li {
        font-family: 'Roboto';
        font-size: 1rem;
    }
    
    ul#navbar a.label {
        align-self: center;
        width: max-content;
        font-size: 16px;
        line-height: 1.2;
        margin-block-start: 0;
        cursor: pointer;
    }
    
    ul#navbar > li:hover ul li {
        display: flex;
        cursor: pointer;
    }
    
    /* ul#navbar > li:hover div a {
        border-bottom: var(--headerColor) 1px solid;
        padding: 2px 0;
    } */
   
    ul#navbar > li div img {
        display: block;
        height: 22px;
        margin-bottom: 2px;
    }

    #mobilehome {
        display: none !important;
    }
}

@media only screen and (min-width: 1150px) {
    ul#navbar {
        gap: 3rem;
    }
}