nav, footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: white;
    padding: 0.5rem 0 0.5rem 0;
    height: 10rem;
    background: linear-gradient(to bottom, var(--qapi-dark-purple), var(--qapi-medium-purple));
}

nav ul {
    display: flex;
    align-content: center;
    align-items: center;
    list-style-type: none;
    margin: 0;
    height: 3rem;
    flex-wrap: nowrap;
    flex: 1 1 4rem;
}

nav ul li {
    display: flex;
    margin: 0 1rem 0 0;
    align-items: center;
    align-content: center;
    height: 100%;
}

nav ul #other-buttons {
    margin: 0;
}

nav ul #other-buttons ul {
    flex: 1 1 100%;
    padding:0;
}

nav ul #other-buttons ul li {
    margin:0 1rem 0 0;
}

nav ul li a {
    display: flex;
    align-items: center;
    align-content: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
    margin: 0;
    color: white;
    border: var(--qapi-gold) solid 2px;
    background-color: var(--qapi-transparent);
    text-decoration: none;
    font-weight: 700;
}

nav ul li a:hover {
    background-color: var(--qapi-gold);
    color: var(--qapi-purple);}

nav ul #logo {
    border: none;
    margin-right: auto;
    flex: 0 1 4rem;
    background-color: var(--qapi-transparent);
}

nav ul #logo img, nav ul #logo svg {
    max-height: 4rem;
}

nav ul #logo a {
    /*this is the logo*/
    background: none;
    color: white;
    margin: 0;
    padding: 0;
    border: none;
}

#menu-button{
    display: none;
    border: none;
    width: 50px;
    height: 50px;
}

#menu-button button{
    color: white;
    align-items: center;
    align-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    background-color: transparent;
    display: none;
    border: none;
}

#other-buttons{
    display: flex;
}

@media (max-width: 799px){

    nav, footer {
        height: auto;
    }

    nav ul {
        flex-wrap: wrap;
        flex: 1 1 100%;
        height: auto;
        margin:0;
        padding: 0;
    }

    nav ul li {
        align-self: flex-start;
        margin: 0;
        padding: 0;
    }

    #menu-button{
        display: flex;
        height: 100%;
        align-items: center;
        align-content: center;
        width: auto;
    }

    #menu-button button{
        margin: 1rem;
    }

    #menu-button button{
    }

    nav #other-buttons, nav ul #other-buttons ul li{
        flex: 1 1 100%;
        order: 1;
        margin:0;
        padding:0;
        border-top: 1px solid black;
    }
    nav #other-buttons a{
        width: 100%;
        margin: 0;
    }

    #menu-button #closer-button{
        font-weight: 400;
    }

    #menu-button #opener-button {
        display: initial;
    }


}