/*
Theme Name: SC420Radio EarCandy
Author: SC420Radio
Description: EarCandy Mp3 Player
*/

/* 🔲 Base Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-image: url('assets/images/hoodie.jpg'); /* Ensure this path is correct relative to style.css */
  background-color: #000000; /* Combined from DAW-Style Enhancements */
  color: #e0e0e0; /* Combined from DAW-Style Enhancements */
  font-family: 'Orbitron', sans-serif; /* Combined from DAW-Style Enhancements */
  background-attachment: fixed;
  background-position: bottom;
  background-size: cover;
  background-repeat: no-repeat;
}
/* Add these rules to your style.css */

/* Main Page Wrapper - ensures all content is centered and has a max-width */
#page {
    max-width: none; /* Adjust this value as needed for your overall site width */
    margin: 0 auto; /* Center the page wrapper horizontally */
    padding: 0px; /* Add some padding around the content */
    box-sizing: border-box; /* Include padding in the width calculation */
}

/* Content Area - for consistency and responsiveness */
#content {
    width: 100%;
    max-width: 100%; /* Ensures it fills its parent (#page) */
    margin: 0 auto; /* Center if it doesn't fill its parent */
    box-sizing: border-box;
}

/* Primary Content Area - often contains main loop/template content */
#primary {
    width: 100%;
    max-width: none; /* Ensures it fills its parent (#content) */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Main Element - for semantic HTML5 */
main {
    width: 100%;
    max-width: none; /* Ensures it fills its parent (#primary) */
    margin: 0 auto;
    box-sizing: border-box;
}

/* --- Custom Fonts --- */
@font-face {
    font-family: 'Kenia';
    src: url('assets/fonts/Kenia-Regular.ttf') format('truetype'); /* Adjust filename if different */
    font-weight: normal; /* Adjust if you downloaded specific weights (e.g., bold) */
    font-style: normal; /* Adjust if you downloaded italic */
    font-display: swap; /* Helps with font loading performance */
}

@font-face {
    font-family: 'Comforter';
    src: url('assets/fonts/Comforter-Regular.ttf') format('truetype'); /* Adjust filename if different */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'RubikDirt';
    src: url('assets/fonts/RubikDirt-Regular.ttf') format('truetype'); /* Adjust filename if different */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Site Header and Title Animation --- */
.site-header {
    text-align: center;
    padding: 0px 0;
}

/* Animation container for the main site title */
#site-title-animation-container {
	background-image: #000000;
    position: relative;
    overflow: hidden;
    display: contain; /* Use flexbox to center the h1 */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
	width: 100%; /* Make the image take up 100% of its parent's width */
    height: 100%; /* Maintain the aspect ratio */
    display: contain; /* Ensure it behaves as a block element for width/margin control */
	box-sizing: border-box;
    margin: 0px auto; /* Keep it centered with some vertical margin */
}

/* ============================================================
   MENU STYLES
============================================================ */

/* Default Menu (Desktop) */
#top-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.menu-button {
    color: white;
    font-size: 36px;
    font-family: 'Impact', sans-serif;
    padding: 5px 5px;
    cursor: pointer;
    text-align: center;
    border: 1px solid #d86800;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100px;
    margin: 10px auto;
    transition: all 0.3s ease;
}

.menu-button:hover {
    background-color: rgba(216, 104, 0, 0.2);
    border-color: #ff8c00;
}

.menu-icon {
    font-size: 28px;
    line-height: 1;
}

.menu-text {
    font-size: 28px;
    font-weight: bold;
}

.menu-links {
    display: none;
    padding: 0px;
    text-align: center;
    transform-origin: top center;
    transition: all 0.3s ease;
}

.menu-links a {
    color: white;
    text-decoration: none;
    font-size: 1.8em;
    font-family: 'Impact', sans-serif;
    padding: 0px 0px;
    display: block;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid transparent;
    margin: 5px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.menu-links a:hover {
    background-color: rgba(216, 104, 0, 0.3);
    border-color: #d86800;
    transform: translateX(5px);
}

/* Open Menu State */
#top-menu.menu-open {
    background-color: rgba(0, 0, 0, 0.95);
    width: 100%;
    max-width: 250px;
}

#top-menu.menu-open .menu-links {
    display: flex;
    flex-direction: column;
    transform: scaleY(1);
}

#top-menu.menu-open .menu-links a {
    font-size: 1.8em;
}

/* --- Mobile Menu (Side-Slide) --- */
@media (max-width: 768px) {
    #top-menu {
        background-color: rgba(0, 0, 0, 0.95);
        left: -100%; /* Initially hide menu off-screen to the left */
        top: 0;
        width: 90%; /* Width of the side menu */
        max-width: 350px;
        height: 100vh; /* Full viewport height */
        transition: left 0.3s ease-in-out;
        display: block;
        padding: 0px;
    }

    #top-menu.menu-open {
        left: 0; /* Slide menu into view */
    }

    /* Restyle the menu button for mobile to be fixed at the top-left */
    .menu-button {
        position: fixed;
        left: 10px;
        top: 10px;
        z-index: 1001; /* Ensure button is on top of the menu */
        margin: 0;
        max-width: 150px;
    }

    .menu-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 40px 0;
        margin-top: 20px;
    }

    .menu-links a {
        font-size: 1.8em;
        padding: 0px 0px;
        width: 90%;
        text-align: center;
    }
}

/* Enhanced Menu Visibility Styles */
#top-menu {
    transition: opacity 0.5s ease-in-out, top 0.5s ease-in-out;
}

#top-menu.menu-retracted {
    opacity: 0;
    pointer-events: none;
    top: -100px;
}

#top-menu.menu-visible {
    opacity: 1;
    pointer-events: auto;
    top: 0;
}

/* Menu Overlay */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(3px);
}

#menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Ensure menu appears above overlay */
#top-menu {
    z-index: 1000;
}

/* Desktop menu positioning */
@media (min-width: 769px) {
    #top-menu.menu-open {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        min-width: 350px;
        max-width: 500px;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 10px 50px rgba(216, 104, 0, 0.5);
    }
}

.lightbox-scroll-wrapper {
  overflow-x: hidden;
  width: 100%;
}

.lightbox-scroll {
  display: flex;
  animation: scrollLeft 30s linear infinite;
  height: 240px;
  width: max-content; /* Allow natural width based on content */
}

.lightbox-scroll img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
 
.site-title {
	box-sizing: border-box;
	text-align: center;
    font-family: 'Kenia';
    font-size: 6.3rem;
    color: #fff;
    text-shadow: 6px 2px #223E25;
    margin: 0; /* Remove default margin */
    /* Add animation properties */
    position: relative; /* Needed for top property in animation */
    top: -200px; /* Start far above */
    animation: dropBounceShake 3s ease-in-out forwards; /* 3s duration, forwards keeps final state */
}

/* Keyframes for the animation */
@keyframes dropBounceShake {
    0% {
        top: -200px; /* Start off-screen above */
        transform: rotate(0deg);
    }
    50% {
        top: 0; /* Drop to final position */
        transform: rotate(0deg);
        animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1); /* Ease-out for bounce */
    }
    65% {
        top: -20px; /* Bounce up */
        transform: rotate(-3deg);
    }
    80% {
        top: 0; /* Settle back down */
        transform: rotate(3deg);
    }
    90% {
        top: -5px; /* Slight final bounce */
        transform: rotate(-1deg);
    }
    100% {
        top: 0; /* Final resting position */
        transform: rotate(0deg);
    }
}

/* Player Container */
#player-container {
  background-image: url('assets/images/displayscreen.gif'); /* Ensure this path is correct relative to style.css */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
  background-attachment: stroll; /* Makes the background fixed */
  width: 100%;
  max-width: none; /* Ensures it fills its parent (#primary) */
  height: 100%; /* Maintain the aspect ratio */
  border: 2px solid #ffffff;
  padding: 0px; /* Increased padding */
  margin-bottom: 0px;
  text-align: center;
}

/* Waveform Display */
#waveform {
  background-size: contain;
  background-color: #222;
  border: 4px solid #223E25;
  margin-top: 0px;
  width: 100%;
  max-width: none; /* Ensures it fills its parent (#primary) */
  height: 100%; /* Maintain the aspect ratio */
}

/* Now Playing Section */
#now-playing {
	padding: 25px; /* Increased padding */
	background-color: #000000;
	border: 2px solid #223E25;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    color: white;
    font-size: 40px;
    margin-top: 10px;
}

/* Player Controls */
.player-controls button {
	border-radius: 50px;
    background-color: #223E25;
    color: white;
    border: 3px solid #ffffff;
    padding: 10px 10px;
    margin: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.player-controls button:hover {
    background-color: #000000;
}

/* Page Content */
#page-content {
	background-size: contain;
    display: block;
    align-items: center;
}

/* Volume Slider */
#volume-slider {
  margin: 20px auto;
  border: none;
  outline: none;
}

#volume-slider::-webkit-slider-thumb {
}

#volume-slider::-moz-range-thumb {
}
 
/* Banner Scroll Wrapper */
.banner-scroll-wrapper {
	border: 2px solid #fff;
    max-height: none; /* Or a fixed height */
    overflow: hidden; /* Hide scrollbar, but content can be scrolled by JS */
    margin-top: 0px;
    position: relative;
}

#banner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    padding: 0px;
    animation: scrollBanner 90s linear infinite; /* Adjust duration as needed */
}

#banner-container img {
    max-width: none;
    border: 2px solid white;
}

@keyframes scrollBanner {
    0% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(-50%); /* Scroll up by half the content to loop */
    }
}
/* --- Bottom Image Styling --- */
.site-bottom-image {
	background-size: contain;
    width: 100%;
    margin-top: 0px; /* Space above the image */
    text-align: center; /* In case the image doesn't fill 100% and you want it centered */
}

.site-bottom-image .full-width-image 
    width: 100%;
    height: auto;
    display: block; /* Removes extra space below the image */
    max-width: none; /* Optional: Limit maximum width if you don't want it to stretch too wide on very large screens */
    margin: 0 auto; /* Center the image if max-width is applied */
}

.site-bottom-image-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0px;
}

.stacked-image {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
}
