/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

body {
    background-color: #f0f8ff;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    text-align: center;
}

h1 {
    color: #ff6b6b;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Game Container */
.game-container {
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Game Visuals */
.game-visuals {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

/* Hangman Drawing */
.hangman-drawing {
    margin-bottom: 10px;
}

.hangman-drawing img {
    height: 200px;
    max-width: 100%;
}

/* Word Emoji */
.word-emoji {
    font-size: 80px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    transition: all 0.5s;
}

/* Word Display */
.word-display {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.letter-box {
    width: 50px;
    height: 50px;
    border-bottom: 4px solid #4a90e2;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

/* Message */
.message {
    font-size: 1.5rem;
    margin: 20px 0;
    min-height: 60px;
    color: #333;
}

.success {
    color: #28a745;
}

.error {
    color: #dc3545;
}

/* Typed Letters */
.typed-letters {
    margin: 20px 0;
    text-align: center;
}

.typed-letters h3 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.letters-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    margin: 0 auto;
    max-width: 80%;
}

.typed-letter {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    margin: 0 5px;
}

.typed-letter.correct {
    background-color: #28a745;
}

.typed-letter.incorrect {
    background-color: #dc3545;
}

/* Game Instructions */
.game-instructions {
    margin: 15px 0;
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

/* New Game Button */
.new-game-btn {
    background-color: #ff9f43;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
    margin-bottom: 20px;
    display: block;
    width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.new-game-btn:hover {
    background-color: #f39c12;
    transform: scale(1.05);
}

/* Animation for correct guess */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.bounce {
    animation: bounce 1s;
}
