/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Press+Start+2P&display=swap');

/* General Body Styling */
body {
    font-family: 'Press Start 2P', monospace; /* Retro pixel font */
    background-color: #000000; /* Jet black background */
    color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    height: 100vh;
    overflow: auto;
}

/* Title Styling */
h1 {
    font-family: 'Bangers', sans-serif; /* Gangsta-style font */
    color: #ff5500;
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    animation: moveTitle 10s linear infinite, glitchEffect 3s infinite alternate; /* Add scrolling + glitch effect */
}

/* Animation for moving title */
@keyframes moveTitle {
    0% {
        transform: translateX(100%); /* Start from the right */
    }
    100% {
        transform: translateX(-100%); /* End off-screen to the left */
    }
}

/* VHS Glitch Effect for Title */
@keyframes glitchEffect {
    0% {
        transform: skew(-2deg, -2deg);
        text-shadow: 2px 2px 4px rgba(255, 0, 0, 0.8), -2px -2px 4px rgba(0, 255, 0, 0.8), 2px 2px 4px rgba(0, 0, 255, 0.8);
    }
    50% {
        transform: skew(2deg, 2deg);
        text-shadow: -2px -2px 4px rgba(255, 0, 0, 0.8), 2px 2px 4px rgba(0, 255, 0, 0.8), -2px -2px 4px rgba(0, 0, 255, 0.8);
    }
    100% {
        transform: skew(-2deg, -2deg);
        text-shadow: 2px 2px 4px rgba(255, 0, 0, 0.8), -2px -2px 4px rgba(0, 255, 0, 0.8), 2px 2px 4px rgba(0, 0, 255, 0.8);
    }
}

/* Track Container */
.track-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
    padding: 20px;
    margin-top: 40px;
    animation: fadeIn 2s ease-out; /* Animation for fade-in effect */
    border: 2px solid transparent; /* Transparent border to show the gradient contour */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6), 0 0 20px rgba(255, 140, 0, 0.6), 0 0 25px rgba(255, 69, 0, 0.6); /* Red and orange gradient glow */
}

/* Individual Track Styling */
.track {
    background-color: #121212;
    width: 100%;  /* Maximize track container width */
    padding: 0;
    margin-bottom: 20px;
    position: relative;
    border: 3px solid transparent;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(255, 0, 0, 0.7), 0px 0px 20px rgba(255, 140, 0, 0.7), 0px 0px 30px rgba(255, 69, 0, 0.7); /* Red and orange glow effect */
    animation: glitchEffect 3s infinite alternate; /* Glitch effect on tracks */
}

/* VHS Glitch Effect for Tracks */
@keyframes glitchEffect {
    0% {
        transform: skew(-2deg, -2deg);
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.7), 0 0 20px rgba(255, 140, 0, 0.7), 0 0 30px rgba(255, 69, 0, 0.7);
    }
    50% {
        transform: skew(2deg, 2deg);
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.7), 0 0 25px rgba(255, 140, 0, 0.7), 0 0 35px rgba(255, 69, 0, 0.7);
    }
    100% {
        transform: skew(-2deg, -2deg);
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.7), 0 0 20px rgba(255, 140, 0, 0.7), 0 0 30px rgba(255, 69, 0, 0.7);
    }
}

/* Music Player iframe Styling */
iframe {
    width: 100%;  /* Full width */
    height: 166px;  /* Default height for SoundCloud player */
    border: none;
    border-radius: 6px;
    transition: transform 0.3s ease-in-out;
}

/* Hover effect for iframe */
iframe:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Track Title and Artist */
.track-title {
    margin-top: 10px;
    font-size: 1.5rem; /* Bigger font for the title */
    color: #00ff00;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    font-family: 'Bangers', sans-serif; /* Gangsta-style font */
    animation: fadeIn 2s ease-out, scrollTitle 10s linear infinite; /* Animation for track title */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}

/* Scrolling title animation */
@keyframes scrollTitle {
    0% {
        transform: translateX(100%); /* Start from the right */
    }
    100% {
        transform: translateX(-100%); /* End off-screen to the left */
    }
}

/* Hover effect for track title links */
.track-title a {
    color: #ff5500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.track-title a:hover {
    color: #ffffff;
}

/* Footer */
footer {
    position: absolute;
    bottom: 20px;
    font-size: 0.8rem;
    color: #bbbbbb;
    width: 100%;
    text-align: center;
    letter-spacing: 1px;
}

/* Fade-in Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Red and Orange Gradient Glow Effect for SoundCloud embed */
iframe {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6), 0 0 20px rgba(255, 140, 0, 0.6), 0 0 25px rgba(255, 69, 0, 0.6); /* Red and orange glowing shadow */
    border-radius: 10px; /* Rounded corners for the SoundCloud player */
    border: 2px solid transparent; /* Transparent border to showcase glowing edges */
}
