@import url(variables.css);

#navbar {
    position: sticky;
    top: 1.5rem;
    width: 100%;
    z-index: 100;
    margin-top: 1.5rem;
}

#nav-items {
    list-style: none;
    display: flex;
    flex-direction: row;
    padding: 0px;
    margin: 0px;
}

#nav-content {
    display: flex;
    flex-direction: row;
    border: 2px solid white;
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: hidden;
    margin: 0px 1.5rem 0px 1.5rem;
}

#nav-brand {
    margin: 0.5rem;
    margin-right: auto;
}

#nav-brand img {
    height: 100%;
}

#mobile-close-button {
    display: none;
}

#mobile-open-button {
    display: none;
}

.nav-item, .nav-item-no-hover, .nav-item-current-page {
    padding: 0.5rem;    
    font-size: x-large;
    transition: background-color 0.5s;
    font-family: Anita Semi Square, Verdana, Calibri, Tahoma, Arial, sans-serif;
}

.nav-item:hover {
    cursor: pointer;
    background-color: var(--xcits-green);
}

.nav-item a, .nav-item-current-page a{
    color: white;
    text-decoration: none;
}

.nav-item-current-page {
    cursor: pointer;
    background-color: var(--xcits-green);
}

@media only screen and (max-width: 900px) {
    #nav-mobile {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        width: 100%;      
        display: flex;
        transform: translateX(-100%);
        transition: transform 1s;
    }

    #nav-mobile:target {
        transform: translateX(0%);
    }

    #nav-items {
        flex-direction: column;
        margin: auto;
        align-items: center;
    }

    #mobile-close-button {
        position: absolute;
        right: 1rem;
        top: 1rem;
        display: unset;
    }

    #mobile-open-button {
        display: unset;
        height: 48px;
        margin: 0.5rem;
    }

    .nav-item-current-page {
        background-color: transparent;
    }

    .nav-item-current-page a {
        color: var(--xcits-green);
    }

    .nav-item, .nav-item-current-page {
        margin-bottom: 1rem;
        margin-left: 0px;
    }

    .nav-item-no-hover {
        display: none;
    }

    .nav-item:hover {
        background-color: transparent;
    }
}