body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

.overlay {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    color: white;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

h1, h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 10px 0;
}

h1 {
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

h2 {
    font-size: 1.5em;
    color: #bbb;
    margin-bottom: 20px;
}

.warning {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 5px 15px;
    font-size: 16px;
    border-radius: 5px;
    z-index: 9999;
    cursor: pointer;
    display: inline-block;
}

.warning input[type="checkbox"] {
    display: none; /* Hide the checkbox */
}

.warning .popup-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Position below the warning message */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
    width: 200px;
}

.warning input[type="checkbox"]:checked + label + .popup-menu {
    display: block; /* Show the popup menu when checkbox is checked */
}

.popup-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.popup-menu li {
    padding: 5px 0;
}

/* Custom button design */
button {
    padding: 12px 24px;
    margin-top: 10px;
    font-size: 18px;
    cursor: pointer;
    background: linear-gradient(145deg, #6e7bff, #5560ea);
    border: none;
    border-radius: 10px;
    color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(145deg, #8e97ff, #7284f4);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.5);
}

button:active {
    background: linear-gradient(145deg, #4e59d4, #3b45a0);
    transform: translateY(2px);
}

/* Custom Audio Bar Style (including Seekbar) */
.audio-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/* Custom Seekbar */
#seek-bar {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    outline: none;
    transition: background 0.2s;
    cursor: pointer;
    margin-bottom: 10px; /* Margin to separate from the "Next Song" button */
}

#seek-bar:hover {
    background: #bbb;
}

/* Style the thumb (small circle) of the seek bar */
#seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

/* Make the thumb slightly bigger when dragging */
#seek-bar:active::-webkit-slider-thumb {
    transform: scale(1.2);
}

/* Hide the audio controls, using the custom seekbar instead */
audio {
    display: none; /* Hide the default audio controls */
}

/* Style the play/pause button */
#playPauseBtn {
    padding: 12px 24px;
    margin-top: 30px;
    font-size: 18px;
    cursor: pointer;
    background: linear-gradient(145deg, #6e7bff, #5560ea);
    border: none;
    border-radius: 10px;
    color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#playPauseBtn:hover {
    background: linear-gradient(145deg, #8e97ff, #7284f4);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.5);
}

#playPauseBtn:active {
    background: linear-gradient(145deg, #4e59d4, #3b45a0);
    transform: translateY(2px);
}

/* Time display next to the seek bar */
#current-time {
    font-size: 14px;
    color: white;
    margin-top: 10px;
}

.volume-container {
    margin-top: 15px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Volume Bar */
#volume-bar {
    -webkit-appearance: none;
    appearance: none;
    width: 20%;
    height: 4px;  /* Reduced height */
    background: #ccc;
    border-radius: 2px;
    outline: none;
    transition: background 0.2s;
    cursor: pointer;
    margin-bottom: 10px;
}

/* Volume Bar on Hover */
#volume-bar:hover {
    background: #bbb;
}

/* Style the thumb (small circle) of the volume bar */
#volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;  /* Reduced thumb size */
    height: 10px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

/* Make the thumb slightly bigger when dragging */
#volume-bar:active::-webkit-slider-thumb {
    transform: scale(1.2);
}

/* Volume Bar for Firefox */
#volume-bar::-moz-range-track {
    background: #ccc;
}

#volume-bar::-moz-range-thumb {
    width: 10px;  /* Reduced thumb size */
    height: 10px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}
