:root {
    --case-color: rgba(44, 44, 44, 0.9);
    --label-color: #f5f5f5;
    --accent: #d4a373;
    --text-color: #ffffff;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;

    /* GIF BACKGROUND SETTINGS */
    /* Replace 'your-wallpaper.gif' with your actual filename */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('Rainy-Bkg1.gif'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* You can delete the @keyframes gradientBG section as it's no longer needed */

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cassette {
    width: 350px;
    height: 220px;
    background-color: var(--case-color);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px); /* Makes it look like glass */
    border: 1px solid rgba(255,255,255,0.1);
}

.label {
    width: 90%;
    height: 120px;
    background-color: var(--label-color);
    border-radius: 10px;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 15px solid var(--accent);
}

.reel {
    width: 60px;
    height: 60px;
    border: 5px dashed #333;
    border-radius: 50%;
    background: #fff;
    position: relative;
}

.spinning {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.controls {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

button {
    padding: 10px 20px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    color: white;
    border: 2px solid var(--accent);
    border-radius: 5px;
    transition: 0.3s;
}

button:hover {
    background: var(--accent);
    color: black;
}

.song-info {
    margin-top: 20px;
    text-align: center;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
/* Progress & Volume Containers */
.progress-container, .volume-container {
    width: 300px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-container {
    width: 150px;
    color: white;
}

/* Slider Styling */
input[type="range"] {
    flex-grow: 1;
    cursor: pointer;
    accent-color: var(--accent);
}

/* Button Icon Sizing */
button i {
    font-size: 1.2rem;
}

.controls button {
    width: 60px; /* Make buttons more uniform for icons */
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Add to your existing song-info styles */
#track-title {
    min-height: 1.2em; /* Prevents layout jump while typing */
    display: inline-block;
    border-right: 2px solid var(--accent); /* Optional: The "typing" cursor */
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Ensure sliders look good on mobile */
input[type="range"] {
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    height: 5px;
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

#secret-message-container {
    height: 60px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

#secret-message {
    font-size: 2rem;
    color: #ff4d6d; /* Soft pink/red for the secret message */
    text-shadow: 0 0 10px rgba(255, 77, 109, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0;
}

#proposal-section {
    width: 100%;
    max-width: 400px;
}

.proposal-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#yesBtn {
    background-color: #ff4d6d;
    border: 2px solid white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 30px;
}

#noBtn {
    padding: 10px 30px;
    font-size: 1.2rem;
    transition: 0.1s ease;
}

/* Ensure the canvas is always on top of the background but behind the popup */
#canvas {
    z-index: 1500;
}