/* 
  Replace 'your-background.jpg' with the path or URL to your desired background image 
*/

body {
    margin: 0;
    padding: 0;
    font-family: 'Verdana', sans-serif;
    /* Early 2000s web-safe font */

    /* Background Image */
    background: url('bg.png') no-repeat center center fixed;
    background-size: cover;

    /* Flex to center the music player container vertically/horizontally */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    box-sizing: border-box;
}

/* Artist Link Section */
.artist-link {
    background-color: #f0f0f0;
    /* Light grey background */
    color: #000000;
    /* Black text */
    border: 2px solid #000000;
    /* Black border */
    width: 300px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* Add a shadow for depth */
}

.artist-link a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #000000;
    /* Black text */
    font-weight: bold;
}

.artist-link a:hover {
    background-color: #ff0000;
    color: #ffffff;
    transition: 0.3s;
}

.music-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    /* White background */
    border: 4px solid #000000;
    /* Black border */
    padding: 20px;
    border-radius: 0px;
    /* Remove rounded corners */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* Strong 3D effect */
    width: 300px;
    text-align: center;
}

.control-btn {
    background-color: #dcdcdc;
    /* Light grey buttons */
    border: 2px solid #000000;
    /* Black border */
    color: #000000;
    /* Black text/icons */
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
}

.control-btn:hover {
    background-color: #ff0000;
    /* Red hover effect */
    color: #ffffff;
    /* White text/icons on hover */
}

.marquee {
    background-color: #f0f0f0;
    /* Light grey background */
    color: #000000;
    /* Black text */
    padding: 5px;
    width: 100%;
    height: 30px;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 15px;
    border: 2px solid #000000;
    /* Black border */
}

#song-title {
    animation: marquee 10s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

#time-elapsed,
#duration {
    color: #000000;
    /* Black text for time */
    margin: 0;
    font-size: 14px;
}

#progress-bar-container {
    background-color: #dcdcdc;
    /* Light grey background */
    border: 2px solid #000000;
    /* Black border */
    height: 10px;
    width: 100%;
    margin: 10px 0;
    border-radius: 0px;
    /* No rounding for a retro look */
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

#progress-bar {
    background-color: #000000;
    /* Black progress bar */
    width: 0;
    height: 100%;
}

.controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

#volume-control {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 5px;
    background: #dcdcdc;
    /* Light grey slider background */
    outline: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    border: 1px solid #000000;
    /* Black border */
}

#volume-slider:hover {
    opacity: 1;
}

/* Audio Visualizer */
.visualizer {
    margin-top: 20px;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bar {
    width: 8px;
    height: 100%;
    background-color: #ff0000;
    /* Red bars */
    transition: height 0.1s;
}

.bar:not(.active) {
    height: 10%;
    /* Default height when not playing */
}