#surprise-holiday-game {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    background-color: #e6f7ff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#surprise-holiday-game h2 {
    color: #0077be;
    margin-bottom: 20px;
}

#surprise-holiday-game #guess-input {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin-bottom: 20px;
}

#surprise-holiday-game .letter-input {
    width: 40px !important;
    height: 40px !important;
    text-align: center;
    margin: 5px;
    font-size: 24px;
    text-transform: uppercase;
    border: 2px solid #0077be;
    border-radius: 5px;
    display: inline-block !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

#surprise-holiday-game #submit-guess,
#surprise-holiday-game #request-clue {
    width: 100% !important;
    max-width: 300px !important;
    padding: 10px !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    margin: 20px auto !important;
    font-size: 18px !important;
    border-radius: 5px !important;
    transition: background-color 0.3s ease;
    display: block !important;
    text-align: center !important;
    line-height: normal !important;
    height: auto !important;
}

#surprise-holiday-game #submit-guess {
    background-color: #0077be !important;
}

#surprise-holiday-game #submit-guess:hover {
    background-color: #005f9e !important;
}

#surprise-holiday-game #request-clue {
    background-color: #4CAF50 !important;
}

#surprise-holiday-game #request-clue:hover {
    background-color: #45a049 !important;
}

#surprise-holiday-game #clues {
    margin-top: 20px;
    font-style: italic;
    color: #666;
}

#surprise-holiday-game .guess-row {
    margin-bottom: 10px;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

#surprise-holiday-game .letter {
    display: inline-block !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    text-align: center;
    border: 2px solid #ccc;
    margin: 5px;
    font-weight: bold;
    font-size: 24px;
    border-radius: 5px;
    box-sizing: border-box !important;
}

#surprise-holiday-game .correct {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

#surprise-holiday-game .present {
    background-color: #FFC107;
    border-color: #FFC107;
}

#surprise-holiday-game .absent {
    background-color: #f1f1f1;
    border-color: #ccc;
}

#surprise-holiday-game .game-result {
    font-weight: bold;
    margin-top: 20px;
    font-size: 18px;
    padding: 10px;
    border-radius: 5px;
    background-color: #fff176;
    color: #333;
}

#surprise-holiday-game .reveal-btn {
    width: 100% !important;
    max-width: 300px !important;
    padding: 10px !important;
    background-color: #ff9800 !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    margin: 20px auto !important;
    font-size: 18px !important;
    border-radius: 5px !important;
    transition: background-color 0.3s ease;
    display: block !important;
    text-align: center !important;
    line-height: normal !important;
    height: auto !important;
}

#surprise-holiday-game .reveal-btn:hover {
    background-color: #f57c00 !important;
}

#surprise-holiday-game .reveal-row {
    margin-top: 20px;
}

#surprise-holiday-game .reveal-row .letter {
    animation: revealLetter 0.5s ease forwards;
    opacity: 0;
    transform: rotateX(90deg);
}

@keyframes revealLetter {
    to {
        opacity: 1;
        transform: rotateX(0);
    }
}

#surprise-holiday-game .reveal-row .letter {
    animation-delay: calc(0.1s * var(--index));
}

@media (max-width: 600px) {
    #surprise-holiday-game .letter-input,
    #surprise-holiday-game .letter {
        width: 30px !important;
        height: 30px !important;
        font-size: 18px !important;
        line-height: 30px !important;
    }
}

@media (max-width: 400px) {
    #surprise-holiday-game .letter-input,
    #surprise-holiday-game .letter {
        width: 25px !important;
        height: 25px !important;
        font-size: 14px !important;
        line-height: 25px !important;
    }
}