.topnav {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 0 10px;
    height: 70px;
    width: 100%;
    position: fixed;
    top: 0;
    transition: top 0.3s;
    white-space: pre;
}

.topnav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0 1rem;
    color: #000;
    height: 100%;
}

.topnav a:hover {
    background-color: #ddd;
}

.topnav a.active {
    border-bottom: 5px solid orange;
}

.topnav .navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 1rem;
    line-height: 0;
    height: auto;
}

.topnav .logo {
    display: block;
    height: 60px;
    width: auto;
}

.topnav .icon {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.topnav .nav-link {
    margin: 0;
    height: 70px;
}

#settingsButton {
    background-color: white;
    height: 55px;
    cursor: pointer;
    border: none;
    font-size: 16px;
    margin-left: 20px;
    border-radius: 50px;
}

#settingsButton:hover {
    background-color: #ddd;
}

.settings {
    background-color: rgb(84, 85, 84);
    color: white;
    padding: 20px;
    position: fixed;
    top: 0;
    left: -100%;
    width: 400px;
    height: 100%;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.1);
    transition: left 0.3s;
    z-index: 2000;
    font-family: 'Fredoka', sans-serif;
}

.settings.open {
    left: 0;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: #ff0000;
    font-size: 24px;
    cursor: pointer;
    transition: all .3s ease-in-out;
}

.close-btn:hover {
    transform: scale(1.2);
}

.settings-content {
    margin-top: 20px;
}

.settings-option {
    margin: 20px 0;
}

/* SMALL SCREENS */
@media screen and (max-width: 800px) {

    .topnav .nav-link {
        height: 70px;
    }

    .topnav {
        height: auto;
        /* allow navbar to shrink to fit content */
        padding: 0 0px;
        align-items: center;
        /* center remaining items vertically */
    }

    .topnav .logo {
        height: 50px;
        width: auto;
    }

    .topnav.responsive a:not(.navbar-brand):not(.icon) {
        display: flex;
        width: 100%;
        height: 40px;
        padding: 5px 10px;
        text-align: left;
        flex-direction: row;
    }

    /* Keep the logo fixed and unaffected */
    .topnav .navbar-brand {
        display: flex;
        align-items: center;
        padding: 0;
        margin-top: 5px;
        margin-left: 10px;
        height: auto;
        width: auto;
    }


    /* show the menu icon */
    .topnav a.icon {
        display: flex;
        margin-left: auto;
        align-items: center;
        height: 50px;
        cursor: pointer;
        font-size: 1.5rem;
    }

    #settingsButton {
        height: 55px;
    }


}