:root {
    --color-claro: #fece9e;
    --color-oscuro: #d18b47;
    --color-ataque: #ff0000;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Estilos para la columna del tablero */
.board-column {
    flex: 0 0 auto;
}

/* Estilos para la columna de controles */
.controls-column {
    flex: 1;
    max-width: 333px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Estilos del tablero */
#tablero {
    border: 2px solid #333;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#tablero td {
    width: 65px;
    height: 60px;
    border: 1px solid #333;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color 0.1s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

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

td.bloqueada {
    cursor: not-allowed;
}

.control-group {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.control-group-table {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    border-radius: 8px;
    padding: 5px;
}

.board-column h1 {
    margin: 0;
    color: #000000;
    font-size: 2.4em;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-bottom: 10px;
}

.control-group h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

button {
    background-color: #ff6060;
    color: white;
    border: none;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    border: 1px solid #000000;
    color: #ffffff;
}

button:hover {
    background-color: #f50000; 
    transform: scale(1.02);
}

input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 10px;
}

input[type="color"]:focus {
    outline: none;
    border-color: #58a9ff; 
}

input[type="color"]:hover {
    outline: none;
    border-color: #58a9ff;
}

label {
    font-weight: bold;
    margin-right: 10px;
}

#imgReinas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#imgReinas button {
    padding: 5px;
    background: none;
    border: 1px solid #ddd;
}

#imgReinas button:hover {
    background-color: #f0f0f0;
}

#imgReinas img {
    display: block;
}

.color-input-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}