body {
    font-family: 'Georgia', serif;
    background-color: #0d1a26; /* Dark blue for a winter night sky */
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 10px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide scrollbars from canvas */
}

#snow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place canvas behind all content */
}

.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 10px;
    z-index: 1; /* Ensure content is above canvas */
}

.hidden {
    display: none;
}

#question-container, #result-container, #cooldown-container { /* Added #cooldown-container here */
    margin-top: 15px;
    padding: 20px;
    border: 2px solid #ffd700; /* Gold border */
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    color: #333;
}

input[type="text"] {
    padding: 10px;
    font-size: 16px;
    width: 80%;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #b30000; /* Festive red for buttons */
    color: #fff; /* White text on buttons */
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

button:hover {
    background-color: #800000; /* Darker red on hover */
}

#letter-reveal {
    font-size: 80px;
    font-weight: bold;
    color: #006400; /* Dark green for revealed letter */
    margin-bottom: 15px;
    text-shadow: 2px 2px #ffd700;
}

#discovered-letters {
    margin-top: 15px;
    font-size: 18px;
    color: #eee; /* Changed for better contrast */
}

#final-destination {
    color: #b30000; /* Festive red for final destination */
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 15px;
    text-shadow: 1px 1px #ffd700;
}

#final-letters .revealed-letter {
    color: #006400;
    text-shadow: 1px 1px #ffd700;
}

.revealed-letter {
    color: #006400; /* Dark green for individual letters */
    font-weight: bold;
    margin: 0 3px;
}

#cooldown-message {
    font-size: 1.2em;
    font-weight: bold;
    color: #b30000; /* Red color for warning message */
}


footer {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8em;
    z-index: 1; /* Ensure footer is above canvas */
}

/* Media Query for Mobile Devices */
@media (max-width: 600px) {
    body {
        padding: 5px;
    }

    .container {
        padding: 5px;
    }

    #question-container, #result-container, #cooldown-container {
        padding: 15px;
    }

    input[type="text"] {
        width: 90%;
        margin-right: 0;
    }

    #letter-reveal {
        font-size: 60px;
    }

    #final-destination {
        font-size: 1.5em;
    }

    #cooldown-message {
        font-size: 1em;
    }

    #discovered-letters {
        max-height: 30vh; /* Allow scrolling for long lists on mobile */
        overflow-y: auto;
    }
}
