:root {
    --primaryFontColour: #E7EfE6;
    --secondaryFontColour: #282828;
    --accentColour: #FFB000;
}



/* NAVIGATION BAR (DESKTOP VERSION) */
nav {
    background-color: var(--accentColour);
    border-bottom: var(--accentColour);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 10;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

nav ul > a {
    margin: 0;
    padding: 0 !important;
    background-color: transparent !important;
    flex-shrink: 0;
}

nav ul > a:hover {
    background-color: transparent !important;
}

nav ul > a > img {
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: block;
}

nav ul > a > img:hover {
    opacity: 0.8;
}

nav ul > li:first-child {
    display: none;
}

.navLinksGroup {
    display: flex;
    align-items: center;
    gap: 0;
    margin-right: 0;
}

nav li {
    display: flex;
    font-size: 1.2rem;
}

nav a {
    display: flex;
    text-decoration: none;
    color: var(--secondaryFontColour);
    padding: 0.8em 1.5em;
    transition: background-color 150ms ease;
    border-radius: 20px;
}

nav a:hover {
    background-color: var(--primaryFontColour);
    border-radius: 20px;
}

nav img {
    margin: 5px;
    height: 60px;
    width: 60px;
}



/* NAVIGATION BAR (MOBILE PHONE VERSION) */
#openSidebarButton {
    display: none;
    background: var(--accentColour);
    border: none;
    padding: 1em;
    margin-left: auto;
    cursor: pointer;
    position: fixed;
    width: 100%;
    z-index: 10000;
}

/* #openSidebarButton img {
    align-items: center;
    width: auto;
} */

#closeSidebarButton {
    display: none;
    background: none;
    border: none;
    padding: 1em;
    cursor: pointer;
    position: relative;
    align-self: center;
}

#overlay {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 9;
    display: none;
}

@media screen and (max-width: 700px) {

    #openSidebarButton {
        display: block;
    }
    
    #closeSidebarButton {
        display: block;
    }
    
    nav ul > li:first-child {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        height: 100dvh;
        width: 70%;
        max-width: 300px;
        z-index: 11000;
        border-left: 1px solid var(--accentColour);
        transition: right 300ms ease-out;
    }

    nav.show {
        right: 0;
    }

    nav.show~#overlay {
        display: block;
    }

    nav ul {
        max-width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    
    nav ul > li:first-child {
        align-self: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    nav ul > a {
        order: -1;
        margin-top: 1rem;
        align-self: center;
    }

    .navLinksGroup {
        flex-direction: column;
        width: 100%;
        margin-right: 0;
        align-items: center;
    }

    nav a {
        max-width: 100%;
        padding: 0.8em 1.5em;
        text-align: center;
    }

    nav .homeList {
        margin-right: unset;
        align-items: center;
    }

    nav a:hover {
        background-color: transparent;
        color: var(--primaryFontColour);
        border-radius: 20px;
    }
}