/* Settings Section Styles */
.settings-section {
    margin: 25px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
}

.settings-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
}

.setting-item {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #8a2be2;
}

.setting-item select {
    flex: 1;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-item select:hover {
    border-color: #8a2be2;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.setting-item select:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.7);
}

.setting-item span {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
}

/* Volume slider styles */
.setting-item input[type="range"] {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    margin-left: 10px;
}

.setting-item input[type="range"]:hover {
    border-color: #8a2be2;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #8a2be2;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.setting-item input[type="range"]::-webkit-slider-thumb:hover {
    background: #9d4edd;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
}

.setting-item input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #8a2be2;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.setting-item input[type="range"]::-moz-range-thumb:hover {
    background: #9d4edd;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
}

/* Fixed width for volume percentage display */
#music-volume-value,
#music-volume-value-start,
#sfx-volume-value,
#sfx-volume-value-start {
    min-width: 45px;
    display: inline-block;
    text-align: right;
    font-size: 12px;
    color: #8a2be2;
    font-weight: bold;
    margin-left: auto;
    margin-right: 10px;
}

/* Mobile adjustments for settings */
@media (max-width: 768px) {
    .settings-section {
        padding: 15px;
    }

    .settings-section h3 {
        font-size: 16px;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .setting-item label {
        width: 100%;
    }

    .setting-item select {
        width: 100%;
    }

    .setting-item input[type="range"] {
        width: 100%;
        margin-left: 0;
    }

    #music-volume-value,
    #music-volume-value-start,
    #sfx-volume-value,
    #sfx-volume-value-start {
        margin-left: 0;
        margin-right: 0;
    }
}