/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
  
/* Estilo general del body */
body {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    background-color: #0a1929;
    color: #fff;
    padding: 20px;
    background-image: linear-gradient(to bottom, #0a1929, #1a2a3a);
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

/* Importar fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto:wght@400;700&display=swap');
  
/* Contenedor del cronómetro y comentarios */
.cronometro-container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border: none;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    width: 100%;
}
  
#cronometro {
    font-family: 'Montserrat', sans-serif;
    font-size: 30em;  /* Puedes aumentar este valor, ej.: 40em o reducirlo */
    font-weight: 700;
    margin-bottom: 10px;
    color: #f7f9fa;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    display: inline-block;  /* Evita que se rompa en varias líneas */
    white-space: nowrap;    /* Fuerza que el contenido se muestre en una sola línea */
}
  
.cronometro-container button {
    padding: 12px 20px;
    margin: 8px;
    border: none;
    background: linear-gradient(135deg, #ff4d4d, #f9004d);
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 0, 77, 0.4);
}
  
.cronometro-container button:hover {
    background: linear-gradient(135deg, #f9004d, #ff4d4d);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(249, 0, 77, 0.5);
}
  
#comentarios {
    margin-top: 15px;
    font-size: 1.3em;
    color: #e0e0e0;
    font-style: italic;
}
  
/* Contenedor principal del marcador */
.scoreboard {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 30px;
    margin-bottom: 30px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.scoreboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff4d4d, #f9004d, #00c6ff);
}
  
/* Estilos para los controles */
.controls {
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
  
.controls h3 {
    margin-bottom: 12px;
    font-size: 1.3em;
    color: #00c6ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
  
.controls button {
    padding: 10px 18px;
    margin-right: 10px;
    border: none;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
}
  
.controls button:hover {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 114, 255, 0.4);
}

.controls select, .controls input {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 300px;
}

.controls select option {
    background-color: #1a2a3a;
    color: #fff;
}
  
/* Contenedor de equipos y período */
.team-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}
  
.team {
    background: linear-gradient(135deg, #2b5876, #4e4376);
    padding: 25px;
    flex: 1;
    border: none;
    border-radius: 15px;
    min-width: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff4d4d, #f9004d);
}

.period {
    background: linear-gradient(135deg, #373B44, #4286f4);
    padding: 25px;
    flex: 0.5;
    border: none;
    border-radius: 15px;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.period::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
}
  
.team h2, .period h3 {
    margin-bottom: 15px;
    font-size: 1.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
  
/* Estilos para la visualización del marcador */
.score {
    font-size: 5.5em;
    font-weight: 700;
    margin: 20px 0;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px 20px;
    display: inline-block;
}

.fouls {
    font-size: 5.2em;
    margin: 10px 0;
    color: #daef20;
}

.team button, .period button {
    padding: 10px 18px;
    margin: 5px;
    border: none;
    background: linear-gradient(135deg, #ff4d4d, #f9004d);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 0, 77, 0.4);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.team button:hover, .period button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 7px 20px rgba(249, 0, 77, 0.5);
}
  
/* Inputs de texto */
input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #00c6ff;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
  
/* Estilos para la tabla (resultados y tabla de posiciones) */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
  
table, th, td {
    border: none;
}
  
th, td {
    padding: 15px;
    text-align: center;
}
  
th {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

tr:hover {
    background-color: rgba(0, 198, 255, 0.1);
}

td {
    color: #e0e0e0;
}
  
/* Contenedores para resultados y tabla de posiciones */
.resultados, .tabla {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 30px;
    border: none;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.resultados::before, .tabla::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
}

.resultados h2, .tabla h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 2em;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Botones en tablas */
#resultadosPartido button {
    padding: 8px 15px;
    margin: 3px;
    border: none;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

#resultadosPartido button:hover {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
}

/* Controles de Partido */
.partido-controls {
    background: linear-gradient(135deg, #373B44, #4286f4);
    padding: 20px;
    border: none;
    border-radius: 15px;
    margin-top: -15px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.partido-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
}

.partido-controls .controls {
    flex: 1;
    min-width: 250px;
    margin: 0 10px;
}

/* Animaciones y efectos adicionales */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#periodoActual {
    font-size: 5em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
    margin: 10px 0;
}
