#audio-settings a{
    font-size: 1.2rem;
}

.settings-btn {
    display: inline-block;
    width: 60px;
    aspect-ratio: 19 / 10;
    background: url('../images/flags/en-US.svg') center / cover no-repeat;
    border: 2px solid #fff;
    border-radius: 4px;
    cursor: pointer;
    flex: 0 0 auto;        /* harmless under grid, keeps width fixed */
    margin-right: 1rem;
    font-size: 1.5rem;
}


.sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 300px;
    height: 100%;
    background: #ffffff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    padding: 20px;
    transition: right 0.3s ease;
    z-index: 999;
}
.sidebar.open {
    right: 0;
}
.sidebar .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.sidebar #sidebar-sliders {
    width: 250px;
}
input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 200px;
    height: 6px;
    background: #b5b5b5;           /* Track color */
    border-radius: 5px;
    outline: none;
    margin-top: 8px;
}

/* WebKit */
input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #5c5ca8;
    cursor: pointer;
    margin-top: -5px; /* adjust based on track height */
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #5c5ca8;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* IE */
input[type="range"]::-ms-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #5c5ca8;
    cursor: pointer;
}


/* Sidebar als Overlay (nicht verschieben) */
body.with-sidebar {
    margin-right: 0 !important;
}

.top-nav .settings-btn {
    margin-left: auto;
    margin-right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

#audio-settings {
    padding-bottom: 1rem;
}

/* Container für das Dropdown */
#flag-dropdown {
    position: relative;
    display: inline-block;
    list-style: none;
    padding: 0;
    cursor: pointer;
    width: 200px;
    border: 2px solid #ccc;
    margin-top:8px;
}

/* Alle Einträge verstecken außer dem ausgewählten */
#flag-dropdown li {
    padding: 12px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: white;
    border: 2px solid #ccc;
}
#flag-dropdown li:hover {
    background: #ccc;
}

#flag-dropdown li img {
    display: inline-block;
}

#flag-dropdown li a {
    font-size: 1.2rem;
}

/* Standardmäßig alle außer dem ersten verstecken */
#flag-dropdown li:not(.active) {
    display: none;
}

/* Dropdown öffnen */
#flag-dropdown.open li {
    display: flex;
}

/* Hover-Style */
#flag-dropdown li:hover {
    background: #eee;
}
.sidebar span[data-i18n="language"] a {
    font-size: 17px;
}

#sidebar-sliders span a {
    font-size: 17px;
}


/* for mobile (small screen sizes) */
@media (max-width: 768px) {
    .settings-btn {
        /*width: 30px; !* or 32px / 40px *!*/
        /*height: 30px;*/
    }
    .sidebar {
        position: fixed;
        top: 0;
        right: -500px;
        width: 250px;
    }
}
