body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2c3e50;
    color: #ecf0f1;
    margin: 0;
    padding: 20px;
}

h1 {
    color: #f1c40f;
}

.controls, .game-info, .voice-controls {
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.buttons-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 800px;
    margin: 20px auto;
}

.game-button {
    background-color: #34495e;
    color: white;
    padding: 20px;
    border: 2px solid #7f8c8d;
    border-radius: 8px;
    font-size: 1.2em;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    user-select: none;
}

.game-button:hover {
    transform: scale(1.05);
}

.game-button.highlight {
    background-color: #f39c12;
    border-color: #e67e22;
}

.game-button.correct {
    background-color: #2ecc71;
    border-color: #27ae60;
}

.game-button.incorrect {
    background-color: #e74c3c;
    border-color: #c0392b;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.ranking-container {
    margin-top: 30px;
    background-color: #34495e;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.ranking-container h2 {
    color: #f1c40f;
    text-align: center;
}

#ranking-list {
    list-style: none;
    padding: 0;
}

#ranking-list li {
    background-color: #49698d;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 1.1em;
}

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #34495e;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 10px;
    color: white;
}

#playerNameInput {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #7f8c8d;
    background-color: #2c3e50;
    color: white;
}

#saveScoreButton {
    background-color: #2ecc71;
}

.message-area {
    min-height: 20px;
}