:root {
    --clr-bg: #f5deb3ea;
    --clr-f: #01180c;
    --clr-f-nav: #222;
    --clr-link: #000; /* Primary link color */
    --clr-link-hover: orangered; /* Link hover color */
    --clr-link-border: #000;
    --clr-header-border-bottom: #000;
    --ff: monospace;

    /* Light Theme Colors */
    --color-light-background: wheat; /* Light background */
    --color-light-text: #046b62; /* Dark text for light backgrounds */
    --color-light-border: #dddddd; /* Light borders */

    /* Dark Theme Colors */
    --color-dark-background: #121212; /* Dark background */
    --color-dark-text: #ccc; /* Light text for dark backgrounds */
    --color-dark-border: #444444; /* Darker borders */

    --color-accent: #ff4081; /* Accent color for buttons or highlights */
    --color-card-background-light: #f9f9f9; /* Background for cards in light mode */
    --color-card-background-dark: #1e1e1e; /* Background for cards in dark mode */
    --color-card-border-light: #e0e0e0; /* Border color for cards in light mode */
    --color-card-border-dark: #555555; /* Border color for cards in dark mode */
    --color-section-background-light: #f4f4f4; /* Light section background */
    --color-section-background-dark: #1c1c1c; /* Dark section background */

    /* Font Sizes */
    --font-size-100: 0.625rem;  /* 10px */
    --font-size-200: 0.75rem;   /* 12px */
    --font-size-300: 0.875rem;  /* 14px */
    --font-size-400: 1rem;      /* 16px (Base size) */
    --font-size-500: 1.125rem;   /* 18px */
    --font-size-600: 1.25rem;   /* 20px */
    --font-size-700: 1.5rem;    /* 24px */
    --font-size-800: 1.75rem;   /* 28px */
    --font-size-900: 2rem;      /* 32px */

    /* Font Weights */
    --font-weight-100: 100;    /* Thin */
    --font-weight-300: 300;    /* Light */
    --font-weight-400: 400;    /* Regular (default) */
    --font-weight-500: 500;    /* Medium */
    --font-weight-600: 600;    /* Semi-Bold */
    --font-weight-700: 700;    /* Bold */
    --font-weight-900: 900;    /* Extra Bold */

    --font-family-serif: "Times New Roman", "Georgia", serif; /* Serif Fonts */
    --font-family-sans-serif: "Arial", "Helvetica", sans-serif; /* Sans-Serif Fonts */
    --font-family-monospace: "Courier New", "Lucida Console", monospace; /* Monospace Fonts */ 
    --font-family-cursive: "Yellowtail", cursive; /* Cursive Fonts */
    --font-family-custom: "Your Custom Font", sans-serif; /* Custom Font Example Replace with your actual font */
     
    --max-w-readable: 75ch;
    --text-indent: 2rem;
}

*,
*::after,
*::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

p,
li,
figcaption {
    max-width: var(--max-w-readable);
}

address {
    background-color: var(--clr-bg);
    width: fit-content;
    padding: 1rem;
    border-radius: 8px;
    margin-inline: auto;
}
    
body {
    background-color: var(--color-light-background); /* fall back color */
    background-image: url(../images/abstract1.png);
    color: var(--color-light-text);
    font-family: var(--ff);
    position: relative; /* Needed for pseudo-element */
}

body::before {
    content: "";
    position: fixed; /* Make it cover the viewport */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--clr-bg); /* Use your rgba color */
    z-index: -1;  /* Place it behind the content */
    pointer-events: none; /* Let clicks go through */
}

header {
    position: relative;
    font-family: serif;
    border-bottom: 5px solid var(--clr-header-border-bottom);
    display: flex;
    justify-content: space-between;
    text-align: center;

    div {
        display: flex;
        flex-direction: column;

        h1 {
            font-size: clamp(1.5rem, 5vw, 2.5rem);
            font-weight: bold;
            margin: 0.5rem;
            padding-inline: .75rem;
            padding-top: 1.5rem;
        }

        h2 {
            font-size: clamp(1.1rem, 5vw, 1.7rem);
            margin: 0.5rem;
            padding-inline: .75rem;
        }
    }
}

.butterfly {
    display: none;
}

.eagle1 {
    display: none;
}

.ver {
    position: absolute;
    font-size: var(--font-size-300);
    top: 2px;
    right: 3px;
}

/* <<<<<<<< Nav start >>>>>>>> */
nav {
    margin-top: 1rem;
    border-bottom: 5px solid var(--clr-header-border-bottom);

    ul {
        padding-inline: 15px;
        margin-bottom: 1.25rem;

        li {
            position: relative;
            background-color: var(--clr-bg);
            list-style-type: none;
            border: 2px solid var(--clr-link-border);
            border-radius: 5px;
            padding-inline: .5rem;
            margin-bottom: .15rem;
            /* max-width: 28ch; */
    
            a {
                display: block;
                color: var(--clr-f-nav);
                text-decoration: none;
                width: 100%;
                height: 100%;
            }

            a:hover {
                color: var(--clr-link-hover);
            }
        }
    }
}

.active {
    background-color: #000; /* Need to set var color*/
    
    a {
        color: var(--clr-bg);
    }
}

/* <<<<<<<< Nav End >>>>>>>> */

main {
    margin-top: 1rem;
    margin-bottom: 3rem;
    padding-inline: 1rem;

    section {
        /* padding: 1rem; */
        margin-block: 0;
        padding-block: 0.5rem;

        p {
            margin-block: 0;
            padding: 0.5rem;
        }
    }
    
    span {
        font-weight: bold;
    }
    h2 {
        border-bottom:  2px solid #000;
        margin-bottom: 1.5rem;
    }    
}

section {
    text-align: left;
    text-indent: var(--text-indent);

    h2 {
        font-size: var(--font-size-800);
        text-align: center;
    }

    h3 {
        text-align: center;
    }

    ul {
        width: fit-content;
        margin: 0 auto;
        text-align: left;
    }

    ol {
        width: fit-content;
        margin: 0 auto;
        text-align: left;
    }

    p {
        background-color: var(--color-light-background);
        margin-inline: auto;
        margin-block: 1rem;
        padding: .75rem;
        border-radius: 10px;
    }

    address {
        text-indent: 0;
    }
}

.no-indent {
    text-indent: 0;
}

.img-center {
    display: block;
    margin-inline: auto;
    margin-bottom: 0.75rem;
}

.gal1 {
    display: flex;
    align-items: center;
    flex-direction: column;
    max-width: 90%;
    height: auto;
    object-fit: none;
    margin-block: 1.5rem;
    gap: 15px;

    img {
        border: 2px solid #000;
        border-radius: 8px;
        max-width: calc(100% - 20px);
    }

}

.gal2 {
    --r1: 10px;
    --r2: 0px;

    border: 2px solid #000;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-block: 1rem;

    figure {
        background-color: var(--color-card-background-light);
        margin: .5rem;
        border: 2px solid #000;
        border-radius: var(--r1) var(--r1) var(--r2) var(--r2);
        height: fit-content;

        img {
            border-radius: var(--r1) var(--r1) var(--r2) var(--r2);
            max-width: 100%;
            height: auto;
            object-fit: none;
        }
    }

    figcaption {
        background-color: var(--color-card-background-light);
        max-width: 20ch;
        color: #333;
        font-style: italic;
        padding: 5px;
        text-align: center;
      }
      
}

/* <<<<<<<< Program Card >>>>>>>> */
.Program {
    border: 2px solid #000;
    border-radius: 10px;
    text-align: center;

    h2 {
        margin-bottom: 1rem;
        padding-block: .25rem;
        border-bottom: 2px solid #000;
    }
}

#cardContainer {
    --grid-min-col-size: 325px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--grid-min-col-size), 100%), 1fr));
    
}

.card {
    background-color: #555555;
    color: #ddd;
    padding: .5rem;
    margin: .5rem;
    border: 2px solid #000;
    border-radius: 8px;

    .program-title {
        margin-bottom: .5rem;
        padding-block: .2rem;
        border-bottom: 1px solid #000;
        color: orange;
    }

    .program-descripion {
        font-size: var(--font-size-300);
        background-color: inherit;
        margin-bottom: .25rem;
        text-align: left;
        /* width: 25ch; */
    }

    .program-date {
        background-color: inherit;
        font-size: var(--font-size-600);
        margin-block: .1rem;
    }

    .program-time {
        background-color: inherit;
        font-size: var(--font-size-400);
        margin-block: .1rem;
    }

    .program-location {
        background-color: inherit;
        color: yellow;
        margin-block: .1rem;
    }

    .note {
        background-color: inherit;
        font-size: var(--font-size-300);
        margin-block: .1rem;
    }
}

.notes {
    margin-top: 1rem;
    margin-inline: auto;
    padding-block: .75rem;
    max-width: 425px;
    border: 2px solid #000;
    background-color: #555;
    color: #ccc;
    border: 2px solid #000;
    border-radius: 8px;

    ul {
        list-style-type: none;

        li {
            text-indent: -3ch;
            padding-inline: 2rem;
            margin-inline: .75rem;
            font-size: var(--font-size-200);
            text-align: left;
            width: 55ch; /* to force 2 lines of text */
        }
    }
}

/* <<<<<<<< Program Card End >>>>>>>> */

footer {
    font-size: var(--font-size-200);
    border-top: 5px solid #000;
    padding-top: 1rem;
    margin-bottom:  3rem;
    text-align: center;

    button {
        margin-top: 1rem;
        padding-block: .25rem;

        a {
            padding-inline: 1.75rem;
            color: var(--clr-link);
        }

        a:hover {
            color: var(--clr-link-hover);
        }
    }
}

/* <<<<<<<< Poem >>>>>>>> */

.poem {
    background-color: var(--clr-bg);
    border: 2px solid #111;
    border-radius: 8px;
    margin: 1em auto;
    max-width: 45ch;
    padding: 1em;
    padding-left: 2em;
}
  
.poem p {
    margin: 0 0 1em 0;
    padding-left: 3em;
    text-indent: -3em;
    text-align: left;
}
  
.poem p:last-child {
    margin-bottom: 0;
}

#kilmer {
    max-width: 45ch;
}

/* <<<<<<<< End Poem >>>>>>>> */

.img-fluid {
    width: 100%;
    /* max-width: 1200px; */
    border: 5px solid #444;
    border-radius: 18px;
}

#map2 {
    width:  100%;
    max-width: 1000px;
}

/* <<<<<<<< Home page >>>>>>>> */

.park-head {
    text-align: center;
    font-size: var(--font-size-500);
    max-width: 45ch;
    margin-inline: auto;
}

.location-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}
  
.location-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 750px;
    border: 2px solid #000;
    border-radius: 8px;
    margin-top: .5rem;
    padding: .5rem;
}
  
.location-image {
    width: 100%;
    height: auto;
    max-width: 350px;
    border-radius: 8px;
}

.location-description {
    background-color: var(--color-light-background);
    border-radius: 10px;
    padding: 15px;
    max-width: 38ch;
}

.social {
    display: flex;
    justify-content: center;
    gap: 25px;

    .social-btn {
        color: var(--clr-f);
    }
}

.donation {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 450px;
    justify-content: center;
    align-items: center;

    h2 {
        margin-bottom: 0;
    }
}

.donation-card {
    border: 2px solid black;
    background-color: var(--color-light-background);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    border-radius: 8px;
    padding: .5rem;
    margin-bottom: 1rem;
    max-width: 35ch;

    h2 {
        color: var(--clr-f);
    }
}

.donation-btn {
    font-size: var(--font-size-500);
    background-color: var(--color-light-background); 
    border-radius: 8px;
    border: 2px solid #000;
    
    a {
        display: block;
        text-decoration: none;
        color: var(--clr-link);
        
    }

    a:hover {
        color: var(--clr-link-hover);
    }
}

/* <<<<<<<< Home page End >>>>>>>> */
/* <<<<<<<< Popover Map >>>>>>>> */

.map-container {
    position: relative;
    margin: 1.25rem;
    align-self: center;
}

.popover-button {
    padding: 10px 20px;
    background-color: cadetblue;
    color: #000;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.popover-content {
    display: none;
    position: absolute;
    z-index: 100;
    top: 50px; /* Adjust based on your layout */
    left: 50%;
    width: calc(90vw - 20px);
    height: 50vh;
    padding: 10px;
    background-color: #333;
    border: 5px solid #111;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 25px;
    transform: translateX(-50%); /* Adjust for the popover's own width */
}

.map-iframe {
    position: absolute;
    border-radius: 15px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    top: 10px;
    left: 10px;
}

/* Show popover on button hover */
.popover-button:hover + .popover-content,
.popover-content:hover {
    display: block;
}

#trail-parking {
    background-color: var(--color-light-background);
    text-indent: 0px;
    border: 2px solid #000;
    border-radius: 8px;
    max-width: 80ch;
    margin: 0 1rem;
    padding-inline: .5rem;

    address {
        margin-inline: 0px;
    }
}

/* <<<<<<<< Popover Map End >>>>>>>> */

button {
    background-color: var(--clr-bg);
    border-radius: 8px;
    margin-top: .5rem;

    a {
        text-decoration: none;
        color: var(--color-link);
        padding: .25rem;
    }
}

.faq-container {
    border-bottom: 2px solid #777;
}

/* <<<<< tallgrass Page >>>>> */

#bookwalk {
    display: flex;
    justify-content: center;
}

#tallgrass-map {
    display: flex;
    flex-direction: column;
    align-items: center;

    img {
        max-width: 90%;
        margin-block: 1.25rem;
    }
}

#map-download {
    margin-inline: auto;
}

/* <<<<< tallgrass Page End >>>>> */
/* <<<<<< Foundation  >>>>>> */

#p1 {
    display: flex;
    flex-direction: column;
}

#foundation {

    h2 {
        text-align: center;
        border-bottom: 2px solid #000;
        margin-block: 2rem;
    }

    img {
        margin-block: 1rem;
    }

    li {
        padding-block: .25rem;
    }

    li::marker {
        color: red;
        content: "#";
        font-size: 1rem;
      }
}

.rules {
    background-color: var(--clr-bg);
    padding-inline: .5rem;
    color: red;
}

.two_cal {
    display: flex;
    
    gap: 20px;
    padding: .5rem;
    border-radius: 8px;
    max-width: fit-content;
    margin-inline: auto;

    p {
        background-color: var(--clr-bg);
        height: fit-content;
    }

    img {
        object-fit: cover;
        height: fit-content;
    }
}

/* <<<<<< Foundation End  >>>>>> */
/* <<<<<< Terradise >>>>>>> */

.brochure1 {
    display: flex;
    align-items: center;
    gap: 25px;
}

.tnp {
    text-indent: var(--text-indent);

    p {
        padding-block: 0.25rem;
        margin-block: 0;
    }
}

/* <<<<<< Terradise End >>>>>>> */
/* <<<<<< Myers Woods >>>>>>> */

.poem {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-600);
}

#kilmer {
    font-size: var(--font-size-200);
    /* text-align: center; */
    max-width: 100%;
    margin-inline: 2.5rem;
    padding: 0.5rem;
    /* background-color: #121212; */
    /* color: red; */
    /* border: 2px solid red; */
}

/* <<<<<< Myers Woods END >>>>>>> */
/* <<<<<< Greenspur >>>>>>> */

#greenspur {
    address {
        margin-inline: auto;
        margin-block: 0.25rem;
        background-color: var(--clr-bg);
        width: fit-content;
        padding: 1.25rem;
        border-radius: 10px;
    }
}

/* <<<<<< Greenspur END >>>>>>> */
/* <<<<<< caledonia >>>>>>> */

/* <<<<<< caledonia END >>>>>>> */
/* <<<<<< Donation >>>>>>> */

.donate {

    li {
        text-indent: 0;
    }

    li::marker {
        color: red;
        content: "#";
        font-size: 2rem;
      }
      
}

/* <<<<<< Donation END >>>>>>> */
/* <<<<< Links Page >>>>> */

#links {
    margin-left: .25rem;
}

.link-list {
    background-color: #bbb;
    border: 2px solid #000;
    border-radius: 8px;
    padding-inline: 1rem;
    padding-block: .25rem;
    margin-block: 1rem;

    li {
       list-style-type: none;
       padding-block: .25rem;
    }

    a {
        text-decoration: none;
        color: var(--clr-f);
    }

    a:hover {
        color: var(--clr-link-accent);
    }
}

/* <<<<< Links Page End >>>>> */
/* <<<<< About >>>>> */

#board {
    width: fit-content;
    margin: 0 auto;
}

/* <<<<< About End >>>>> */
/* <<<<< Employment >>>>> */

#emp {
    width: fit-content;
    margin-inline: auto;
    margin-block: 3rem;

    p {
        margin-block: .5rem;
    }
}

/* <<<<< Employment End >>>>> */
/* <<<<<< FAQ  >>>>>>> */

#faq {
    h2 {
        font-size: var(--font-size-700);
        text-align: center;
        border-bottom: 2px solid #000;
        margin-block: 2rem;
    }
}

.question {
    font-size: var(--font-size-500);
    margin-bottom: 0.5rem;
}

/* <<<<<< FAQ End >>>>>>> */
/* Breakpoint 1: 576px (Small devices) */

@media screen and (min-width: 576px) {
    body {
        background-color: var(--color-light-background);
    }

    nav {
        margin-block: 0;
        padding-block: 1rem;

        ul {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 5px;

            li {
                width: 28ch;
            }
        }
    }

    .gal1 {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        max-width: 80%;
        height: auto;
        object-fit: none;
        margin-block: 1.5rem;
        margin-inline: auto;
        gap: 25px;
    
        img {
            border: 4px solid #000;
            border-radius: 8px;
        }
    
    }

    /* home page */

    .location-card {
        flex-direction: row;
        align-items: center;
      }
    
      .location-card:nth-child(even) {
        flex-direction: row-reverse;
      }
    
      .location-image {
        width: 50%;
      }
    
      .location-info {
        width: 50%;
      }
    
      .location-card:nth-child(odd) .location-image {
        margin-right: 20px;
      }
    
      .location-card:nth-child(even) .location-image {
        margin-left: 20px;
      }

    /* home page end */

    #links {
        margin-left: 1rem;
    }
}

/* Breakpoint 2: 768px (Medium devices) */

@media screen and (min-width: 768px) {
    body {
        background-color: var(--color-light-background);
    }

    header {
        align-items: stretch;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        text-align: center;

        h1 {
            line-height: 2.25rem;
        }
    }

    .eagle1 {
        display: block;
        width: 200px;
    }

    .butterfly {
        display: block;
        width: 200px;
        padding: 3rem;
    }

    .donation {
        flex-direction: row;
        min-height: 200px;
    }

    #links {
        margin-inline: 2.25rem;
    }

    #trail-parking {
        margin: 0 auto;
    }
}

/* Breakpoint 3: 1200px (Large devices) */

@media screen and (min-width: 1200px) {
    body {
        background-color: var(--color-light-background);
    }
    
    .location-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .location-card {
        max-width: 525px;
    }

    #links {
        margin-inline: 4.25rem;
        font-size: var(--font-size-500);
    }
}

/* Breakpoint 4: 1600px (Extra large devices) */

@media screen and (min-width: 1600px) {
    body {
        background-color: var(--color-light-background);
    }

    .location-card {
        max-width: 750px;
    }
}


