:root {
    --bg-color: #fafafa;
    --text-color: #333333;
    --container-bg: rgba(255, 255, 255, 0.3);
}

/* 2. Define your "Dark Mode" colors */
.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #f5f5f5;
    --container-bg: rgba(0, 0, 0, 0.7);
}

/* 3. Use the variables in your existing classes */
body {
    background-color: var(--bg-color); /* Controlled by toggle */
    color: var(--text-color);           /* Controlled by toggle */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* This makes the background image look darker in dark mode */
.dark-theme .bg-home, 
.dark-theme .bg-sub {
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5); /* Adds a 50% black tint */
}

.dark-theme .grid-card {
    background-color: rgba(255, 255, 255, 0.1); /* Makes the cards slightly lighter in dark mode */
    border: 1px solid #f5f5f5;
}

/* Only targets the H2 headers when the body has the dark-mode class */
body.dark-mode .subpage-content h2 {
    color: #ffffff;
}


/* =============
    Background Images START
    ============== */

    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .bg-home {
        background-image: url(../img/abeijeman-tulips-5104494_1920.jpg) ;
        height: 100%;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
    }

    .bg-sub {
        background-image: url(../img/yucelmanlevent-tulips-7864592_1920.jpg) ;
        height: 100%;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
    }

    /* =========================
        Background Images END
        ======================== */

    /*===========================
        Font Styles START
        ========================= */

        /* Import font styles from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&family=Prata&display=swap');

/* Font Classes for Website */
.prata-regular {
  font-family: "Prata", serif;
  font-weight: 400;
  font-style: normal;
}

.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lato-bold {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lato-regular-italic {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.lato-bold-italic {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: italic;
}


    /*===========================
        Font Styles END
        ========================= */

    /*===========================
        Links STyles START
        ========================= */

     a {
         text-decoration: none;
         color: #f5cac3;
    }

    a:hover {
        color: #FFFFFF
    }

 /*===========================
     Links Styles END
    ========================= */

 /*====================================
     Heading and Paragraph Styles START
     ================================== */

     h1{font-size: 6rem;}
     h2{font-size: 5rem;}
     h3{font-size: 4rem;}
     h4{font-size: 3rem;}
     h5{font-size: 2rem;}
     h6{font-size: 1rem;}

     h1, h2, h3, h4, h5, h6 {
        font-family: "Prata", serif;
        font-weight: 400;
        font-style: normal;
        padding: 0;
        margin: 0;
     }

     p{
        font-family: "Prata", serif;
        font-weight: 400;
        font-style: normal;
        font-size: 1rem; 
        line-height: 1.75;
        padding: 0;
        margin: 0 0 20px 0;
     }

     hr {
        border-top: 1px solid #FFFFFF;
     }

/* =================================
    Heading and Paragraph Styles END
    ================================ */

/* ======================
    Button Styles START
    ===================== */ 

    .action-btn {
        background-color: #457b9d;
        box-shadow: 0px 0px 3px 3px rgb(0, 0, 0, 0.2);
        font-family: "Lato", sans-serif;
        font-weight: 400;
        font-style: normal;
        text-decoration: none;
        font-size: 1.2rem;
        color: #FFFFFF;
        padding: 7px 17px 7px 17px;
        border: none;
        border-radius: 7px;
        cursor: pointer;
    }

    .action-btn:hover {
        background-color: #f5cac3;
        color: #FFFFFF;
    }

/* ======================
    Button Styles END
    ===================== */ 

 /* ======================
    Navbar Styles Start
    ===================== */ 

    .nav-container {
        background-color: #000000;
        box-shadow: 0px 0px 10px 10px rgb(0, 0, 0, 0.4);
        font-size: 1.2rem;
        font-family: "Lato", sans-serif;
        font-weight: 400;
        font-style: normal;
        height: 60px;
        width: 100%;
        position: sticky;
        top: 0;
    }

    .navbar {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 90%;
        max-width: 1200px;
        margin: auto;
    }

    .navbar ul {
        display: flex;
    }

    .nav-container .navbar {
        justify-content: space-between;
    }

    .navbar ul li {
        list-style-type: none;
    }

    .nav-container .navbar ul li {
        padding: 0px;
        margin: 0 20px;   
    }

    .nav-container h6 {
        font-family: "Lato", sans-serif;
        font-weight: 400;
        font-style: normal;
    }

    .navbar h2 {
        padding: 0px;
        margin: 0;
    }

    .navbar a {
        color: #FFFFFF;
        text-decoration: none;
    }

    .navbar a:hover {
        color: #f5cac3;
    }

@media screen and (min-width: 390px) and (max-width: 787px) {
    .nav-container {
        height: auto;
    }

    .nav-container .navbar {
        flex-direction: column;
    }
}

/* ======================
Navbar Styles Start
====================== */

/* ===========================
Page containers Styles Start
============================== */

.homepage-container {
    background-color: rgb(255, 255, 255, 0);
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.homepage-container h1 {
    margin: 75px 0 -10px 0;
}

.subpage-container {
    background-color: var(--container-bg); /* This is the key! */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

.grid-container {
    display: flex;
    justify-content: center;
}

.grid-cards {
    display:grid;
    width: 100%;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-card {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(0, 0, 0, 0.5);
    color: #FFFFFF;
    height: 100px;
    border-radius: 10px;
    font-size: 1.2rem;
}

.grid-cards a:hover {
    background-color: rgb(0, 0, 0, 0.8);
    border-radius: 10px;
    color: #FFFFFF;
    
}

/* ===========================
Page containers Styles End
============================== */

/* ===========================
Subpage Content Styles Start
============================== */

.subpage-content {
    width: 80%;
    height: 100%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.photo {
    width: 90%;
    border-radius: 20px;
}

.subpage-content details {
    background: #f9f9f9;
    border: 1px solid #dddddd;
    border-radius: 10px;
    margin-bottom: 5px;
}

.subpage-content summary {
    padding: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #333333;
    cursor: pointer;
    outline: none;
    list-style-type: ' ⁉️  ';
}

.subpage-content summary:hover {
    background-color: #f0f0f0;
    border-radius: 10px;
}

.subpage-content details p {
    padding: 20px;
    margin-left: 10px;
    line-height: 1.5;
    color: #333333;
}

.subpage-content h2 {
    font-size: 1.5rem;
    color: #333333;
    padding-bottom: 5px;
    margin-top: 1.5rem;
}

.subpage-content ul {
    list-style: none;
    padding-left: 0;
}

.subpage-content li {
    background-color: rgb(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.subpage-content li a {
    font-weight: bold;
    font-size: 1.2rem;
    color: #3a5a40;
    text-decoration: none;
}

.subpage-content li a:hover {
    text-decoration: underline;
    color: #a5a5a5;
}

/* ===========================
Subpage Content Styles End
============================== */

/*============================
Contact Form Styles Start
==============================*/

form {
    font-family: "Prata", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem; 
    line-height: 1.75;
}

input[type=text], select {
    width: 100%;
    padding: 20px;
    margin: 10px 0px 20px 0px;
    display: inline-block;
    border: 1px solid #333333;
    border-radius: 10px;
    box-sizing: border-box;
    font-family: "Prata", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem; 
    line-height: 1.75;
}

input[type=email] {
    width: 100%;
    padding: 20px;
    margin: 10px 0px 20px 0px;
    display: inline-block;
    border: 1px solid #333333;
    border-radius: 10px;
    box-sizing: border-box;
    font-family: "Prata", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem; 
    line-height: 1.75;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 20px;
    margin: 10px 0px 20px 0px;
    box-sizing: border-box;
    border: 1px solid #333333;
    border-radius: 10px;
    background-color: #f8f8f8;
    resize: none;
    font-family: "Prata", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem; 
    line-height: 1.75;
}

input[type=submit] {
    width: 100%;
    background-color: #457b9d;
    box-shadow: 0px 0px 3px 3px rgb(0, 0, 0, 0.2);
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    font-size: 1.2rem;
    color: #FFFFFF;
    padding: 7px 17px 7px 17px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #f5cac3;
    color: #FFFFFF;
}



/*============================
Contact Form Styles End
==============================*/

/* ===========================
Footer Styles Start
============================== */

.footer-container {
    background-color: rgb(0, 0, 0, 0.8);
    height: 40px;
    width: 100%;
    margin-top: 50px;
    padding: 20px 0px 10px 0px;
}

.footer-content {
    text-align: center;
    color: #FFFFFF;
    font-size: 0.8rem;
     font-family: "Prata", serif;
  font-weight: 400;
  font-style: normal;

}

/* ===========================
Footer Styles End
============================== */


.theme-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 20px; /* Gives it a little breathing room from the links */
    transition: transform 0.2s ease;
}

.theme-btn:hover {
    transform: scale(1.2); /* Makes the moon/sun pop when you hover! */
}

/* The background covering the whole screen */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Use #1a1a1a if you want it dark by default */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Keeps it above everything else */
    transition: opacity 0.5s ease, visibility 0.5s;
}

/* The spinning circle */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #d1ebed;
    border-top: 5px solid #f5d9f5; /* You can change this color! */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* The actual animation logic */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Class to hide the loader */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.game-container {
    background-color: rgba(255, 255, 255, 0.1); /* Slight see-through effect */
    border: 2px solid var(--accent-color); /* Use your site's main color */
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.game-btn {
    font-size: 1.2rem;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 8px;
    border: none;
    background-color: #3a5a40;
    color: white;
    transition: transform 0.2s, background 0.2s;
}

.game-btn:hover {
    transform: translateY(-3px);
    background-color: #2980b9;
}

.result-box {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

#game-status {
    font-weight: bold;
    font-size: 1.4rem;
    margin-top: 10px;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
    justify-content: center;
    margin: 20px 0;
}

.cell {
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.cell:hover {
    background-color: rgba(52, 152, 219, 0.2);
}

/* Dark mode compatibility */
body.dark-mode .cell {
    color: white;
    border-color: #ffffff;
}

#final-announcement {
    text-align: center;
    font-size: 3rem;
    margin-top: 50px;
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.snake-game-container {
    text-align: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#snake-status {
    color: #ff69b4; /* Hot pink for visibility */
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#snakeCanvas {
    display: block;
    margin: 0 auto;
    background-color: #ffe4e1; /* Light pink */
    border: 8px solid #ffb6c1; /* Soft pink border */
    border-radius: 20px; /* Extra rounded for cuteness */
    box-shadow: 0 10px 25px rgba(255, 182, 193, 0.3);
    cursor: crosshair;
}

/* Ensure the canvas doesn't look weird in Dark Mode */
body.dark-mode #snakeCanvas {
    border-color: #ffffff;
    background-color: #ffe4e1; /* Keeps the pink vibe even in dark mode */
}
