/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Playfair Display', sans-serif;
    font-optical-sizing: auto;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: #fff;
    scroll-behavior: smooth;
    background-color: #000;
    /* background-image: url('../img/web-bg.jpg');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; */
    max-height: 100%;
    max-width: 100%;
}

#background {
    width: 100vw;
    height: calc(100vh + 100px);
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    background-image: url('../img/web-bg.jpg');
    background-size: cover;
    background-position: center -100px;
    background-repeat: no-repeat;
    z-index: -10;
}

button,
a,
.no-tap-highlight,
.photo,
.mobile-nav-toggle {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-focus-ring-color: transparent;
    cursor: pointer;
}

/* Password Modal */
#password_modal {
    font-family: 'Playfair Display', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(71, 71, 71, 0.823);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2em;
    z-index: 1000;
}

#password_modal form {
    background: rgba(0, 0, 0, 0.673);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

#password_modal p {
    margin-bottom: 0;
}

#password_modal input[type="password"] {
    margin: 10px 0;
    padding: 10px;
    font-size: 1em;
    width: 100%;
    font-family: 'Playfair Display', sans-serif;
}

/* #password_modal button {
    background: #337b43;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    font-family: 'Playfair Display', sans-serif;
}

#password_modal button:hover {
    background: #218838;
} */

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    position: relative;
}

.hero h1 {
    font-size: 8rem;
    z-index: 1;
    font-weight: 400;
    margin-top: -8rem;
    line-height: 1.2em;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 12px;
}

nav ul li {
    font-size: 1.2rem;
}

nav ul li.side-link {
    position: absolute;
    right: 1rem;
}

nav ul li.side-link a {
    opacity: 0.6;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    width: 100%;
    display: inline-block;
}

nav ul li a.active {
    color: rgb(157, 1, 3);
}

nav ul li a:hover {
    color: rgb(220, 63, 66);
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* Sections */
section {
    padding: 30px 50px;
    max-width: 1200px;
    width: 100%;
    justify-self: center;
    margin: 1em auto 0 auto;
    background: rgb(0 0 0 / 85%);
    color: #fcfcfc;
    font-size: 1rem;
}

section::before {
    content: '';
    display: inline-block;
    height: 1rem;
    position: relative;
    top: -3rem;
    width: 100%;
}

section.active {
    background: rgb(4 6 13 / 72%);
}

/* Paragraphs */
p {
    margin-bottom: 1em;
    font-family: "Inter", sans-serif;
    letter-spacing: -1px;
    color: rgb(189, 189, 189);
}

p.subtext {
    margin-bottom: 0;
}

#contact {}

/* Buttons */
.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 1em;
    gap: 10px;
}

.button-container a.default {
    width: auto;
}

button.default {
    font-family: 'Playfair Display', sans-serif;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 1rem;
    font-size: 1rem;
    line-height: 1rem;
    font-weight: 400;
    cursor: pointer;
    color: rgb(255 255 255);
    background: rgb(33 142 253 / 70%);
    outline: none;
    border: none;
    /* border-radius: 0.5rem; */
    transition: transform 0.2s ease, filter 0.2s ease;
    text-decoration: none;
}

a.link {
    color: rgb(157, 1, 3);
    text-decoration: underline;
}

a.default {
    font-family: 'Playfair Display', sans-serif;
    display: inline-flex;
    padding: 1rem 1rem;
    width: 100%;
    font-size: 1rem;
    line-height: 1rem;
    font-weight: 400;
    cursor: pointer;
    color: rgb(255 255 255);
    background: rgb(33 142 253 / 70%);
    outline: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    background: #a2acbc59;
    border: none;
    text-decoration: none;
    /* border-radius: 0.5rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0; */
    border-radius: none;
}

button:hover,
button.default:hover,
a.default:hover {
    filter: brightness(1.2);
}

button svg {
    height: 1rem;
    width: 1rem;
}

/* Flyers / Photos Grid */
.flyers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.flyers-grid .photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #eee;
}

.flyers-grid .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.401);
}

/* Logos in overlay (remove object-fit) */
.photo.logo-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 1rem;
}

.photo.logo-photo {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 10px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer .spacer {
    width: 3em;
    text-align: center;
}

/* PICTURE VIEWER OVERLAY */
#pic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Overlay background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#pic-overlay.hidden {
    display: none;
}

.overlay-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#overlay-image {
    max-width: 85vw;
    /* Max 85% of viewport width */
    max-height: 85vh;
    /* Max 85% of viewport height */
    width: auto;
    /* Maintain aspect ratio */
    height: auto;
    /* Maintain aspect ratio */
    object-fit: contain;
    /* Maintain aspect ratio and ensure full containment */
}


/* Close button (top-right corner of the image) */
.close-overlay {
    user-select: none;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.6rem;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-weight: 400;
    opacity: 0.3;
    z-index: 20;
    width: 2rem;
    height: 2rem;
    outline: none;
}

.close-overlay img {
    max-width: 100%;
    max-height: 100%;
}

.close-overlay:hover {
    opacity: 0.8;
}

/* Overlay Controls (Prev/Next) at left/right edges, full height clickable */
.overlay-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Each button covers half the image in width, is vertically centered. */
.gallery-control {
    position: absolute;
    top: 0;
    width: 10%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.2;
    transition: opacity 0.2s ease;
}

.gallery-control:hover {
    opacity: 0.6;
}

/* Prev on left half, Next on right half */
#prev-image {
    left: 0;
}

#next-image {
    right: 0;
}

/* Arrows centered in their half */
.gallery-control img {
    max-width: 2rem;
    max-height: 2rem;
    pointer-events: none;
    /* so the click can pass through to the button */
}

.gallery-control img.flipped {
    transform: rotate(180deg);
}

/* Download link under the image */
#download-link {
    display: inline-block;
    text-align: center;
    margin-top: 0;
    color: white;
    z-index: 20;
    position: relative;
    /* stacked above overlay-controls */
}

/* When a logo is opened in overlay, apply background color behind the image */
#pic-overlay.logo-overlay .overlay-content img {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 0;
}

/* VIDEO OVERLAY */
#video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#video-overlay.hidden {
    display: none;
}

.video-overlay-content {
    position: relative;
    text-align: center;
    color: white;
    display: inline-block;
}

#overlay-video {
    width: 100%;
}

.overlay-content,
.video-overlay-content {
    display: flex;
    flex-direction: column;
    max-width: 85vw;
    max-height: 85vh;
    position: relative;
    box-shadow: 0px 0px 13px 2px #100f0f;
}

#video-download-link {
    display: inline-block;
    /* margin-top: 1rem; */
    color: white;
    text-decoration: underline;
    position: relative;
    z-index: 20;
}

/* EVENT CARDS */
.event-card {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.616);
    border-radius: 8px;
    border: 1px rgb(69, 69, 69) solid;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.event-card img {
    width: 100%;
    height: auto;
}

.event-details {
    padding: 16px;
}

.event-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: rgb(216, 216, 216);
}

.event-time {
    font-size: 0.9rem;
    color: rgb(216, 216, 216);
    margin-bottom: 12px;
}

.event-location {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: rgb(216, 216, 216);
}

.event-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.event-buttons a {
    flex: 1;
    text-decoration: none;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    color: #fff;
    transition: background-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.347);
}

/* .map-button {
    background-color: #0099ff;
}

.map-button:hover {
    background-color: #007acc;
}

.ticket-button {
    background-color: #ff6600;
}

.ticket-button:hover {
    background-color: #cc5200;
} */

/* Container for dynamic events (3 per row on desktop) */
.event-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Center-align Mixes embeds */
#mixes .mix-embeds {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

#mixes h2 {
    color: #eeeeee;
}

#mixes h3 {
    font-weight: 200;
    line-height: 1.25em;
    margin-bottom: 0.8em;
}

#mixes .mix-embeds p {
    margin: 0;
}

#mixes .mix-embeds div {
    width: 100%;
}

.youtube-embed iframe,
.soundcloud-embed iframe {
    width: 100%;
}

.youtube-embed,
.soundcloud-embed {
    margin-bottom: 2rem;
}

.youtube-embed:last-child,
.soundcloud-embed:last-child {
    margin-bottom: 0;
}

/* Links Section */
#links .label {
    font-weight: 600;
    color: rgb(182, 182, 182);
}

#links a,
#rider a {
    text-decoration: none;
    color: rgb(255, 255, 255);
}

/* Contact Form Beautification */
#contactForm {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 500px;
    margin-top: 1rem;
}

#contactForm label {
    font-size: 1rem;
    color: #ffffffcc;
    font-family: 'Inter', sans-serif;
    margin-bottom: 0.1rem;
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm input[type="tel"],
#contactForm textarea {
    padding: 0.8rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid #555;
    border-radius: 4px;
    background: #171717;
    color: #fff;
    outline: none;
}

#contactForm textarea {
    resize: vertical;
    min-height: 120px;
}

button[type="submit"] {
    align-self: flex-end;
    font-family: 'Playfair Display', sans-serif;
    background: #a2acbc59;
    border: none;
    border-radius: 0;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    margin-top: 0.5rem;
    cursor: pointer;
    color: #fff;
    transition: 0.2s;
    text-decoration: none;
}

#contactForm button[type="submit"]:hover {
    filter: brightness(1.2);
}

/* Contact form response message */
#contact-response {
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
}

.hero img {
    max-height: 16rem;
}

.half {
    width: 49%;
    display: inline-block;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .half {
        width: 100%;
    }

    .hero h1 {
        margin-top: 0;
        font-size: 5rem;
    }

    .hero img {
        max-height: 10rem;
    }

    nav {
        justify-content: right;
        padding: 5px 20px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 60px;
        right: 10px;
        width: 150px;
        border-radius: 5px;
        padding: 1em;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li.side-link {
        position: unset;
    }

    .mobile-nav-toggle {
        display: block;
    }

    section {
        padding: 40px 20px;
    }

    .flyers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        font-size: 0.8rem;
    }

    footer .spacer {
        width: 1.5rem;
    }
}