/* Ocultar elementos */
.hidden {
    display: none !important;
}

body {
    font-family: Arial, sans-serif;
    font-size: 1.5em;
    background-color: #f4f7f6;
    color: #333;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    box-sizing: border-box;
}

.control-container {
    width: 95%;
    max-width: none;
    margin: auto;
    background: #fff;
    padding: 0px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

h2 {
    color: #34495e;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-top: 25px;
}

.input-grupo {
    margin-bottom: 20px;
}

.input-grupo label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-grupo input, .input-grupo select {
    width: 100%;
    padding: 0px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.5em;
    box-sizing: border-box;
}

.control-tiempo {
    text-align: center;
    margin-top: 30px;
}

.botones-control {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
    align-items: center;
    cursor: url('../img/cursorculle.cur'), auto;
}

.boton-iniciar {
    background-color: #e74c3c;
    padding: 15px 30px;
    font-size: 1.7em;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: url('../img/cursorculle.cur'), auto;
    transition: background-color 0.3s;
    flex: 1;
    height: 200px;
    min-width: 150px;
    box-sizing: border-box;
    display: flex; 
    align-items: center;
    justify-content: center;
}

.boton-iniciar:hover {
    background-color: #c0392b;
}

.boton-reiniciar,
.boton-reset {
    background-color: #555555;
    width: 200px;
    height: 80px;
    min-width: 150px;
    box-sizing: border-box;
    padding: 15px 30px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: url('../img/cursorculle.cur'), auto;
    transition: background-color 0.3s;
}

.boton-reiniciar {
    margin-left: 2em;
}

.boton-reiniciar:hover,
.boton-reset:hover {
    background-color: #333333;
}

.botones-ajuste {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.boton-ajuste {
    padding: 4px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: url('../img/cursorculle.cur'), auto;
    background-color: #3498db;
    transition: background-color 0.3s;
    width: 110px;
    flex: 0 1 auto;
    min-width: 60px;
}

.boton-ajuste:hover {
    background-color: #2980b9;
}

.control-goles {
    margin-top: 30px;
}

.goles-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.equipo-goles-control {
    text-align: center;
    width: 45%;
    flex: 1;
    min-width: 250px;
}

.equipo-goles-control h3 {
    font-size: 1em;
    color: #34495e;
}

.botones-goles {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.boton-gol {
    font-weight: bold;
    border: none;
    border-radius: 30%;
    cursor: url('../img/cursorculle.cur'), auto;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.boton-gol-local1 {
    color: #000;
    background-color: #45abff;
}

.boton-gol-local2 {
    color: #fff;
    background-color: #105a97;
}

.boton-gol-local1:hover {
    background-color: #208fe8;
}

.boton-gol-local2:hover {
    background-color: #0d4a7d;
}

.boton-gol-visit1 {
    color: #000;
    background-color: #ffa400;
}

.boton-gol-visit2 {
    color: #fff;
    background-color: #935d20;
}

.boton-gol-visit1:hover {
    background-color: #d7941a;
}

.boton-gol-visit2:hover {
    background-color: #7b4f1e;
}

.boton-gol-add {
    width: 200px;
    height: 200px;
    font-size: 4em;
}

.boton-gol-subtract {
    width: 60px;
    height: 60px;
    font-size: 2em;
}

.boton.activo,
.boton-ajuste.activo,
.boton-gol.activo {
    transform: scale(0.95);
    opacity: 0.8;
    transition: transform 0.1s, opacity 0.1s;
}

.deshabilitado {
    background-color: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

.deshabilitado:hover {
    background-color: #bdc3c7;
}

.control-periodo {
    text-align: center;
    margin-top: 30px;
}

.control-periodo input {
    font-size: 1.7em;
    padding: 8px;
    width: 100px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #ddd;
}

.control-columnas {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.columna-izquierda {
    flex: 0 0 35%;
    min-width: 250px;
}

.columna-derecha {
    flex: 1;
    min-width: 300px;
}

.nombre-equipo-input,
.escudo-equipo-select {
    width: 100%;
    max-width: 450px;
}

.equipo-goles-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 45%;
    flex: 1;
    min-width: 150px;
}

.botones-goles {
    display: flex;
    justify-content: center;
}

.goles-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.control-periodo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 800px) {
    .control-columnas {
        flex-direction: column;
        gap: 0;
    }
}

/* Estilos para el modal de confirmación */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
}

.modal-content h2 {
    font-size: 2em;
    color: #e74c3c;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.boton-modal {
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: url('../img/cursorculle.cur'), auto;
    transition: background-color 0.3s;
}

.confirm-yes {
    background-color: #2ecc71;
}

.confirm-yes:hover {
    background-color: #27ae60;
}

.confirm-no {
    background-color: #e74c3c;
}

.confirm-no:hover {
    background-color: #c0392b;
}

.boton-publica {
    background-color: #3498db;
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: url('../img/cursorculle.cur'), auto;
    transition: background-color 0.3s;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.boton-publica:hover {
    background-color: #2980b9;
}



.logo-boton-container {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 10px; 
    border-radius: 8px; 
    margin-top: 20px; 
}

.logo-boton-container img {
    max-width: 150px; 
    height: auto;
}

/* Estilos para el resumen del marcador minimalista en la consola de control */
#resumen-marcador-minimalista {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin: 20px 0;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#resumen-marcador-minimalista #resumen-tiempo {
    color: #e74c3c;
}

#resumen-marcador-minimalista #resumen-goles {
    color: #007bff;
}

#resumen-marcador-minimalista .separador {
    color: #888;
}

#tiempo-muerto-btn, #bocina-btn {
    background-color: #e74c3c;
    color: white; 
    font-size: 1em;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    width: 8em;
    height: 8em;
    cursor: url('../img/cursorculle.cur'), auto;
}

#bocina-btn {
    margin-left: 3em;
}

#tiempo-muerto-btn:hover, #bocina-btn:hover {
    background-color: #c0392b; 
}

#tiempo-muerto-btn.deshabilitado {
    background-color: #bdc3c7; 
    cursor: not-allowed;
    box-shadow: none;
}

.boton-iniciar {
    background-color: #e74c3c;
    transition: background-color 0.3s ease;
}

.boton-iniciar:hover {
    background-color: #c0392b;
}

.boton-iniciar.boton-corriendo {
    background-color: #2ecc71;
    color: #000;
}

.boton-iniciar.boton-corriendo:hover {
    background-color: #27ae60;
}

#atajos-teclado-leyenda {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #34495e;
    color: #f4f7f6;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
    z-index: 1000;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.tecla {
    background: #000066;
    padding: 3px 4px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

a.enlace1:link {
	color: #003366;
	text-decoration: none;
}
a.enlace1:visited {
	text-decoration: none;
	color: #003366;
}
a.enlace1:hover {
	text-decoration: none;
	background-color: #DDDDDD;
	color: #000;
}
a.enlace1:active {
	text-decoration: none;
	color: #003366;
}