html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    overflow-x: hidden;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

h1 {
    padding-top: 10px;
    text-align: center;
}

.h1white {
    padding-top: 10px;
    text-align: center;
    color: white;
}

h3.h3white {
    font-size: 1rem;
    margin: 10px 0 5px;
    font-weight: bold;
    color: white !important;
    text-align: center;
    line-height: 1.4;
}

p.pwhite {
    font-size: 0.875rem;
    color: white !important;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

/* ---------- Header: image with overlay text ---------- */
.container {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

    .container img {
        display: block;
        width: 100%; /* was 100vw; 100% avoids scrollbar overflow */
        height: auto;
    }

/* ---------- Section backgrounds ---------- */
.containerlightgreen {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: #DBE4D7;
}

.containermygreen {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: #88BAA4;
}

.container50teal {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: rgba(127, 183, 194, 0.5);
}

.containermyblue {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 1.5rem;
    background-color: #2C6C8A;
}

/* ---------- Card rows ----------
   Desktop: all cards share one row in equal columns.
   Tablet:  two per row.  Phone: one per row.
   A leftover card on the last row is centered. */
.image-row,
.image-row2,
.image-rowthumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem 4rem;
}

    .image-row > .game-card,
    .image-row2 > .game-card {
        flex: 1 1 0;
        min-width: 0;
    }

/* Video row: two larger cards side by side */
.image-rowthumb {
    gap: 3rem;
    padding: 1.5rem 4rem 0;
}

    .image-rowthumb > .game-card {
        flex: 1 1 0;
        min-width: 0;
        max-width: 560px;
    }

.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    text-align: center;
}

    .game-card a {
        display: block;
        width: 100%;
    }

    .game-card img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .game-card h3 {
        margin: 10px 0 5px;
        font-size: 1rem;
        color: #2c3e50;
    }

    .game-card p {
        font-size: 0.875rem;
        color: #555;
        margin: 0;
    }

.image-row img,
.image-row2 img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 4px;
}

.image-row img {
    border: 2px solid white;
}

.image-row2 img {
    border: 2px solid black;
}

    .image-row img:hover,
    .image-row2 img:hover {
        transform: scale(1.05);
    }

/* Video thumbnails: fill their card */
.largethumb {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 2px solid white;
    box-sizing: border-box;
    border-radius: 4px;
    transition: transform 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    .largethumb:hover {
        transform: scale(1.05);
    }

/* ---------- FAQ accordion ---------- */
.accordion-button {
    position: relative;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    background-color: #DBE4D7;
    text-align: center;
    display: flex;
}

    .accordion-button::after {
        position: absolute;
        right: 1rem;
        margin-left: 0;
    }

.accordion-body {
    text-align: center;
    background-color: #DBE4D7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.accordion-button.collapsed {
    background-color: #DBE4D7;
}

/* ---------- Header overlay ---------- */
.overlay {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2C6C8A;
    color: white;
    padding: 0.5rem 2.25rem;
    text-align: center;
    width: 90%;
    max-width: 1200px;
    box-sizing: border-box;
    border-radius: 6px;
}

    /* Scale the intro text with the screen so it never covers the logo */
    .overlay h2 {
        font-size: clamp(1rem, 0.55rem + 1.25vw, 2rem);
        margin: 0;
    }

.docBtnTarget {
    width: 45%;
    font-size: 1.5rem;
    background-color: #4F9C60 !important;
}

    .docBtnTarget:hover {
        transform: scale(1.05);
        background-color: #4F9C50 !important;
        transition: ease-in-out 0.25s;
    }

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
    .image-row,
    .image-row2 {
        padding: 1rem 2rem;
    }

        .image-row > .game-card,
        .image-row2 > .game-card {
            flex: 0 1 calc(50% - 1rem); /* two per row */
        }

    .image-rowthumb {
        padding: 1.5rem 2rem 0;
        gap: 2rem;
    }
}

/* ---------- Phone / small tablet ---------- */
@media (max-width: 767.98px) {
    /* Intro text sits below the header image instead of on top of it */
    .overlay {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        padding: 1rem 1.25rem;
    }

        .overlay h2 {
            font-size: 1.15rem;
        }

    .image-rowthumb > .game-card {
        flex: 1 1 100%; /* videos stack */
    }

    .docBtnTarget {
        width: 90%;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .image-row,
    .image-row2,
    .image-rowthumb {
        padding: 1rem 1.25rem;
        gap: 1.5rem;
    }

        .image-row > .game-card,
        .image-row2 > .game-card {
            flex: 0 1 calc(50% - 0.75rem); /* stay two per row on phones */
        }
}
