/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #2E7D32;
    color: white;
    min-width: 850px;
}

#tablero {
    border-collapse: collapse;
    background-color: #4CAF50;
    border: 5px solid #1B5E20;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 20px auto;
}

td {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    vertical-align: middle;
    position: relative;
    transition: background 0.3s;
}

.highlight-left,
.highlight-right,
.centro {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Estilos de jugadores */
.jugador {
    font-size: 1.2em;
    cursor: pointer;
    /* Asegúrate de que el contenido se centre vertical y horizontalmente */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Estilos para los iconos de Font Awesome */
.local {
    color: red;
}

.visitante {
    color: blue;
}

.jugador.seleccionado {
    color: #FFCC00 !important;
    /* Amarillo */
    filter: drop-shadow(0 0 5px yellow);
}

/* Estilos del balón */
.balon {
    font-size: 1.2em;
    cursor: pointer;
}

.resaltar-balon {
    filter: brightness(1.2);
}

/* Estilos de porterías */
.porteria-local {
    background: linear-gradient(45deg, rgba(0, 100, 255, 0.2), rgba(0, 100, 255, 0.4)) !important;
    border: 3px dashed #0044ff !important;
}

.porteria-visitante {
    background: linear-gradient(45deg, rgba(255, 50, 0, 0.2), rgba(255, 50, 0, 0.4)) !important;
    border: 3px dashed #ff3300 !important;
}

.porteria-local:hover,
.porteria-visitante:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Estilos de zonas interactivas */
.movimiento-permitido {
    background: rgba(0, 255, 0, 0.3) !important;
    cursor: pointer;
}

.lanzamiento-permitido {
    background: rgba(255, 255, 0, 0.3) !important;
    cursor: crosshair;
}

.celda-disponible {
    background-color: #8BC34A !important;
    cursor: pointer;
}

/* Estilos de marcadores */
.marcador {
    position: fixed;
    width: 200px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5em;
    transition: opacity 0.3s;
}

#marcador-local {
    top: 20px;
    left: 20px;
}

#marcador-visitante {
    top: 20px;
    right: 20px;
}

.marcador.activo {
    border: 3px solid #ffcc00;
    background: #1a1a1a;
}

.marcador:not(.activo) {
    opacity: 0.3;
}

/* Estilos de componentes */
#dado {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 1.5em;
    padding: 15px;
    background: #FFC107;
    color: #000;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#mensaje {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    max-width: 300px;
    font-size: 1.1em;
    line-height: 1.5;
}

.mensaje-lanzamiento {
    padding: 15px;
    margin-top: 20px;
    background: #2c3e50;
    color: white;
    border-radius: 5px;
    text-align: center;
    display: none;
}

/* Estilos de efectos */
.jugador-seleccionado {
    background-color: #FFEB3B !important;
    border: 2px solid #FBC02D;
}

.balon-seleccionado {
    background-color: #FFF59D !important;
    border: 2px solid #FFD54F;
}
