@import url('https://fonts.googleapis.com.rproxy.goskope.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ====================================
   General & Global Styles
   ==================================== */
body {
    color: #000000;
    text-align: center;
    font-family: 'Space Mono', monospace;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    background-color: #f7f7f7;
}

h1, h2, h3, button, li, dt, dd {
    font-family: 'Space Mono', monospace;
}

p, .event-desc, .event-details, a {
    font-family: 'Space Mono', monospace;
}

h1 { font-size: 2.5em; }
h2 { font-size: 1.5em; margin: 0; }
h3 { font-size: 1.2em; }
p, li, dt, dd { font-size: 0.8em; }

a {
    color: #000000;
    font-size: 1em;
    text-decoration: none;
    border-bottom: 1px dashed #000;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #d3d3d3;
    border-bottom: 1px dashed #d3d3d3;
}

img {
    max-width: 100%;
    height: auto;
}

/* ====================================
   Header & Navigation
   ==================================== */
header {
    /* Sets the top and bottom spacing for the whole header block */
    margin: 2em 0 1em 0; 
}

header h1 {
    /* Sets the top and bottom spacing for the whole header block */
    margin-bottom: 0; 
}

header p {
    /* Removes any default top margin, consolidating space control in the header tag */
    margin-top: 0; 
}


.main-nav, .sub-nav {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin: 0 auto;
    font-size: 0.8em;
}

.main-nav {
    margin-bottom: 0.9em;
}

.main-nav a, .sub-nav a {
    padding: 0.5em 1em;
    border: 1px solid #000;
    
}

.main-nav a:hover, .sub-nav a:hover {
    background-color: #000;
    color: #fff;
    border-bottom: none;
}

/* ====================================
   Content Sections
   ==================================== */
.cover-art, #agenda, .announcements, .static-sections {
    width: 80%; /* Increased width to take up most of the screen */
    max-width: 1600px; /* Increased max-width for larger monitors */
    margin: 2em auto;
}

.cover-art img {
    border: 1px solid #000;
    max-height: 75vh;
    display: block;
    margin: 0 auto;
}

/* Updated static sections to have card layout */
.announcements .textbox {
    padding: 1em;
    background-color: #fff;
    border: 1px dashed #000;
    margin: 2em auto;
    width: 25%;
}

.announcements h2 {
    margin-top: 0;
    margin-bottom: 0;
}

.announcements p {
    margin-top: 0;
    margin-bottom: 0;
}

/* New card layout for emissions and addresses */
#emissions, #adresses {
    background-color: #fff;
    border: 1px dashed #000;
    padding: 1em;
}

/* Two-column grid layout for static sections */
.static-sections {
    /* display: grid; */
    /* grid-template-columns: 1fr 1fr; */
    /* gap: 2em; */
    /* background-color: #fff; */
    margin: 2em auto;
    width: 25%;
}

.static-sections dl {
   margin-top: 0;
   margin-bottom: 0;
}

.static-sections dt {
  margin-top: 1em;
  font-weight: bold;
  text-transform: uppercase;
}

.static-sections dd {
  margin-bottom: 1em;
  font-style: italic;
}

.static-sections h2 {
    margin-top: 0; /* Reduced top gap on headings */
}

.static-sections h3 {
    margin-bottom: 0em; 
}

.content-box {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.radio-list dt, .radio-list dd {
    display: block; /* Make sure each radio show is on a new line */
}

.address-list dt, .address-list dd {
    display: block; /* Make sure each address is on a new line */
}

/* Reduced gap after radio station headings */
.radio-station {
    margin-bottom: 0em;
}

/* ====================================
   Dynamic Calendar
   ==================================== */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.calendar-nav button {
    background: none;
    border: 1px solid #000;
    color: #000;
    padding: 0.5em 1em;
    cursor: pointer;
}

.calendar-nav button:hover {
    background-color: #d3d3d3;
}

.calendar-container {
    border: 1px solid #000;
    box-sizing: border-box;
    padding: 0;
}

.weekdays, .days {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.weekdays {
    /* New fix to prevent wrapping */
    width: 100%;
    margin-right: -2px; /* Pulls the items in just enough to fit */
}

.weekdays li {
    width: 14.285%; /* Precise width */
    text-align: center;
    padding: 0.5em;
    background-color: #000;
    color: #fff;
    box-sizing: border-box;
}

.days li {
    flex: 0 0 calc(100% / 7);
    min-height: 120px;
    border: 1px solid #d3d3d3;
    border-top: none;
    border-left: none;
    padding: 0.5em;
    box-sizing: border-box;
    text-align: left;
    position: relative;
    font-size: 0.8em;
}

/* Past days greyed out effect */
.days .past-day {
    color: #a0a0a0;
    opacity: 0.5;
}

.days .past-day .event {
    border-color: #a0a0a0;
    background-color: #e0e0e0;
}

.days li:hover {
    background-color: #efefef;
}

.day .date {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    font-weight: bold;
    font-size: 1em;
}

.day.today .date {
    background-color: #000;
    color: #fff;
    padding: 0.2em 0.4em;
}

.event-list {
    margin-top: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

/* Individual event container */
.event {
    border: 1px solid #000;
    padding: 0.5em;
    margin-bottom: 0.5em;
    background-color: #fff;
    cursor: pointer;
}

.event-desc {
    font-weight: bold;
    margin: 0;
    font-size: 0.9em;
}

.event-details {
    margin: 0;
    font-style: italic;
    font-size: 0.8em;
}

.other-month {
    opacity: 0.3;
}

/* ====================================
   Gallery Page Styles
   ==================================== */
.gallery {
    width: 90%;
    max-width: 1400px;
    margin: 2em auto;
    text-align: center;
}

.gallery h2 {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0em;
}

.gallery-item {
    border: 1px solid #000;
    padding: 1em;
    background-color: #fff;
    text-align: center;
    cursor: pointer;
}

.gallery-item img {
    border: 1px dashed #d3d3d3;
    width: 100%;
    height: auto;
}

.gallery-item figcaption {
    margin-top: 1em;
    font-size: 0.8em;
}

.gallery-item figcaption p {
    text-transform: none;
    margin: 0.5em 0;
}

/* Modal for the zoomed-in image */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 1em;
    border: 1px solid #000;
    width: 80%;
    max-width: 800px;
    position: relative;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1em;
}

.modal-content figcaption {
    margin: 0;
}

.close-btn {
    color: #000;
    position: absolute;
    right: 1em;
    top: 0.5em;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #a0a0a0;
}

/* ====================================
   Gallery Navigation & Active State
   ==================================== */
#gallery-nav {
    margin-bottom: 2em;
    display: flex;
    justify-content: center;
    gap: 1em;
}

.year-button {
    background: none;
    border: 1px solid #000;
    color: #000;
    padding: 0.5em 1em;
    cursor: pointer;
    font-size: 0.8em;
}

.year-button:hover {
    background-color: #d3d3d3;
}

.year-button.active {
    background-color: #000;
    color: #fff;
}

/* ====================================
   Partners Page Styles
   ==================================== */
.partners-intro {
    width: 90%;
    max-width: 1400px;
    margin: 2em auto;
}

.partners-intro .textbox, .partners-grid-section .textbox {
    padding: 1.5em;
    background-color: #fff;
    border: 1px dashed #000;
    margin: 2em auto;
}

.partners-intro p {
    text-transform: none;
}

.partners-grid-section {
    width: 90%;
    max-width: 1400px;
    margin: 2em auto;
}

.partners-grid-section h2 {
    margin-bottom: 1em;
}

.partners-sub-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size:0.8em;
    gap: 1em;
    margin-bottom: 2em;
}

.partners-sub-nav a {
    padding: 0.5em 1em;
    border: 1px solid #000;
}

.partners-sub-nav a:hover {
    background-color: #000;
    color: #fff;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
}

.partner-card {
    background-color: #fff;
    border: 1px solid #000;
    padding: 1.5em;
    text-align: center;
}

.partner-card img {
    max-height: 25vh;
    width: auto;
    height: auto;
    border: 1px dashed #d3d3d3;
    margin: 1em 0;
}

.partner-card h3 {
    margin: 0;
}

.partner-card .tagline {
    font-style: italic;
    font-size: 0.8em;
    text-transform: none;
    margin: 0.5em 0 1em 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1em 0 0 0;
    text-align: center;
}

.contact-list li {
    font-size: 0.8em;
    text-transform: none;
    margin-bottom: 0.2em;
}

/* Updated selector to use the generic .textbox */
.textbox {
    text-transform: none;
}
.partners-grid-section .textbox {
    width: 25%;
    margin: 2em auto;
}



/* Footer */
footer {
    margin-top: 4em; /* Adds space above the footer */
    padding: 2em 0; /* Adds vertical padding */
    text-align: center;
    font-size: 0.7em;
    border-top: 1px dashed #000;
}

/* ====================================
   Mobile Responsiveness
   ==================================== */
@media (max-width: 768px) {
    .main-nav, .sub-nav {
        flex-direction: column;
        gap: 0;
    }

    .main-nav { margin-bottom: 0; }
    .sub-nav { margin-top: 0; }

    .main-nav a, .sub-nav a {
        border-top: none;
        width: 100%;
        text-align: center;
        padding: 1em;
    }

    .main-nav a:first-child, .sub-nav a:first-child { border-top: 1px solid #000; }
    
    .weekdays { display: none; }
    .days li {
        flex-basis: 100%;
        min-height: 60px;
        border: 1px solid #d3d3d3;
        margin-bottom: 1em;
    }
    .days li:hover { background-color: #fff; }

    .day .date {
        position: static;
        display: inline-block;
        font-size: 1em;
        margin-right: 0.5em;
    }
    .event-list { margin-top: 0; }
    .other-month { display: none; }
    .radio-list dt { width: 100%; display: block; }
    .radio-list dd { margin-left: 0; }

    .static-sections {
        grid-template-columns: 1fr;
        gap: 1em;
        width: 80%;
    }

    .announcements .textbox {
        width: 80%;
    }
    
    #gallery-nav {
        flex-wrap: wrap;
        gap: 0.5em;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }    
}