body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #000000ff;
}

.material-icons {
    font-size: 24px; /* Recommended default size */
    color: #333;
}

.player-container {
    background-color: black;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #333;
}

/* Stream Buttons Container */
.stream-buttons, .song-request-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* Stream Buttons */
.streamBtn, .song-request-btn {
    background-color: rgb(25, 25, 25);
    color: white;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    width: 250px;
}

.streamBtn:hover, .song-request-btn:hover {
    background-color: rgb(40, 40, 40);
}

/* Highlight active stream button */
.streamBtn.active {
    background-color: rgb(0, 200, 100);
    border-color: rgb(0, 200, 100);
    color: #fff;
}

/* Player Controls */
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Main Play Button */
button {
    background-color: rgb(0, 200, 100);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background-color: rgb(0, 145, 70);
}

.autoplayCheckbox {
    background-color: rgb(25, 25, 25);
    color: white;
}

.close-btn {
    background-color: rgb(0, 200, 100);
    color: black;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: rgb(0, 200, 100);
}

/* Volume slider */
#volumeSlider {
    accent-color: transparent;
    -webkit-appearance: none;
    
    background: linear-gradient(
        to right,
        rgb(0, 200, 100) 0%, 
        rgb(0, 200, 100) var(--progress-ratio),
        #ccc var(--progress-ratio),
        #ccc 100%
    );
    width: 100%; 
    height: 8px;
    border-radius: 5px;
}

#volumeSlider::-webkit-slider-runnable-track {
    background: transparent; 
    height: 8px;
    border-radius: 5px;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: white; 
    border: 1px solid #999;
    box-shadow: none; 
    
    width: 15px; 
    height: 15px; 
    border-radius: 50%;
    margin-top: -3.5px; 
}

#volumeSlider::-moz-range-progress {
    background: rgb(0, 200, 100); 
    border-radius: 5px;
    height: 8px;
}

#volumeSlider::-moz-range-track {
    background: #ccc; 
    border-radius: 5px;
    height: 8px; 
}

#volumeSlider::-moz-range-thumb {
    border: 1px solid #999;
    width: 15px; 
    height: 15px; 
    background: white; 
    border-radius: 50%;
}

.volume-display-text {
    text-align: center;
    color: rgb(0, 200, 100);
    font-size: 14px;
    margin-top: -5px;
}

.now-playing {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 30px;
    font-weight: bold;
    color: white;
}

/* Hide volume control on mobile */
@media (max-width: 600px) {
    .volume-control {
        display: none;
    }

    .stream-buttons {
        flex-direction: column;
        align-items: center;
    }
    /* Settings menu */
    #settingsContainer {
        position: fixed; 
        
        top: 0px; 
        right: 0px; 
        
        z-index: 1000; 
        display: inline-block; 
    }
}

/* Song requests popup */
#songRequestModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

#song-list-div {
    flex-grow: 1;
    overflow-y: auto;
    min-height: 100px;
    padding: 10px;
    margin-top: 15px;
    border: 1px solid #ccc; 
    border-radius: 5px;
}

.popup-content {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    
    max-width: 90%; 
    max-height: 90%; 
    max-width: 80%;
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}

.song-items {
    /* Padding between each song so its easier to rread */
    padding: 5px 0;
    margin: 5px 0;
    border-bottom: 1px dashed #eee;
    text-align: left;
    color: rgb(0, 200, 100);;
    cursor: pointer;
}

.song-items:hover {
    background-color: rgb(50, 50, 50);
}

/* Settings menu */
#settingsContainer {
    position: fixed; 
    
    top: 20px; 
    right: 20px; 
    
    z-index: 1000; 
    display: inline-block; 
}

#settingsToggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease-in-out; 
}

/* Icon rotation when clicked */
#settingsToggle.active {
    transform: rotate(90deg);
}

#settingsMenu {
    position: absolute;
    
    right: 0; 
    
    top: 100%; 
    
    /* Appearance */
    background-color: #333; 
    border: 1px solid #555;
    padding: 10px;
    z-index: 1000; 
    min-width: 200px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}

/* Style for checkbox label inside the menu */
#settingsMenu label {
    color: white; 
    display: block; 
}