/* =========================================
   HOLA KIDS ACADEMY - MAIN STYLESHEET
   ========================================= */

/* Our Child-Friendly Color Palette */
:root {
    --sky-blue: #4FB0E8;
    --sunny-yellow: #FFD166;
    --playful-green: #06D6A0;
    --soft-orange: #EF476F;
    --text-dark: #2D3142;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
}

/* Basic Setup */
body {
    font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    /* This creates a beautiful, soft diagonal blend of blue, yellow, and green! */
    background: linear-gradient(135deg, #E3F2FD 0%, #FFF9C4 50%, #E0F2F1 100%);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background-color: var(--sky-blue);
    padding: 20px;
    text-align: center;
    color: var(--white);
}

nav {
    background-color: var(--white);
    padding: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    nav a {
        text-decoration: none;
        color: var(--text-dark);
        font-weight: bold;
        font-size: 1.1em;
        padding: 10px 15px;
        border-radius: 20px;
        transition: background-color 0.3s;
    }

        nav a:hover {
            background-color: var(--sunny-yellow);
        }

/* The Student Login Button (Special Style) */
.login-btn {
    background-color: var(--playful-green);
    color: var(--white);
    border-radius: 25px;
}

    .login-btn:hover {
        background-color: var(--soft-orange);
        color: var(--white);
    }

/* Main Content Area */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

h1, h2, h3 {
    color: var(--sky-blue);
}

/* Make sure text inside the blue header stays white */
header h1, header h2 {
    color: var(--white);
    margin: 5px 0; /* This just adds a little neat spacing too */
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

    footer a {
        color: var(--sunny-yellow);
        text-decoration: none;
        margin: 0 10px;
    }

/* =========================================
   DARK MODE STYLES
   ========================================= */

/* When the body has the 'dark-mode' class, we override the main colors */
body.dark-mode {
    background: #1A1D24; /* This overrides the colorful gradient at night */
    --text-dark: #F9FAFB;
    --white: #2D3142;
    --sky-blue: #3A86B7;
}

/* Styling for our new toggle button */
#darkModeToggle {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.3s;
}

    #darkModeToggle:hover {
        transform: scale(1.1);
    }

/* Keep the footer dark during Dark Mode */
body.dark-mode footer {
    background-color: #0B0D12; /* A very deep, sleek dark color */
    color: #F9FAFB; /* Light text for contrast */
}

/* =========================================
   CONTACT FORM STYLING
   ========================================= */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--sky-blue);
    border-radius: 10px;
    font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    font-size: 1em;
    background-color: var(--white);
    color: var(--text-dark);
    box-sizing: border-box; /* Keeps the boxes from stretching out of bounds */
}

button[type="submit"] {
    background-color: var(--sky-blue);
    color: #FFFFFF;
    padding: 15px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: inherit;
}

    button[type="submit"]:hover {
        background-color: var(--playful-green);
    }

/* =========================================
   UNIFIED RESPONSIVE MODAL (ALL LESSONS)
   ========================================= */

.modal-container {
    width: 90% !important;
    max-width: 650px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 35px 30px 30px 30px !important;
    box-sizing: border-box !important;
    border-radius: 25px !important;
    border: 4px solid var(--sunny-yellow) !important;
}

.close-modal {
    top: 12px !important;
    right: 12px !important;
    z-index: 10 !important;
}

.modal-img {
    width: 100% !important;
    max-width: 450px !important;
    max-height: 50vh !important;
    object-fit: contain !important;
    border-radius: 15px !important;
    margin-bottom: 15px !important;
}

/* =========================================
   MOBILE RESPONSIVENESS (PHONES & TABLETS)
   ========================================= */

@media (max-width: 768px) {
    /* 1. Stack the navigation menu into a vertical column */
    nav {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }

        /* 2. Make the buttons stretch wide so they are easy for thumbs to tap! */
        nav a, .login-btn {
            width: 100%;
            text-align: center;
            box-sizing: border-box;
        }

    /* 3. Give the Dark Mode moon a little breathing room */
    #darkModeToggle {
        margin: 10px 0;
    }
}

@media (max-width: 600px) {
    .modal-container {
        padding: 35px 20px 20px 20px !important;
    }

    .modal .spanish-word {
        font-size: 2em !important;
    }

    .modal .english-word {
        font-size: 1.4em !important;
    }
}
