

body {
    margin: 0px;
    padding: 0;
    background-color: rgb(0, 50, 90);
    color: rgb(245, 244, 244);
    font-family: 'Helvetica';
}

header {
    display: flex;
    justify-content: center;
    background-color: rgb(0, 30, 70);
    width: 100%;
    box-sizing: border-box;
}

#logo {
    width: 300px;
    height: auto;
}

h1 {
    margin: 11px;
    text-align: center;
    font-size: x-large;
    /*color:rgb(200, 200, 200);*/
    color: rgb(30, 125, 200);
    font-family: monospace;
    font-weight: 100;
}

#barra_escudos {
    display:flex;
    justify-content: space-around;
    background-color: rgb(0, 30, 70);
    padding: 10px;
}
.escudos {
    width: 40px;
    height: 40px;
    filter: drop-shadow(2px 3px 3px rgb(20, 0, 0))
}


/* TABLAS */

.tablas_contenedor {
    margin-top: 150px;
    display:flex;
    justify-content: space-around;
}
/* tabla genérica */
.tabla {
    width: 240px;
    height: 350px;
    background-color: rgb(0, 30, 70);
    border-radius: 25px;
    display:grid;
    grid-template-rows: 50px 100px 100px 100px;
    box-shadow:5px 5px 5px rgb(0, 10, 40);
}
.tabla:hover {
    background-color: rgb(10, 40, 50);
}


#titulo_tabla {
    display:flex;
    justify-content: center;
    align-items: center;
    color: rgb(200, 200, 200);
    background-color: rgb(0, 30, 70);
    border-radius: 25px 25px 0px 0px;
    font-size: 18px;
    text-align: center;
    /*box-shadow: -2px 3px 5px rgba(0, 0, 0, 0.5);*/
}


/* BORDE INTERNOS DE LAS TABLAS */
.bordes_internos {
    border-bottom: 3px solid rgb(0, 50, 90);
}
.celdas_internas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
}

/* COLUMNAS DEL GRID DE LA PRIMER FILA DE LA PRIMER COLUMNA*/
.numero_primer_fila {
    color: rgb(0, 50, 90);
    font-size: 75px;
    align-self: center;
    font-family:'Roboto';
}

/* IMAGEN DE LAS FILAS */
.imagen {
    display: flex;
    align-items: center;
    justify-content: center;
}
.imagen_escudo {
    width: 80%;
    height: auto;
    justify-content: center;
    align-items: center;
    /*box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);*/
    filter: drop-shadow(2px 3px 6px rgb(20, 0, 0))
}
/* IMAFEN DE LA TABLA FIXTURE */
.imagen_fixture {
    display: flex;
    justify-content: center;
    align-items: center;
}
.imagen_escudo_fixture {
    width: 70%;
    height: auto;
    filter: drop-shadow(2px 3px 6px rgb(12, 0, 0))
}

.vs {
    color: rgb(0, 50, 90);
    font-size: 70px;
    text-align: center;
    align-self: center;
    font-family:'Roboto';
}

/************** TABLA RESULTADOS ***************/

.tabla_resultados {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
}

.titulo_tabla_resultado {
    grid-column: 2 / span 2;
    justify-self: center;
    align-self: center;
}
.partidos {
    width: 240px;
    height: 80px;
    background-color: rgb(0, 30, 70);
    justify-self: center;
    align-self: center;
    border-radius: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
}

.partidos:hover {
    width: 250px;
}


.partido1_fecha_anterior {
    grid-column: 1;
    grid-row: 2;
}
.partido2_fecha_anterior {
    grid-column: 2;
    grid-row: 2;
}
.partido3_fecha_anterior {
    grid-column: 3;
    grid-row: 2;
}
.partido4_fecha_anterior {
    grid-column: 4;
    grid-row: 2;
}
.partido5_fecha_anterior {
    grid-column: 1;
    grid-row: 3;
}
.partido6_fecha_anterior {
    grid-column: 2;
    grid-row: 3;
}
.partido7_fecha_anterior {
    grid-column: 3;
    grid-row: 3;
}
.partido8_fecha_anterior {
    grid-column: 4;
    grid-row: 3;
}
.escudo_fecha {
    width: 70%;
    height: auto;
    filter: drop-shadow(2px 3px 6px rgb(0, 12, 1));
    justify-self: center;
    align-self: center;
}
.resultado {
    font-size: 25px;
    justify-self: center;
    align-self: center;
}


/*************** TABLA FECHA ACTUAL **************/
.tabla_fecha_actual {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
}
.titulo_tabla_fecha_actual {
    grid-column: 2 / span 2;
    justify-self: center;
    align-self: center;
}
.partido1_fecha_actual {
    grid-column: 1;
    grid-row: 2;
}
.partido2_fecha_actual {
    grid-column: 2;
    grid-row: 2;
}
.partido3_fecha_actual {
    grid-column: 3;
    grid-row: 2;
}
.partido4_fecha_actual {
    grid-column: 4;
    grid-row: 2;
}
.partido5_fecha_actual {
    grid-column: 1;
    grid-row: 3;
}
.partido6_fecha_actual {
    grid-column: 2;
    grid-row: 3;
}
.partido7_fecha_actual {
    grid-column: 3;
    grid-row: 3;
}
.partido8_fecha_actual {
    grid-column: 4;
    grid-row: 3;
}





/************* COMPARAR DOS EQUIPOS *************/

#uno {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 100px;
}
/*#uno {
    grid-column: 2;
    justify-self: center;
    align-self: center;
}*/
/* TÍTULO PRINCIPAL COMPARAR EQUIPOS */
#titulo-compara-equipos {
    grid-column: 2/span 2;
    grid-row: 2;
    justify-self: center;
    align-self: end;
    /*color: rgb(200, 200, 200);*/
    color: rgb(30, 125, 200);
    font-size: 20px;
    font-family: monospace;
}
/* Titulo de los menús desplegables */
#local {
    grid-column: 2;
    grid-row: 3;
    justify-self: center;
    align-self: end;
    color: rgb(30, 125, 200);
    font-family: monospace;
    font-size: 20px;
    text-align: center;
}
#visitante {
    grid-column: 3;
    grid-row: 3;
    justify-self: center;
    align-self: end;
    color: rgb(30, 125, 200);
    font-family: monospace;
    font-size: 20px;
    text-align: center;
}

/* EQUIPO LOCAL */
.custom-dropdown {
    grid-column: 2;
    grid-row: 4;
    justify-self: center;
    align-self: center;
}
  
.dropdown-button {
    padding: 5px;
    cursor: pointer;
    border: 0px;
    border-radius: 20px;
    background-color: rgb(0, 30, 70);
}
  
  .dropdown-button img {
    width: 50px;
    height: 50px;
  }
  
  .dropdown-list {
    position: absolute;
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    border-radius: 20px;
    background-color: rgb(0, 30, 70);
    z-index: 1;
    box-shadow: 10px 30px 60px rgb(0 30 30);
  }
  
  .dropdown-list li {
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
  }
  .dropdown-list img {
    width: 50px;
    height: 50px;
  }
  
  /* Mostrar la lista cuando se haga clic en el botón */
  .custom-dropdown.active .dropdown-list {
    /*display: block;*/
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
  

  /* PARA EL VISITANTE */
  .custom-dropdown-visitante {
    grid-column: 3;
    grid-row: 4;
    justify-self: center;
    align-self: center;
  }
  
  .dropdown-button-visitante {
    padding: 5px;
    cursor: pointer;
    border: 0px;
    border-radius: 20px;
    background-color: rgb(0, 30, 70);

  }
  
  .dropdown-button-visitante img {
    width: 50px;
    height: 50px;
  }
  
  .dropdown-list-visitante {
    position: absolute;
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    border-radius: 20px;
    background-color: rgb(0, 30, 70);
    z-index: 1;
    box-shadow: 10px 30px 60px rgb(0 30 30);
  }
  
  .dropdown-list-visitante li {
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
  }
  .dropdown-list-visitante img {
    width: 50px;
    height: 50px;
  }
  
  /* Mostrar la lista cuando se haga clic en el botón */
  .custom-dropdown-visitante.active .dropdown-list-visitante {
    /*display: block;*/
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
  /* BOTÓN COMPARAR */
#comparar-button{
    grid-column: 2 / span 2;
    grid-row: 5;
    justify-self: center;
    align-self: center;
    width: 100px;
    height: 40px;
    border-radius: 20px;
    border: none;
    background-color: rgb(200, 200, 200);
}
#comparar-button:hover {
    background-color: rgb(150, 150, 150);
}




/* GRILLA */

#grilla {
  display: grid;
  /*grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));*/
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 300px 450px 450px;
  gap: 16px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  #grilla {
    gap: 7px;
    width: 98%;
  }
}


/* TARJETAS */

#grafica-dona {
    width: 100%;
    height: 300px;
    background: linear-gradient(
    140deg,
    rgb(0, 30, 70) 30%,
    rgb(30, 60, 100)
  );
    color: rgb(30, 125, 200);
    border-radius: 5px;
    font-family: monospace;
    font-size: x-large;
    font-weight: 100;
    text-align: center;
    margin: 0;
    box-shadow: 0px 16px 20px rgb(0, 10, 40);
    grid-column: 1/4;
    grid-row: 1;
}

#grafica-frecuencia-resultados {
    width: 100%;
    height: 450px;
    background: linear-gradient(
    140deg,
    rgb(0, 30, 70) 30%,
    rgb(30, 60, 100)
  );
    color: rgb(30, 125, 200);
    border-radius: 5px;
    font-family: monospace;
    font-size: x-large;
    font-weight: 100;
    text-align: center;
    margin: 0;
    box-shadow: 0px 16px 20px rgb(0, 10, 40);
    grid-column: 3/6;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}


.tarjetas {
    width: 100%;
    height: 140px;
    /*background-color: rgb(0, 30, 70);*/
    background: linear-gradient(
    140deg,
    rgb(0, 30, 70) 30%,
    rgb(30, 60, 100)
  );
    color: rgb(30, 125, 200);
    border-radius: 5px;
    font-family: monospace;
    font-size: x-large;
    font-weight: 100;
    text-align: center;
    margin: 0;
    box-shadow: 0px 16px 20px rgb(0, 10, 40);
}

h3 {
    margin: 10px 0px 0px 0px;
    /* font-size: x-large; */
    font-size: clamp(1rem, 3vw, 1.5rem);
}

.numeros {
    /*text-align: center;*/
    margin: 5px 0px 5px 0px;
    /* font-size: 80px; */
    font-size: clamp(3.125rem, 5vw + 2rem, 5rem);
    font-weight: 100;
}

/* ORDEN DE LAS TARJETAS EN LA GRILLA */
.cont-tarjetas {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#primeras-2-tarjetas {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    grid-column: 4/6;
    grid-row: 1;
}
@media (max-width: 768px) {
  #titulo-valor-mercado {
    margin-top: 0;
    margin-bottom: 13px;
  }
}
#numeros-tarjeta2 {
    /* font-size: xxx-large; */
    font-size: clamp(1rem, 6vw, 2.5rem);
    margin: 10px;
}
@media (max-width: 768px) {
  #numeros-tarjeta2 {
    /* margin-top: 0; */
    margin: 0;
  }
}
#unidad-euro {
    font-size: clamp(0.8rem, 3vw, 1.5rem);
}
a {
  color: rgb(150, 150, 150);
  /* text-decoration: none; */
  /* font-size: 16px; */
  font-size: clamp(0.5625rem, 1.5vw, 1rem);
}

#segundas-2-tarjetas {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    grid-column: 1/3;
    grid-row: 2;
}
#promedio-goles-total {
    grid-column: 1/3;
    grid-row: 2;
}


#grafica-apertura {
    width: 100%;
    height: 450px;
    background: linear-gradient(
    140deg,
    rgb(0, 30, 70) 30%,
    rgb(30, 60, 100)
  );
    color: rgb(30, 125, 200);
    border-radius: 5px;
    font-family: monospace;
    font-size: x-large;
    font-weight: 100;
    text-align: center;
    margin: 0;
    box-shadow: 0px 16px 20px rgb(0, 10, 40);
    grid-column: 1/6;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}






/* Para pantallas de celular */
@media (max-width: 670px) {
    #barra_escudos {
        flex-wrap: wrap;
        justify-content: space-evenly;
    }
    canvas {
        width: 100px;   /* ocupa todo el ancho del contenedor */
        height: auto;  /* mantiene la proporción */
    }
}





/* GRÁFICAS */

.grafica {
    border-radius: 20px;
    box-shadow:5px 5px 5px rgb(0, 10, 40),
    -5px -5px 5px rgb(0, 40, 70);
}


/* TABLA GOLES A FAVOR */
.gol_fav {
    margin: 100px;
    width: 250px;
    background-color: rgb(0, 30, 70);
    border-radius: 20px;
    grid-template-rows: 50px 100px 100px 100px;
    box-shadow:5px 5px 5px rgb(0, 10, 40),
    -5px -3px 5px rgb(0, 20, 50);
}
.titulo_tabla_secundaria {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(200, 200, 200);
    border-bottom: 1px solid rgb(0, 50, 90);
}
.columnas {
    height: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    align-items: center;
    text-align: center;
    color: rgb(200, 200, 200);
    border-bottom: 1px solid rgb(0, 50, 90);
}
.fila_goles_favor {
    padding: 0px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    align-items: center;
    border-bottom: 1px solid rgb(0, 50, 90);
}
.imagen_escudo_gol_fav img {
    width: 40px;
    height: auto;
}
.num_goles {
    font-size: xx-large;
    color: rgb(200, 200, 200);
}
.num_pos {
    font-size: x-large;
    font-style: italic;
    color: rgb(0, 50, 90);
}
.final_tabla { /* para que no se vea el borde del ultimo elemento de la lista */
    height: 1px;
    /*border-bottom: 1px solid rgb(0, 50, 90);*/
}











