
nav{
    border-bottom: 1px solid var(--hover-color);
    display:flex;
    width: 100%;
    max-width: 1800px;
}
nav ul{
    list-style: none;
    display: flex;
}
#logo {
    display: flex;
    align-items: center;
    padding: 0.5em 0.5em;
    height: 81px;
    width: 200px;
}

#logo img {
    width: 100%;
    height: auto;
}

nav li{
    display: flex;
    align-items: center;
    font-family: Panama-Light, sans-serif;
}

nav a{
    display: flex;
    text-decoration: none;
    font-family: Panama-Light, sans-serif;
    color: var(--white2);
    padding: 0.5em 1.5em;
    transition: background-color 150ms ease;

}
nav a:hover{
    background-color: var(--blue3);
    border-bottom: 2px solid var(--yellow2);
}
nav a.active-link{
    border-bottom: 2px solid var(--blue3);

}

nav .contact-li {
    display: none;

}

#navbar {
    margin-left: auto;
    margin-right: auto;
}
#open-sidebar-button{
    display: none;
    background: none;
    border: none;
    padding: 1em;
    margin-left: auto;
    cursor: pointer;
}
#close-sidebar-button{
    display: none;
    background: none;
    border: none;
    padding: 1em;
    cursor: pointer;
}
#overlay{
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 9;
    display: none;
}

nav .contact-button {
    background-image: linear-gradient(to right, #7f89b4, var(--blue3));
    padding: 5px 20px 5px 20px;
    text-decoration: none;
    margin: auto 0;
    color: var(--yellow2);
    font-weight: 600;
}

@media screen and (max-width: 992px) {
    #open-sidebar-button, #close-sidebar-button{
        display: block;
        float:right;
    }
    #navbar {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(15em, 100%);
        z-index: 10;
        border-left: 1px solid var(--hover-color);
        transition: right 300ms ease-in-out;
        background: var(--blue1);
    }
    #navbar.show {
        right: 0;
    }
    #navbar.show ~ #overlay{
        display: block;
    }
    nav ul{
        width: 100%;
        flex-direction: column;
    }
    nav a{
        width: 80%;
        padding-left: 2.5em;

    }
    nav a.active-link{
        border-bottom: none;
    }
    nav .home-li{
        margin-right: unset;
    }

    nav .contact-li {
        display: block;
        margin-top: 1em;
    }

    nav .contact-button {
        margin: auto auto;
        max-width: 150px;
        justify-content: center;

    }
}