:root {
    --navtextcolor: #DB1F26;
    --bordercolor: transparent;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
    min-height: 100vh; 
    background-image: url('pictures/background.webp');
    background-size: cover; 
    background-position: center;
    background-attachment: fixed; 
}

p {
    margin: 0;
}

#app-frame {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    width: 100%;
    min-height: 100vh; 
    padding: 45px 50px 40px 30px;
    z-index: 2;
}

#home-view {
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
    align-items: top;
    flex-grow: 1; 
}

#brand-logo {
    width: 50%; 
    max-width: min(600px, 50vh);    
}

.responsive-img {
    width: 130%;
    height: auto;
    display: block;
}

#info-box {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    text-align: right; 
    gap: 30px;
    width: 50%;
    border: 1px solid var(--bordercolor);
    font-size: 35px;
    font-family: 'Castoro';
    letter-spacing: 15%;
}
.icon-button {
    width: 60px; 
    height: 60px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    background-image: url('../css/pictures/play.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.1s ease-in-out;
}

.icon-button:active {
    transform: scale(0.95);
}

.icon-button.is-playing {
    background-image: url('../css/pictures/pause.png'); 
}

.player-top-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end; 
    gap: 15px;
    font-weight: 900;
}

#social-links {
    opacity: 0.8;
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: -30px;
    margin-bottom: 10px;
}

#social-links img {
    width: 48px;
    height: 48px;
    transition: transform 0.2s ease-in-out;
}

#social-links img:hover {
    transform: scale(1.1); 
}

#main-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
    padding: 20px 60px 0px 60px;
    z-index: 2;
    
}
.nav-link {
    color: var(--navtextcolor);
    font-size: 45px;
    font-weight: 900;
    text-decoration: none; 
    font-family: 'Fraunces', serif;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

.nav-link:hover {
    color: #333333;
}
#plant {
    position: fixed;
    bottom: 0;
    right: 0;
    
    z-index: 1; 
    
    pointer-events: none; 
    
    width: 60vw; 
}

/* --- absout us ubpage Modifiers --- */

#info-box.subpage-box {
    margin-left: auto;
    align-items: flex-start; /* Pushes the content to the left */
    text-align: left; /* Aligns the text to the left */
    font-size: 24px; /* Slightly smaller font since it's a paragraph, not a UI label */
    width: 35%;
    
}

.subpage-box h2 {
    
    font-weight: 900;
}

.subpage-box p {
    font-weight: 600;
}

/* --- Past Shows Modifiers --- */


#info-box.past-shows-box {
    align-items: flex-start; 
    text-align: left;
    width: 100%; 
    
    /* ADDED SCROLLING RULES */
    max-height: calc(100vh - 180px); /* Calculates the exact space between the top padding and the menu */
    overflow-y: auto; /* Turns on vertical scrolling only inside this box */
    padding-right: 20px; /* Breathing room so the scrollbar doesn't overlap your text */
}

#info-box.past-shows-box::-webkit-scrollbar {
    width: 6px;
}
#info-box.past-shows-box::-webkit-scrollbar-track {
    background: transparent; 
}
#info-box.past-shows-box::-webkit-scrollbar-thumb {
    background: #DB1F26; /* Matches your red menu links! */
    border-radius: 10px;
}

.past-shows-box h2 {
    font-weight: 900;
    font-size: 40px;
    margin-bottom: 20px;
}

.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 30px 620px;
    width: 100%;
}

.show-item {
    display: flex;
    flex-direction: column;
    text-decoration: none; 
    color: inherit;
}



/* The Show Picture */
.show-item img {
    width: 200px;
}

/* The Show Title */
.show-item p {
    font-family: 'Castoro', serif;
    font-size: 20px; /* Matches your info-box */
    font-weight: normal; 
    margin-top: 10px;
    line-height: 1.1;
    /* CSS Pro-tip: % doesn't actually work for letter-spacing in all browsers. 
       0.15em is the correct mathematical equivalent to 15%! */
    letter-spacing: 0.15em; 
}

/* The Date */
.show-date {
    font-family: 'Castoro', serif;
    font-size: 18px; /* Slightly smaller so it doesn't fight the main title */
    font-weight: normal;
    margin-top: 5px;
    letter-spacing: 0.15em;
    opacity: 0.8;
}

/* --- Schedule Modifiers --- */
#schedule-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates two equal columns */
    column-gap: 60px; /* Breathing room between the left and right columns */
    row-gap: 40px; /* Vertical space between the days */
    align-items: start; /* Prevents short days from stretching to match tall days */
}
.schedule-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    font-family: 'Castoro', serif;
    font-size: 24px;
    padding-bottom: 10px;
}
.schedule-day-group {
    margin-bottom: 0; 
}
.nav-btn {
    background: none;
    border: none;
    color: var(--navtextcolor);
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.nav-btn:hover {
    transform: scale(1.05);
    color: #333333;
}

/* Daily Schedule Group */
.schedule-day-group {
    margin-bottom: 40px;
}

.schedule-day-title {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 900;
    color: #333333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.schedule-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px dotted rgba(51, 51, 51, 0.3);
    font-family: 'Castoro', serif;
}

.schedule-time {
    font-size: 22px;
    font-weight: bold;
    min-width: 140px;
}

.schedule-info {
    font-size: 22px;
}

/*Overwrites anything above if the width is less thant x*/
@media (max-width: 768px) {

    body {
     
        background-image: url('pictures/mobile-background\(1\).webp');
    
    }   
    
    #app-frame {
        padding: 20px 20px 80px 20px; 
        justify-content: flex-start; 
        gap: 40px;
    }

    #home-view {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    #info-box {
        order: 1;
        width: 100%;
        max-width: none;
        align-items: flex-start; 
        text-align: center;
        padding-top: 0;
        border: none; 
        z-index: 2;

    }
    #player-container p {
        font-size: 22px;
    }

    .player-top-row {
        flex-direction: row;
        justify-content: flex-start; 
    }
    .player-text{
        padding-left: 45px; 
        
        padding-right: 30px; 
        
        text-align: left;
    }
    .now-playing-label {
        text-align: left;
    }

    #upcoming-container {
        display: none; 
    }

    #brand-logo {
        padding-top: 50px;
        order: 0; 
        width: 80%; 
        z-index: 2;
        max-width: none;
    }

    .responsive-img {
        width: 100%; 
    }

    #main-menu {
        flex-direction: column;
        align-items: flex-end;
        padding: 0;
        gap: 0px;
        padding: 10px 15px 0px 10px;

    }
    
    .nav-link {
        font-size: 35px;
    }
    .icon-button {
        width: 30px; 
        height: 30px;
    }

    #plant {
        display: none;     
    }
    #social-links {
        position: fixed; /* This "pops" the icons out of the info-box completely */
        bottom: 30px; /* Anchors them to the bottom of the phone screen */
        left: 20px; /* Anchors them to the left side */
        flex-direction: column; /* Stacks the icons vertically like your menu! */
        margin-bottom: 0; 
        z-index: 10; /* Ensures they stay clickable and float above the plant/background */
    }
    
    #social-links img {
        width: 35px;
        height: 35px;
    }
    /* --- absout us ubpage Modifiers --- */
    #info-box.subpage-box {
        margin-left: 0;
        width: 90vw;
    
    }
    /* --- Past Shows Modifiers --- */
    #info-box.past-shows-box {
        width: 90;
        max-height: none; 
        overflow-y: visible; 
        padding-top: 20px;
        padding-right: 0;
    }

    .shows-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    /* --- Mobile Schedule Modifiers --- */
    
    /* 1. Force the schedule back to a single column */
    #schedule-container {
        grid-template-columns: 1fr; 
        row-gap: 30px; 
    }

    /* 2. Shrink the previous/next buttons so they fit on one line */
    .schedule-controls {
        font-size: 16px;
        gap: 10px;
        justify-content: space-between;
    }
    
    .nav-btn {
        font-size: 16px;
    }

    /* 3. Stack the time on top of the show info so it's easy to read */
    .schedule-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 15px 0;
    }

    /* 4. Make the time pop out since it's stacked now */
    .schedule-time {
        min-width: unset;
        color: var(--navtextcolor); /* Makes the time red! */
        font-size: 20px;
    }
    
    .schedule-info {
        font-size: 20px;
    }
}