/* @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');
@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&display=swap'); */

@font-face {
    font-family: 'Cal Sans';
    src: url('/fonts/CalSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* This is important for performance! */
}

@font-face {
    font-family: 'Space Mono';
    src: url('/fonts/SpaceMono-Regular.ttf') format('truetype');
    font-weight: 400; /* This is the 'normal' weight */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('/fonts/SpaceMono-Bold.ttf') format('truetype');
    font-weight: 700; /* This is the 'bold' weight */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('/fonts/SpaceMono-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('/fonts/SpaceMono-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-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, ul, button {
    font-family: 'Cal Sans', sans-serif;
}

li, dt, dd {
    font-family: 'Space Mono', monospace;  
  }

p, .event-desc, .event-details, a {
    font-family: 'Space Mono', monospace;
}

h1 { font-size: 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 {
    margin: 0em 0 1em 0;
}

header h1 {
    margin-top: 0;
    margin-bottom: 0;
}

header p {
    margin-top: -1.5em; /* To scootch it up to the DISTORAMA heading */
    font-size: 1.5em;
    font-weight: bold;
}

.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 {
    font-family: 'Cal Sans', sans-serif;    
    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%;
    max-width: 1600px;
    margin: 2em auto;
}

.cover-art img {
    border: 1px solid #000;
    max-height: 75vh;
    display: block;
    margin: 0 auto;
}

.announcements .textbox {
    padding: 1em;
    background-color: #fff;
    border: 2px dashed #000;
    margin: 2em auto;
    width: 25%;
}

.announcements h2 {
    margin-top: 0;
    margin-bottom: 0;
}

.announcements p {
    margin-top: 0;
    margin-bottom: 0;
}

#emissions, #adresses {
    background-color: #fff;
    border: 2px dashed #000;
    padding: 1em;
}

.static-sections {
    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;
}

.static-sections h3 {
    margin-bottom: 0;
}

.content-box {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.radio-list dt, .radio-list dd {
    display: block;
}

.address-list dt, .address-list dd {
    display: block;
}

.radio-station {
    margin-bottom: 0;
}

/* ====================================
   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 {
    width: 100%;
}

.weekdays li {
    width: 14.285%;
    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;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
}

.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;
}

.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-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
}

.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 {
    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-nav {
    margin-bottom: 2em;
    display: flex;
    flex-wrap: wrap;
    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-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;
    font-family: 'Cal Sans', sans-serif;
}

.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;
}


/* ====================================
   About & contact page styles
   ==================================== */
   
.standard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0em;
    width: 90%;
    max-width: 1400px;
    margin: 0em auto;
}

.standard-text {
    width: 90%;
    max-width: 1000px;
    margin: 0em auto;
}

.standard-text .textbox, .partners-grid-section .textbox {
    padding: 1.5em;
    background-color: #fff;
    border: 2px dashed #000;
    margin: 2em auto;
}

.standard-text p {
    text-transform: none;
}

/* Footer */
footer {
    margin-top: 4em;
    padding: 2em 0;
    text-align: center;
    font-size: 0.9em;
    border-top: 2px dashed #fff;
    background-color: #000;
    color: #fff;
}

footer a {
  color: #fff;    
  border-bottom: 1px dashed #fff;
}

footer a:hover {
  color: #f7f7f7; 
  border-bottom: 1px dashed #f7f7f7;
}

/* ====================================
   Mobile Responsiveness
   ==================================== */
@media (max-width: 768px) {

    h1 {
        font-size: 2.5em; /* Adjust this value to your liking */
    }    
    
    header p {
      font-size: 1em;
      margin-top: -.5em;
    }
    
    
    .main-nav, .sub-nav {
        flex-direction: column;
        gap: 0;    
    }
    
    .main-nav a, .sub-nav a {
        width: 100%;
        /* failed attempt to centre menu buttons
        margin-left: auto;
        margin-right:auto;            */
        text-align: center;
        padding: 1em;
        margin: 0.5em 0;
    }

    
    .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%;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .standard-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 1em;
    }    
    
}