/* Site overrides */

/* Body text at 18px (1.125rem, so it still follows the visitor's browser font setting).
   Headings, buttons and form fields have their own sizes and aren't changed by this. */
:root {
    --bs-body-font-size: 1.125rem;
}

/* Headings in Barlow Bold, the 2026 brand font (loaded from Google Fonts in the layouts).
   Body text stays Roboto. */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: Barlow, Roboto, sans-serif;
    font-weight: 700;
}

/* Navbar links in Barlow Medium, to match the headings */
#mainNav .nav-link {
    font-family: Barlow, Roboto, sans-serif;
    font-weight: 500;
}


h4 {
    color: var(--bs-primary);
    text-align: center;
}

h5 {
    color: #c5892f;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    margin-top: 10px;
}

h6 {
    color: #38761d;
    font-weight: bolder;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    margin-top: 10px;
}

/* make <strong> stronger */
b, strong {
    font-weight: 700;
    font-family: sans-serif;
}

.badge {
    border-radius: 0;
}

/* flex grid: flex rather than CSS grid so a partly filled last row is centred */
.tile-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Four per row: each tile gets a quarter of the width, less its share of the three gaps */
.tile-container > * {
    flex: 0 0 calc((100% - 3 * 15px) / 4);
    min-width: 0;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .tile-container > * {
        flex-basis: calc((100% - 15px) / 2);
    }
}

.button-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Four columns */
    gap: 5px;
    justify-content: center;
}


@media (max-width: 768px) {
    .button-container {
        grid-template-columns: repeat(2, 2fr);
        /* Two columns for smaller screens */
    }
}


@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

/* Styles for the sake of the demonstration */

#animated-text-strip {
    background: var(--bs-yellow);
    padding: 1rem 0;
}

/* Scrolling Marquee - end */

/* start - background youtube video */

.youtube-video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.youtube-video-container::after {
    display: block;
    content: "";
    padding-top: 56.25%;
}

.youtube-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* This is what actually keeps the chrome away. controls:0 hides the control bar, but the
       title/share overlay and the mobile tap-to-play button are summoned by pointer events --
       so don't let the iframe receive any. It's decorative; nothing here is meant to be clicked. */
    pointer-events: none;
}

@media (max-width: 768px) {
    .youtube-video-container {
        width: 120%;
        margin-left: -10%;
    }
}

/* end - background youtube video */

/* start - self-hosted background video (Index.cshtml).
   Kept separate from .youtube-video-container above, which Index-2025 and Index-Old still use. */

.bg-video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.bg-video-container::after {
    display: block;
    content: "";
    padding-top: 56.25%;
}

.bg-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* The source is 16:9 like the box, but cover keeps it from letterboxing if a
       re-encode ever lands at a different aspect. */
    object-fit: cover;
    /* Decorative -- nothing here is meant to be clicked, and this also keeps a
       long-press on mobile from offering the native video menu. */
    pointer-events: none;
}

@media (max-width: 768px) {
    .bg-video-container {
        width: 120%;
        margin-left: -10%;
    }
}

/* end - self-hosted background video */


/* start - custom css for image blocks on front page */

.featuredBottom {
    position: absolute;
    text-align: center;
    bottom: -11px;
    border-radius: 10px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

.featuredImage {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 100%;
    padding-top: 5px;
    padding-bottom: 0;
}

.featuredOverlayText {
    font-family: sans-serif;
    background: var(--bs-primary);
    width: 100%;
    font-weight: 900;
    font-size: clamp(12px, 1.2vw, 16px);
    text-transform: uppercase;
    padding: 5px 2px 10px 2px;
    color: var(--bs-tertiary-bg);
    z-index: 999;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.cta-button {
    font-size: 0.8rem;
    /* border-radius: 10px; */
}

.featuredImage:hover {
    opacity: .85;
    filter: alpha(opacity=100);
}

.overlayWrapper {
    position: relative;
    text-align: center;

}

.overlayWrapperVideo {
    position: relative;
    text-align: center;
    min-height: 500px;
}

#overlay_text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    padding: 0 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#overlay_text h2,
#overlay_text h3 {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

#overlay_text p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

/* Make overlay text smaller on mobile */
@media (max-width: 768px) {
    .overlayWrapperVideo {
        min-height: 300px;
    }

    /* No top override here on purpose: the base rule's top:50% + translate(-50%,-50%)
       already centres the block, and mobile should match desktop. */

    /* h3 is what Index.cshtml actually uses -- without it the heading falls through to
       Bootstrap's .display-5, which is ~2.1rem at phone widths. */
    /* Scales with the screen so a line fits: the hero (resource HomePageHero, edited in wvoffice)
       has short lines kept whole by <br> and .date-range (nowrap). "FREE ENTRY EVERY DAY BEFORE 4PM"
       is 16.65x its font size wide in Barlow bold, so at a fixed 1.75rem (28px) it ran ~470px, off a
       390px phone; at 5.2vw it fits the screen less the 40px padding from 320px up. */
    #overlay_text h2,
    #overlay_text h3 {
        font-size: min(1.75rem, 5.2vw) !important;
        text-wrap: balance;
    }

    /* and a longer line than that wraps rather than run off the screen */
    #overlay_text .date-range {
        white-space: normal;
    }

    #overlay_text p {
        font-size: 1rem !important;
    }
}

.bottom-left {
    position: absolute;
    bottom: 8px;
    left: 16px;
}

.top-left {
    position: absolute;
    top: 8px;
    left: 16px;
}

.top-right {
    position: absolute;
    top: 8px;
    right: 16px;
}

.bottom-right {
    position: absolute;
    bottom: 8px;
    right: 16px;
}

.bottom-centred {
    position: absolute;
    bottom: 8px;
    /*right: 16px;*/
    left: 50%;
    transform: translate(-50%);
}

.top-centred {
    position: absolute;
    top: 8px;
    /*right: 16px;*/
    left: 50%;
    transform: translate(-50%);
}

.centered {
    object-fit: cover;
    height: 100%;
    width: 100%;
    position: absolute;
    /* bottom: -238px; */
    /* left: 50%; */
    top: 10%;
    left: 0;
    /* transform: translate(-50%, -50%); */
}

/* end - custom css for image blocks on front page */

/* for the pricing matrix */
.price-border {
    border-right: 2px solid var(--bs-info-text-emphasis);
    border-left: 2px solid var(--bs-info-text-emphasis);
}


.sponsorimg {
    max-height: 150px;
    width: auto;
}


.accordion-button:not(.collapsed) {

    background-color: #0f5132;
    color: white;
    /* Bootstrap's caret, filled white to match the text instead of its dark blue */
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-number {
    font-weight: bold;
    margin-right: .5rem;
}

.accordion-option {
    width: 100%;
    float: left;
    clear: both;
    margin: 15px 0;
}

.accordion-option .title {
    font-size: 20px;
    font-weight: bold;
    float: left;
    padding: 0;
    margin: 0;
}

.accordion-option .toggle-accordion {
    float: right;
    font-size: 16px;
    color: #6a6c6f;
}

.accordion-option .toggle-accordion:before {
    content: "Expand All";
}

.accordion-option .toggle-accordion.active:before {
    content: "Collapse All";
}

/* Hours tables: the /schedule table (_Hours_Table_Partial) and the home page's today row (_Today_Schedule_Partial) */
/* desktop table: brand green header, a border between every column, tinted month bands */
.hours-table {
    border: 1px solid var(--bs-primary-border-subtle);
    border-radius: .5rem;
    overflow: clip;
    /* the outer border and rounded corners need separate borders (Bootstrap collapses them) */
    border-collapse: separate;
    border-spacing: 0;
}

/* the outer border closes the table, so the last row needs no line of its own */
.hours-table tbody tr:last-child > td {
    border-bottom: 0;
}

.hours-table th,
.hours-table td {
    border-right: 1px solid var(--bs-primary-border-subtle);
    border-bottom: 1px solid #e6ebe6;
    padding: .45rem .85rem;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.hours-table th:last-child,
.hours-table td:last-child {
    border-right: 0;
}

.hours-table thead th {
    color: #fff;
    background: var(--bs-primary);
}

.hours-table .date-cell {
    text-align: left;
    font-weight: 600;
}

.header-row th {
    font-weight: 600;
    font-size: .95em;
    letter-spacing: .02em;
}

.hours-table .month-row > td {
    text-align: left;
    border-right: 0;
}

.hours-table .month-row h6 {
    margin: 0;
    font-size: 1.15em;
    font-weight: 700;
    color: var(--bs-primary);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hours-table .today-row {
    --bs-table-bg: #fff8e1;
}

.hours-table .today-row .date-cell::after {
    content: "Today";
    margin-left: .5rem;
    padding: .1rem .4rem;
    border-radius: .25rem;
    font-size: .75em;
    font-weight: 600;
    color: #fff;
    background: var(--bs-primary);
}

.comment-string {
    font-style: italic;
    white-space: normal;
}

.hours-table .custom-entry-row {
    --bs-table-bg: #f4f7f4;
    font-style: italic;
}

.hours-table .custom-entry-row td {
    text-align: left;
    color: var(--bs-primary);
    font-size: .95em;
}

.hours-table .custom-entry-row .custom-time {
    text-align: right;
}

.hours-table .custom-entry-row a {
    color: var(--bs-primary);
    text-decoration: underline;
}

/* a day's performances, in the mobile cards */
.custom-entry-mobile {
    color: var(--bs-primary);
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #dee2e6;
}
