/* ========== Root Variables and Reset ========== */
:root {
    --bg-color: #000000;
    --text-color: #00ff00;
    --accent-hover: #77ff77;
    --border-color: #00ff00;
    --font-family: 'Fira Code', monospace;
    --font-size-base: 14px;
    --font-size-lg: 16px;
    --font-size-sm: 12px;
    --padding: 10px;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Scrollbar Track */
::-webkit-scrollbar {
    width: 10px;
}

/* Scrollbar Background */
::-webkit-scrollbar-track {
    background: var(--bg-color);
}

/* Scrollbar Thumb (draggable part) */
::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
}

/* On Hover */
::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-hover);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-color);
}

/* ========== Base Styles ========== */
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========== Buttons ========== */
button {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: var(--border-color);
    color: var(--bg-color);
    border: 1px solid var(--bg-color);
    box-shadow: 0 0 10px var(--border-color);
}

button:active {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

#radioContainer {
    background-color: #000000;
    color: var(--text-color);
    font-family: 'Fira Code', monospace;
    border: 1px solid var(--border-color);
    padding: 15px;

    width: 400px;
    height: 200;

    display: flex;
    flex-direction: column;
    align-items: center;

}

#radioContainer h2 {
    margin-top: 0;
    color: var(--border-color);
}

#radioContainer audio {
    width: 100%;
    margin-top: 10px;
}

#custom-controls {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

#playPauseBtn {
    background-color: var(--border-color);
    border: none;
    color: var(--bg-color);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 40px; /* Centers the icon vertically */
    text-align: center; /* Centers the icon horizontally */
    padding: 0;
    margin-right: 15px;
}

#volumeSlider {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    width: 150px;
    height: 5px;
    background: #00ff0077;
    outline: none;
}
/* Style for the slider thumb */
#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: var(--border-color);
    cursor: pointer;
}
#volumeSlider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: var(--border-color);
    cursor: pointer;
}

.marquee-container {
    width: 100%;
    overflow: hidden;      /* Hides the text when it's outside the box */
    white-space: nowrap;   /* Prevents the long text from wrapping to a new line */
    box-sizing: border-box;
}

/* This is the text that will be animated */
#song-title {
    display: inline-block; /* Allows us to apply animation transforms */
    padding-left: 100%;    /* Starts the text just outside the right edge */
    
    /* Apply the animation */
    animation-name: scroll-text;
    animation-duration: 15s;      /* Adjust this to change the speed */
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

a{
    font-size: small;
    color: var(--text-color);
}

/* This is the animation definition */
@keyframes scroll-text {
    /* Starts at the beginning */
    from {
        transform: translateX(0%);
    }
    /* Ends when the text is fully scrolled to the left */
    to {
        transform: translateX(-100%);
    }
}

