/* Navbar styles */
.navbar {
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    font-family: regularFont, serif;
    font-size: 0.9em;
    text-transform: uppercase;
    backdrop-filter: blur(20px);
    background-color: var(--primary-color);
}

.menu {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    list-style-type: none;
    gap: 20px;
    width: 100%;
    height: 100%;
}

.menu li {
    width: 100%;
    height: 100%;
}

.menu-settings{
    display: flex;
    align-content: center;
    justify-content: center;
    gap: 5px;
    flex: 0.5;
}

.menu-settings:hover{
    background-color: unset;
}

.menu a {
    text-decoration: none;
    color: var(--secondary-color);
}

.menu-item {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.menu-item:hover {
    color: white;
    border: 1px solid var(--secondary-color-50pct);
}

.menu-item.active{
    color: white;
    background-color: var(--secondary-color-10pct);
    border: 1px solid var(--secondary-color-50pct);
}

/* Update the styles for the language selection dropdown */
.language-dropdown {
    background-color: transparent;
    color: white;
    padding: 8px;
    border: none;
    cursor: pointer;
    height: 100%;
}

.language-dropdown:hover {
    background-color: var(--primary-color);
}

.language-dropdown:focus {
    outline: none; /* Remove focus outline on click */
}

/* Style the selected option */
.language-dropdown option {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    display: block;
    border-radius: 0;
}

.language-dropdown option:hover{
    background-color: var(--primary-color-50pct);
    color: white;
    border: 1px solid white;
}

/* Style the dropdown indicator */
.language-dropdown::after {
    content: '\25BC'; /* Unicode character for down arrow */
    color: #fff;
    margin-left: 8px;
}

/* Hover styles for the dropdown */
.language-dropdown:hover {
    background-color: var(--primary-color-50pct);
    color: white;
}

/* Focus styles for the dropdown */
.language-dropdown:focus {
    outline: none;
}

#mode-toggle{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    height: 100%;
    width: 3em;
}

#mode-toggle:hover{
    background-color: var(--primary-color-50pct);
    color: white;
    border: 1px solid white;
}

.burger-menu-toggle {
    display: none; /* hide burger menu icon */
}

.mobile-menu{
    display: none;
}

/* Mobile styles */
@media only screen and (max-width: 880px) {

    .mobile-menu {
        display: block;
    }

    .mobile-title{
        text-align: center;
        margin-left: 20px;
    }

    .menu {
        backdrop-filter: blur(50px);
        background-color: var(--primary-color);
        display: none;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        top: 50px;
        left: 0;
        padding: 0;
        margin: 0;
        height: 95vh;
    }

    .menu li {
        height: auto;
    }

    .burger-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 100%;
        cursor: pointer;
    }

    .burger-menu-toggle:hover {
        color: white;
        border: 1px solid white;
    }

    .burger-menu-toggle:hover + .menu{
        display: flex;
    }

    .menu-item {
        background-color: var(--primary-color);
        flex: 1;
    }

    .menu-settings {
        display: none;
    }
}
