:root {
    --impar: #ffce9e;
    --par: #d18b47;
}

body {
    background-color: aliceblue;
    font-family: Arial, sans-serif;
}

table, td {
    border: 1px solid black;
    border-collapse: collapse;
    width: 30rem;
    height: 3rem;
}

/* Colores del tablero */
tr:nth-child(even) td:nth-child(even),
tr:nth-child(odd) td:nth-child(odd) {
    background-color: var(--impar);
}

tr:nth-child(odd) td:nth-child(even),
tr:nth-child(even) td:nth-child(odd) {
    background-color: var(--par);
}

#div-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
}

#div-tabla {
    width: 65%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#div-colores {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#div-colorTablero, #div-lineaAtaque {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#div-soluciones {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#flex-contador {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

#contador, #puestos {
    font-size: 1.5rem;
}

button, select, input[type="color"] {
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

#titulo-soluciones, #texto-colores {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.texto-color {
    margin: 0 0.5rem;
}

@media screen and (max-width: 800px) {
    #div-flex {
        flex-direction: column;
    }
    #div-tabla, #div-colores {
        width: 100%;
    }
}
.celda-definitiva {
    pointer-events: none;
}

.celda-bloqueada {
    pointer-events: none;
    transition: background-color 0.3s ease;
}