body {
    font-family: Arial, sans-serif;
    background-color: #00274d;
    color: white;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    color: #ffcb05;
    font-size: 2em;
}

.scoreboard {
    background-color: #375a7f;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: inline-block;
    font-size: 1.2em;
    width: 100%;
    max-width: 500px;
}

.player-score {
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.active {
    background-color: green;
    color: #fff;
}

.board {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-gap: 5px;
    max-width: 100%;
    min-width: 500px;
    margin: 0 auto;
}

.cell {
    width: 60px;
    height: 0;
    padding-bottom: 100%; /* Hace que cada celda sea un cuadrado */
    background-color: #6c757d;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    position: relative;
}

.cell.hit {
    background-color: #2c3e50;
    background-image: url('../../../img/logo_pequeno.svg'); /* Cambia 'explosion.png' por la ruta de tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cell.miss {
    background-color: #2c3e50;
    background-image: url('../../../img/math_error.png'); /* Cambia 'water.png' por la ruta de tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.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.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    color: black;
    text-align: left;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Estilos para el modal de pregunta */
#question-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

#question-modal .modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    text-align: center;
}

#options-container button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#options-container button:hover {
    background-color: #2980b9;
}
.question-image {
    width: 100%;
    max-width: 700px;
    margin: 10px 0;
    display: block;
}

@media (max-width: 600px) {
    .board {
        grid-template-columns: repeat(5, 1fr); /* Cambia la cantidad de columnas si es necesario */
    }

    h1 {
        font-size: 1.5em;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .cell {
        width: 100%;
        height: 0;
        padding-bottom: 100%; /* Hace que cada celda sea un cuadrado */
        background-color: #6c757d;
        border: 1px solid #dee2e6;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: white;
        font-weight: bold;
        border-radius: 5px;
        transition: background-color 0.3s ease;
        position: relative;
    }
}
