@font-face {
    font-family: 'ClickHerFont';
    src: url('../../assets/fonts/amorlate.regular.ttf');
}
.settings {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'ClickHerFont', Arial, sans-serif;
}

.S_container {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.S_topcont {
     display: flex;
     justify-content: center;
     align-items: center;
     flex-direction: row;
     width: 100%;
     height: 85%; 
}
.S_leftcont {
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 41px;
    justify-content: center;
}

.S_video {
    width: 100%;
    /* height: 35%; */
    /* margin-left: 100px; */
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-content: center;
}
.S_videotitle {
    width: 100%;
    display: flex;
    font-size: 70px;
    margin-bottom: 65px;
    font-weight: bold;
    color: var(--rp-color);
}
.S_rescont {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
}
.S_res {
    width: 600px;
    font-size: 45px;
    color: var(--bn-color);
    text-overflow: ellipsis;
    overflow: hidden;
}
.S_resbutton {
    width: 250px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.S_dmcont {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
}
.S_dm {
    width: 600px;
    font-size: 45px;
    color: var(--bn-color);
    text-overflow: ellipsis;
    overflow: hidden;
}
.S_dmbutton {
    width: 250px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.S_langcont {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
}
.S_lang {
    width: 600px;
    font-size: 45px;
    color: var(--bn-color);
    text-overflow: ellipsis;
    overflow: hidden;
}
.S_langbutton {
    width: 250px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.S_resbutton, .S_dmbutton, .S_langbutton {
    width: 250px;
    height: 100%;
    position: relative;
    background-color: var(--bn-color);
    border: 2px solid var(--wb-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    font-size: 18px;
    margin-left: 28px;
    text-wrap: nowrap;
    /* text-overflow: ellipsis; */
}

.dropdown-selected {
    flex: 1;
    color: var(--wb-color);
    text-overflow: ellipsis;
    overflow: hidden;
    /* width: 153px; */
}

.dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid black;
    transition: transform 0.3s ease;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bn-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 0;
    overflow-y: scroll;
    transition: max-height 0.3s ease;
    z-index: 10;
    scrollbar-color: black transparent;
    scrollbar-width: thin;
    scrollbar-color: transparent;
    /* text-overflow: ellipsis; */
    /* overflow: hidden; */
}

.dropdown-menu.open {
    max-height: 200px;
}

.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--wb-color);
    transition: background-color 0.2s ease;
    color: var(--wb-color);
    text-overflow: ellipsis;
    overflow: hidden;
}

.dropdown-item:hover {
    background-color: #5a6578;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item.selected {
    background-color: var(--rp-color);; /* Darker background for selected item */
}

.dropdown-item.selected:hover {
    background-color: #474a4e; /* Even darker on hover when selected */
}

.S_rightcont {
    width: 33%;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
    margin-right: 50px;
}

.S_Credits {
    width: 100%;
    height: 50%;
    margin-left: 100px;
    margin-top: 50px;
}
.S_charselectedcont {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;   
    margin-top: 26px;
    font-weight: bold;
}
.S_charselectedtitle {
    font-size: 40px;   
}
.S_creditstitle {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 70px;   
    margin-top: 100px;
    font-weight: bold;
    color: var(--rp-color);
}

.S_audio {
    width: 100%;
    height: 35%;
    /* margin-left: 100px; */
    margin-top: 50px;
}

.S_audiotitle {
    width: 100%;
    display: flex;
    font-size: 70px;
    margin-bottom: 65px;
    color: var(--rp-color);
    font-weight: bold;
}

.S_soundscont, .S_musiccont {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
}

.S_sounds, .S_sfx, .S_music {
    width: 600px;
    font-size: 45px;
    color: var(--bn-color);
    text-overflow: ellipsis;
    overflow: hidden;
    /* text-overflow: ellipsis; */
    /* overflow: hidden; */
}

.S_soundsslider, .S_sfxslider, .S_musicslider {
    width: 250px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-left: 28px;
}

/* Slider Styles */
.slider {
    width: 200px;
    height: 8px;
    background-color: var(--wb-color);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.slider-track {
    height: 100%;
    background-color: var(--bn-color);
    border-radius: 10px;
    width: 50%;
    position: relative;
    border: 2px solid;
    border-color: var(--wb-color);
}

.slider-thumb {
    width: 20px;
    height: 20px;
    background-color: var(--bn-color);
    border: 3px solid var(--wb-color);
    border-radius: 50%;
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.slider-thumb:hover {
    transform: translateY(-50%) scale(1.1);
}

.slider-thumb.dragging {
    transform: translateY(-50%) scale(1.2);
}

/* Optional: Add volume percentage display */
.slider-value {
    position: relative;
    top: -30px;
    right: 0;
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.slider:hover .slider-value {
    opacity: 1;
}

.S_bottomcont {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 15%;
}
.S_apply, .S_cancel{
    width: 200px;
    height: 60px;
    margin: 0 20px;
    background-color: var(--bn-color);
    border: 2px solid var(--wb-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 20px;
    font-size: 33px;
    transition: background-color 0.2s ease;
    font-family: ClickHerFont;
}
.S_apply:hover, .S_cancel:hover {
    background-color: var(--rp-color);
}

.S_back{
    height: 70px;
    width: 70px;
    position: fixed;
    top: 18px;
    left: 18px;
    cursor: pointer;
    margin-top: 10px;
}
.S_back img {
    height: 100%;
    width: 100%;
    filter: brightness(0) saturate(100%) invert(73%) sepia(96%) saturate(2664%) hue-rotate(140deg) brightness(105%) contrast(101%);
}

.speedrun-mode .S_back img {
    filter: brightness(0) saturate(100%) invert(91%) sepia(82%) saturate(1145%) hue-rotate(350deg) brightness(107%) contrast(89%);  
}

.S_backtext, .S_applytext, .S_canceltext {
    color: var(--wb-color);
}

.S_credits {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 70px;   
    margin-top: 100px;
}

.TS_game_version {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 16px;
    color: var(--cyan-color);
}