body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

.container {
    text-align: center;
}

h1 {
    color: #333;
}

.figure-part {
    display: none;
}

.word {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.letter {
    border-bottom: 3px solid #2c3e50;
    font-size: 30px;
    margin: 0 3px;
    height: 40px;
    width: 25px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.keyboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.key {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.key:hover {
    background-color: #2980b9;
}

.key.disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.message {
    font-size: 24px;
    margin-top: 20px;
    font-weight: bold;
}

.timer {
    font-size: 20px;
    margin-top: 10px;
}

.level {
    font-size: 18px;
    margin-top: 10px;
}

.next-level {
    background-color: #2ecc71;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: none;
}

.next-level:hover {
    background-color: #27ae60;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.5s;
}

.play-again {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: none;
}

.play-again:hover {
    background-color: #c0392b;
}

/* Asegúrate de que las partes del muñeco sean visibles cuando se muestren */
.figure-part {
    display: none;
    stroke: #2c3e50;
    stroke-width: 4;
    fill: none;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f0f0f0;
}

#game-container {
    text-align: center;
}

.figure-container {
    fill: transparent;
    stroke: #000;
    stroke-width: 4px;
    stroke-linecap: round;
}

.figure-part {
    display: none;
}

#word {
    letter-spacing: 3px;
    margin: 20px 0;
    font-size: 24px;
}

#keyboard {
    margin: 20px 0;
}

.key {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 5px 10px;
    margin: 2px;
    cursor: pointer;
    font-size: 18px;
}

.key.disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.game-button {
    background-color: #2ecc71;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    display: none;
}

.game-button:hover {
    background-color: #27ae60;
}

#score {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
}