body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #fdf6f8;
    color: #443c41;
}

.container {
    background-color: #ffffff;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    text-align: center;
    max-width: 650px;
    width: 90%;
}

h1 {
    font-weight: 700;
    color: #d15c8b;
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 10px;
}

h2 {
    font-weight: 700;
    color: #d15c8b;
}

p {
    line-height: 1.6;
    font-size: 0.9em;
}

input {
    width: 100%;
    padding: 15px;
    margin: 25px 0 15px;
    border: 1px solid #e0d9de;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    box-sizing: border-box;
    text-align: center;
}

input:focus {
    outline: none;
    border-color: #d15c8b;
    box-shadow: 0 0 10px #fdf6f8;
}

button {
    background: linear-gradient(45deg, #d15c8b, #b35a9a);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1em;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(209, 92, 139, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 92, 139, 0.4);
}

#errorMessage {
    color: #d15c8b;
    font-weight: 500;
    margin-top: 15px;
    height: 20px;
}

/* --- Day 1: Jeopardy Board Styles --- */

/* NEW: Score Tracker Style */
#score-tracker {
    font-size: 1.5em;
    font-weight: 700;
    color: #b35a9a;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fdf6f8;
    border-radius: 10px;
}

#jeopardy-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
    width: 100%;
}

.category {
    background-color: #d15c8b;
    color: white;
    font-weight: 700;
    padding: 15px 5px;
    border-radius: 10px;
    font-size: 0.8em;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-box {
    background-color: #b35a9a;
    color: white;
    font-weight: 700;
    font-size: 1.8em;
    padding: 20px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-box:hover {
    transform: scale(1.05);
    background-color: #d15c8b;
}

.question-box.answered {
    background-color: #e0d9de;
    color: #a0999d;
    cursor: not-allowed;
    pointer-events: none;
}

/* NEW: Final Result Box Styles */
#final-result {
    display: none; /* Hidden by default */
    margin: 25px 0;
    padding: 20px;
    background-color: #fdf6f8;
    border: 2px solid #d15c8b;
    border-radius: 15px;
    text-align: center;
}

#final-result h2 {
    margin-top: 0;
}

#final-result .final-code {
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: 500;
}

#final-result .final-code strong {
    font-weight: 700;
    color: #ffffff;
    background-color: #d15c8b;
    padding: 5px 10px;
    border-radius: 7px;
}


#question-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 15px;
    box-sizing: border-box;
}

#question-modal .modal-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
}

#modal-question-text {
    font-size: 1.5em;
    font-weight: 500;
    color: #443c41;
    min-height: 100px;
}

#modal-options-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-option-btn {
    background-color: #f1eef0;
    color: #443c41;
    border: 1px solid #e0d9de;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1em;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    text-align: left;
    box-sizing: border-box;
}

.modal-option-btn:hover:not(:disabled) {
    border-color: #d15c8b;
    background-color: #fdf6f8;
}

.modal-option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.modal-option-btn.correct {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    font-weight: 700;
}

.modal-option-btn.incorrect {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    opacity: 0.6;
}

#modal-feedback-text {
    min-height: 50px;
    font-size: 1.1em;
    font-weight: 700;
    margin-top: 15px;
}

#modal-feedback-text .correct-feedback {
    color: #155724;
}

#modal-feedback-text .incorrect-feedback {
    color: #721c24;
}

#modal-feedback-text .hint-reveal {
    margin-top: 10px;
    font-size: 0.9em;
    font-weight: 500;
    color: #d15c8b;
}

#close-modal {
    background: linear-gradient(45deg, #d15c8b, #b35a9a);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    margin: 10px 5px 0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    cursor: pointer;
    transition: transform 0.2s;
    display: none;
}

/* --- Day 2: GeoGuessr Style --- */
#map-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1;
}

#question-container {
    background-color: #fdf6f8;
    border: 1px solid #e0d9de;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}

#question-text {
    font-size: 1.2em;
    font-weight: 500;
    color: #d15c8b;
    margin: 0;
}

#score-tracker {
    font-size: 1.2em;
    font-weight: 500;
    color: #443c41;
    background-color: #f1eef0;
    padding: 10px 15px;
    border-radius: 10px;
}

#score-tracker span {
    font-weight: 700;
    color: #d15c8b;
}

#results-container {
    display: none;
    padding: 20px;
    border: 2px solid #d15c8b;
    background-color: #fdf6f8;
    border-radius: 15px;
    margin-top: 20px;
}

#final-message {
    font-size: 1.1em;
    line-height: 1.7;
}

#final-code {
    font-size: 1.5em;
    font-weight: 700;
    background-color: #fdf6f8; /* Changed from green to your theme's light pink */
    padding: 10px 20px;
    border-radius: 10px;
    margin-top: 20px;
    color: #d15c8b; /* Changed from green to your theme's main pink */
    letter-spacing: 3px;
    border: 1px solid #e0d9de;
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
    background: #fff;
    font-family: 'Poppins', sans-serif;
}
.leaflet-popup-content {
    color: #443c41;
    font-size: 1.1em;
    font-weight: 500;
    text-align: center;
    margin: 15px 20px;
}
.leaflet-popup-tip {
    background: #fff;
}

.popup-button {
    background: linear-gradient(45deg, #d15c8b, #b35a9a);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.2s;
}

.popup-button:hover {
    transform: translateY(-1px);
}

/* --- Day 3: Dream Weaver Styles --- */
#dream-container {
    text-align: left;
    margin-bottom: 20px;
}

.dream-segment {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #fdf6f8;
    border-left: 4px solid #d15c8b;
    border-radius: 0 8px 8px 0;
    opacity: 0; /* Start hidden */
    transform: translateY(20px); /* Start slightly lower */
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.dream-segment.visible {
    opacity: 1;
    transform: translateY(0);
}

.dream-segment p {
    font-size: 1.1em;
    line-height: 1.7;
    margin: 0;
}

.dream-segment.choice p {
    font-style: italic;
    color: #b35a9a;
}

#choices-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.choice-btn {
    background-color: #fff;
    color: #443c41;
    border: 1px solid #e0d9de;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1em;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    text-align: center;
    box-sizing: border-box;
}

.choice-btn:hover {
    border-color: #d15c8b;
    background-color: #fdf6f8;
    transform: translateY(-2px);
}
/* --- Day 3: Mad Libs Styles --- */
#madlibs-game {
    padding: 20px 0;
}

#prompt-text {
    font-size: 1.3em;
    font-weight: 500;
    color: #443c41;
    margin-bottom: 15px;
}

#word-input {
    /* Uses existing input styles, but we can add more if needed */
    margin-top: 0; 
}

#submit-word-btn {
    /* Uses existing button styles */
    width: 100%;
    margin-top: 10px;
}

#final-story-container {
    text-align: left;
    display: none; /* Hidden until game is over */
}

#final-story-container h2 {
    text-align: center;
    color: #d15c8b;
    margin-top: 0;
}

#story-output {
    background-color: #fdf6f8;
    border-radius: 12px;
    padding: 25px;
    font-size: 1.2em;
    line-height: 1.8;
    margin-top: 15px;
}

/* This is the magic for making the filled-in words stand out */
.filled-word {
    font-weight: 700;
    color: #b35a9a;
    background-color: #f1eef0;
    padding: 2px 6px;
    border-radius: 5px;
    text-transform: lowercase;
}

/* --- Styles for Code Reveal and Action Link --- */

#revealed-code {
    font-size: 1.6em;
    font-weight: 700;
    background-color: #d4edda; /* A nice, rewarding green */
    padding: 10px 20px;
    border-radius: 10px;
    margin: 15px 0 25px 0;
    color: #155724;
    text-align: center;
    letter-spacing: 4px; /* Makes it look more like a code */
    text-transform: uppercase;
    font-family: 'Courier New', Courier, monospace; /* Looks more like a code */
}

/* START: UPDATED STYLE */
/* This now matches the look of the .choice-btn */
.action-link {
    display: block; /* Makes the link take up the full width */
    background-color: #fff;
    color: #443c41;
    border: 1px solid #e0d9de;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none; /* Removes the default link underline */
    text-align: center;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.action-link:hover {
    border-color: #d15c8b;      /* Highlights with the theme color */
    background-color: #fdf6f8;  /* Adds a subtle pink background */
    transform: translateY(-2px); /* Slight lift on hover */
}
/* END: UPDATED STYLE */

/* --- Day 4: Hangman Styles --- */
/* --- Day 4: Hangman Styles --- */
#hangman-container {
    text-align: center;
}

#heart-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px auto;
}

#heart-svg {
    width: 100%;
    height: 100%;
    stroke-linecap: round;
}

.heart-body {
    fill: #d15c8b; /* Main heart color */
    stroke: #b35a9a; /* Heart outline color */
    stroke-width: 2;
}

.crack {
    display: none; /* All cracks start hidden */
    fill: none;
    stroke: #443c41; /* Color of the crack lines */
    stroke-width: 1.5;
}

#word-display {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5em;
    letter-spacing: 10px;
    margin-bottom: 20px;
    color: #443c41;
    min-height: 40px; /* Prevents layout shift */
}

.letter-space {
    margin-right: 20px; /* For spaces between words */
}

#game-message {
    min-height: 25px;
    font-weight: 500;
    font-size: 1.1em;
    color: #d15c8b;
    margin-bottom: 20px;
}

#keyboard-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 450px;
    margin: 0 auto;
}

.key {
    background: #fdf6f8;
    color: #443c41;
    border: 1px solid #e0d9de;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: 500;
    width: 35px;
    height: 45px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.key:hover:not(:disabled) {
    background-color: #d15c8b;
    color: white;
}

.key:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.key.correct {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.key.incorrect {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

#play-again-btn {
    margin-top: 20px;
    width: auto;
    padding: 10px 30px;
    /* This will inherit button styles if you have global ones */
    background-color: #d15c8b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}


/* --- SHARED Styles for Code Reveal and Action Link --- */
#revealed-code {
    font-size: 1.6em;
    font-weight: 700;
    background-color: #d4edda;
    padding: 10px 20px;
    border-radius: 10px;
    margin: 15px 0 25px 0;
    color: #155724;
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: 'Courier New', Courier, monospace;
}

.action-link {
    display: block;
    background-color: #fff;
    color: #443c41;
    border: 1px solid #e0d9de;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.action-link:hover {
    border-color: #d15c8b;
    background-color: #fdf6f8;
    transform: translateY(-2px);
}
/* --- Day 5: Book Cipher Styles --- */
#book-container {
    background-color: #fdf6f8;
    border: 1px solid #e0d9de;
    border-radius: 15px;
    padding: 20px 25px;
    margin: 20px 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex-grow: 1;
    font-size: 1.1em;
    line-height: 1.8;
}

#book-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0d9de;
}

#book-navigation button {
    background: none;
    border: 1px solid #d15c8b;
    color: #d15c8b;
    padding: 10px 20px;
    border-radius: 8px;
    width: auto;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

#book-navigation button:hover:not(:disabled) {
    background: #d15c8b;
    color: white;
}

#book-navigation button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#page-indicator {
    font-weight: 500;
}

/* --- Styles for the final challenge --- */
#final-challenge {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #e0d9de;
    padding-top: 25px;
}

#final-challenge h3 {
    margin-top: 0;
    color: #443c41;
}

#phrase-input {
    width: 100%;
    box-sizing: border-box; 
    margin: 10px 0;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e0d9de;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
}

#check-phrase-btn {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    background-color: #d15c8b;
    color: white;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

#feedback-message {
    min-height: 20px;
    margin-top: 15px;
    font-weight: 500;
}

/* 
==============================================
--- MOBILE OPTIMIZATIONS (for iPhones etc.) ---
==============================================
*/
@media (max-width: 600px) {
    /* Reduce padding on the main container to give more space */
    .container {
        padding: 20px 15px;
    }

    /* Make text slightly smaller to fit better */
    h1 {
        font-size: 1.8em;
    }
    .page-content {
        font-size: 1em;
        line-height: 1.7;
    }

    /* Reduce padding inside the book area */
    #book-container {
        padding: 15px;
    }

    /* Make navigation buttons a bit smaller but still easily tappable */
    #book-navigation button {
        padding: 8px 15px;
    }

    #page-indicator {
        font-size: 0.9em;
    }

    /* Ensure the final challenge input is easy to tap */
    #phrase-input {
        padding: 12px;
        font-size: 1em;
    }
}

/* --- Day 6: Rebus Puzzle Styles --- */
#rebus-container {
    padding: 10px;
    background-color: #fdf6f8;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
}

#rebus-image-container img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

#rebus-input {
    text-transform: lowercase; /* Makes it easier for user */
    margin-bottom: 10px;
}

#rebus-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

#rebus-controls button {
    width: auto;
    padding: 10px 25px;
}

#feedback-message {
    min-height: 25px;
    font-weight: 500;
    margin-top: 15px;
    font-size: 1.1em;
}

#feedback-message.correct { color: #155724; }
#feedback-message.incorrect { color: #721c24; }

#code-reveal-container {
    margin: 20px 0;
}

.code-letter {
    display: inline-block;
    width: 40px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: #f1eef0;
    border: 1px dashed #e0d9de;
    border-radius: 8px;
    margin: 0 5px;
    font-size: 1.5em;
    font-weight: 700;
    color: #a0999d;
    text-transform: uppercase;
    transition: all 0.5s ease;
}

.code-letter.revealed {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-style: solid;
    transform: scale(1.1);
}
/* --- ADD THIS NEW BLOCK --- */
#rebus-image-container {
    width: 100%;
    height: 250px; /* We give the CONTAINER a fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#rebus-image {
    max-width: 100%; /* The image can't be wider than the container */
    max-height: 100%; /* The image can't be taller than the container */
    object-fit: contain; /* This is the magic property! */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
/* ADD THESE STYLES TO THE BOTTOM OF YOUR style.css FILE */

/* --- Day 7: Final Scramble Styles --- */
#scrambled-words-container {
    margin: 20px 0;
    text-align: left;
}

#scrambled-words-container h3 {
    text-align: center;
    color: #443c41;
    font-weight: 500;
}

#scrambled-words-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #fdf6f8;
    border-radius: 12px;
}

.scrambled-word-item {
    background-color: #fff;
    border: 1px solid #e0d9de;
    padding: 8px 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.2em;
    color: #b35a9a;
}

#unscramble-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.word-input {
    width: 120px;
    padding: 10px;
    border: 2px solid #e0d9de;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    text-align: center;
    transition: all 0.3s ease;
}

.word-input.correct {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.word-input.incorrect {
    border-color: #d15c8b;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

#check-answer-btn {
    width: 100%;
}
/* ADD THESE STYLES TO THE BOTTOM OF YOUR style.css FILE */

/* --- Final Message Page Styles --- */
.heart-divider {
    color: #d15c8b;
    font-size: 1.5em;
    text-align: center;
    margin: 20px 0;
}

.signature {
    text-align: right;
    font-size: 1.2em;
    font-style: italic;
    color: #b35a9a;
}
/* ADD THIS TO THE BOTTOM OF YOUR style.css FILE */

#play-music-prompt {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0d9de;
    text-align: center;
}

#play-music-prompt button {
    background: none;
    border: 1px solid #d15c8b;
    color: #d15c8b;
    width: auto;
    box-shadow: none;
    padding: 12px 25px;
}
#play-music-prompt button:hover {
    background: #d15c8b;
    color: white;
}

/* --- Intro Screen Styles --- */
#intro-screen {
    /* Center the intro content on the page */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh; /* Make it take up the full screen height */
    padding: 20px;
}

#intro-screen h1 {
    font-size: 2.5em; /* Make the title a bit bigger */
}

#intro-screen p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

#reveal-btn {
    background: #d15c8b;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-family: 'Poppins', sans-serif;
    border-radius: 50px; /* Make it a pill shape */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#reveal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
/* ADD THESE STYLES TO THE BOTTOM OF YOUR style.css FILE */

/* --- Timer Page Styles --- */
#countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    text-align: center;
}

.time-block {
    background-color: #fdf6f8;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e0d9de;
}

.time-block span {
    font-size: 2.5em;
    font-weight: 700;
    color: #d15c8b;
    display: block;
    line-height: 1;
}

.time-block div {
    font-size: 0.8em;
    text-transform: uppercase;
    color: #443c41;
    letter-spacing: 1px;
}
/* --- Responsive Styles for Mobile --- */
/* This media query targets screens 768px or narrower (like tablets and phones) */
@media (max-width: 768px) {

    /* Make the main container less padded on the sides */
    .container {
        padding: 30px 20px;
        width: 90%; /* Keep it wide but with less padding */
    }

    /* Reduce the size of the main heading */
    h1 {
        font-size: 1.6em; /* Was 2em */
        line-height: 1.2;
    }
    
    /* Adjust the countdown container and its elements */
    #countdown-container {
        gap: 10px; /* Reduce space between blocks */
        /* flex-wrap: wrap; Optional: allows blocks to wrap to the next line if needed */
    }

    .time-block {
        padding: 10px; /* Reduce padding inside each time block */
        border-radius: 8px;
    }

    /* This is the most important part: shrink the numbers */
    .time-block span {
        font-size: 1.8em; /* Was 2.5em, a significant reduction */
    }

    /* Slightly adjust the label text size if needed */
    .time-block div {
        font-size: 0.7em;
        letter-spacing: 0.5px;
    }
}

/* A more aggressive media query for very narrow screens (like iPhone SE) */
@media (max-width: 380px) {
    h1 {
        font-size: 1.4em;
    }
    #countdown-container {
        gap: 5px;
    }
    .time-block span {
        font-size: 1.5em;
    }
    .time-block {
        padding: 10px 8px;
    }
}