html {
    box-sizing: border-box;
    --d-bg-lb: lightblue;
    --d-bg-lc: lightcoral;
    --d-bg-lg: lightgreen;
    --header-image: url(../images/header-hero.webp);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
.program h2 {
    text-align: center;
}
body {
    margin: 0;
    font-family: sans-serif;
}
body>* {
    /* outline: 1px solid var(--d-bg-lc); */
}
/**
 * CSS Grid - Full Bleed
 * - 12 Column Grid
 * - Custom Properties
 * - - Gaps
 * - - Full Bleed Background Colors
 */

:root {
    
    --bg-header: rgba(165, 42, 42, 0.2);
    --bg-nav: hsla(240, 100%, 50%, 0.2);
    --bg-main: hsla(350, 100%, 88%, 0.2);
    --bg-aside: hsla(60, 100%, 50%, 0.2);
    --bg-footer: hsla(120, 100%, 25%, 0.2);

}

body {
    display: grid;
    /* gap: var(--gap); */
    grid-template-rows: auto auto 1fr auto;
    height: 100vh;
    height: 100dvh;
}

body>* {
    padding: 0 var(--gap);
}
.cards {
    display: grid;
    gap: 20px;
}

.cards-buttons .card {
    background: transparent;
}

.cards-buttons .card .card-link {
    align-self: auto;
    min-height: 120px;
    display: flex;
    justify-content: center;
    margin: 0;
}

.cards-buttons-small .card .card-link {
    min-height: 60px;
}

.cards-buttons .card .card-link span {
    flex: 1 1 auto;
    align-self: center;
    text-align: center;
}

.card {
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: coral;
    display: flex;
    flex-direction: column;
}

.card .card-hero {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.card .card-heading {
    margin: 0 10px;
    line-height: 2;
}

.card .card-body {
    margin: 10px;
    flex: 1;
}

.card .card-link {
    color: inherit;
    background: hsla(0, 0%, 100%, 0.5);
    margin: 10px;
    padding: 0 1em;
    line-height: 3;
    border-radius: 0.5em;
    border: 1px solid gray;
    text-decoration: none;
    align-self: flex-end;
}
.grid-align-self-center {
    align-self: center;
}
.wrapper {
    display: grid;
    grid-template-columns: minmax(auto, 1024px);
    justify-content: center;
}

.wrapper-bg-header {
    background: url(images/h1.webp) no-repeat center / 500px 500px, url(../images/header-hero.webp) center / cover;
    height: 650px;
}

.scroll {
    z-index: 9999;
    position:fixed;
    background-color: white;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
}
.scroll ul {
    list-style: none;
    
    display: flex;
    padding-top: 28px;
}
.scroll ul li a {
    text-decoration: none;
    padding-right: 20px;
    color: black;
    font-weight: bold;
    display: inline-block;
    padding: 0 0.5em;
    font-size: 1.2rem;
}

/* Navigation - Headroom JS Move Navigation on Scroll */
.headroom {
    will-change: transform;
    transition: all .5s linear;

}

.headroom--pinned {
    transform: translateY(0%);
    opacity: 1;
}

.headroom--unpinned {
    transform: translateY(-100%);
    opacity: 0;
}
footer a {
    color: black;
    font-weight: bold;
    text-decoration: none;
}
.scroll h1 {
    padding-left: 20px;
    text-decoration: none;
    color: black;
    
}
.scroll a {
    text-decoration: none;
    color: black;
}
.fira-sans-regular {
    font-family: "Fira Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
main {
    background: var(--bg-main);
}
.archive {
    
    display: flex;
    align-items: center;
    flex-direction: column;
}
.archive img {
    width: 500px;
}
.program {
    width: 50%;
    margin: auto;
    font-size: large;
    padding-bottom: 30px;
}
button {
    text-decoration: none;
    
    color: black;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    font-size: 20px;
}
svg {
    width: 40px;
}
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
    vertical-align: middle;
    margin-right: 0.5em;
}
.wrapper-bg-aside {
    background: var(--bg-aside);
    
}
.wrapper-bg-aside h2 {
    text-align: center;
}
.aside-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding-bottom: 20px;
}
.wrapper-bg-footer {
    background: var(--bg-footer);
}

img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
}

footer > div {
    display: flex;
}

footer > div > a {
    line-height: 3em;
    padding: 0 1em;
    
}

footer > div > a:first-child {
    margin-right: auto;
}
.notfoundpage img{
    padding-top: 60px;
}
form ol {
    list-style: none;
    padding-left: 0;
}

form ol li {
    transition: all 0.2s ease-in;
    position: relative;
}

form label {
    display: block;
    line-height: 1.5;
}

form textarea,
form input:not([type="checkbox"]):not([type="radio"]) {
    display: block;
    width: 100%;
    line-height: 2;
    font-family: inherit;
    /* Need min 16px to prevent zooming on field in iOS */
    font-size: 1em;
    padding: 0 0.5em;
    border: 1px solid gray;
    position: relative;
    z-index: 2;
    transition: all 0.2s ease-in;
}

form textarea:focus,
form input:not([type="checkbox"]):not([type="radio"]):focus {
    outline: none;
    border-color: orange;
}

form textarea {
    min-height: 180px;
}

form input + label,
form textarea + label {
    transform: translateY(-100%);
    transition: all 0.2s ease-in;
    z-index: 1;
    position: relative;
}

form input:valid + label,
form textarea:valid + label {
    transform: translateY(0);
    background: lightgreen;
}

form:valid input[type="submit"] {
    border: 2px solid lightgreen;
}

form li:last-child::before {
    content: "✅";
    position: absolute;
    left: 40px;
    line-height: 2;
}

form li:last-child::after {
    content: "⛔️";
    position: absolute;
    top: 0;
    right: 40px;
    line-height: 2;
}

form:invalid li:last-child {
    background: lightcoral;
    padding: 0 100px 0px 00px;
}

form:valid li:last-child {
    background: lightgreen;
    padding: 0 0px 0px 100px;
}
#map {
    margin: 20px 0;
    height: 420px;
    overflow: hidden;
    background: url(images/gmap.webp) no-repeat center / cover;
}

#map h4 {
    font-size: 1.4em;
    margin: 0;
}

#map span {
    display: block;
    font-size: 0.8em;
}

#map ul {
    list-style: disc;
    padding: 5px 20px;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .scroll {
        display: none;
    }
    .nav-main {
        
            width: 64px;
            height: 64px;
            background: white;
            border: 6px solid white;
            border-radius: 50%;
            box-shadow: 0 0 8px;
            padding: 0;
            margin: 1em;
            position: fixed;
            z-index: 9999;
        
    }
    
    .nav-main-menu-toggle {
        background: none;
        border: none;
        cursor: pointer;
        
        line-height: 0;
    }
    
    /* SET SVG TRANSFORMS - based on individual elements not SVG box */
    .nav-main-menu-toggle svg * {
        transform-box: fill-box;
    }
    
    /* HAMBURGER MENU ICON */
    .nav-main-menu-toggle rect:nth-child(1) {
        transition: all 2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
        transform-origin: center;
    }
    
    .nav-main-menu-toggle rect:nth-child(2) {
        transition: all 2.25s linear;
        transform-origin: center;
    }
    
    .nav-main-menu-toggle rect:nth-child(3) {
        transition: all 2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
        transform-origin: center;
    }
    
    /* JAVASCRIPT WILL ADD - aria-expanded="true" - to .nav-main-menu-toggle */
    .nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(1) {
        rotate: 1.125turn;
        translate: 0 10px;
    }
    
    .nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(2) {
        scale: 0;
    }
    
    .nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(3) {
        rotate: -1.125turn;
        translate: 0 -10px;
    }
    
    /* END - .nav-main-menu-toggle */
    
    #nav-main-menu {
        transform: translateX(-100%);
        transition: all 1s ease-in-out;
        position: absolute;
        width: 650px;
        height: 600px;
        background: white;
        opacity: 0.9;
        padding: 0;
        list-style: none;
        display: flex;
        visibility: hidden;
        flex-direction: column;
    }
    
    #nav-main-menu:not([hidden]) {
        visibility: visible;
        transform: translateX(0);
        transition: all 1.8s ease-in-out;
    }
    
    #nav-main-menu li a {
        color: inherit;
        display: flex;
        line-height: 3;
        padding: 0 2em;
        transition: all .25s ease-in-out;
        text-decoration: none;
        color: hotpink;
        font-weight: 700;
        font-size: 40px;
    }
    
    #nav-main-menu li a:hover,
    #nav-main-menu li a:focus {
        background: whitesmoke;
    }
    

}
@media screen and (min-width: 768px) {
    .cards {
        grid-template-columns: repeat(12, 1fr);
    }

    .cards-buttons .card {
        grid-column: span 4;
        background: transparent;
    }

    .cards-buttons .card:nth-child(odd) {
        grid-column: 3 / span 4;
    }

    .card {
        grid-column: span 6;
    }

    .card .card-hero {
        grid-column: span 12;
    }
    .grid-12 {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 10px;
    }
    .nav-main {
        display: none;
    }

    .grid-12-span-12 {
        grid-column: 1 / 13;
    }

    .grid-12-span-6 {
        grid-column: span 6;
    }

    .grid-12-span-4 {
        grid-column: span 4;
    }

    .grid-12-span-3 {
        grid-column: span 3;
    }

    .grid-12-s1-e2 {
        grid-column: 1 / 2;
    }

    .grid-12-s2-e6 {
        grid-column: 2 / 6;
    }

    .grid-12-s6-e8 {
        grid-column: 6 / 8;
    }

    .grid-12-s8-e12 {
        grid-column: 8 / 12;
    }

    .grid-12-s12-e13 {
        grid-column: 12 / 13;
    }

    img {
        aspect-ratio: auto;
    }

}