/*Normalizar margenes*/
*{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/*remover estilo de links*/
a, a:visited{
    color: white;
    text-decoration: none;
}

body{
    /*background: rgb(208,108,167);
    background: linear-gradient(45deg, rgba(208,108,167,1) 0%, rgba(57,154,232,1) 70%, rgba(92,249,241,1) 100%); */
    background: #550065;  /* fallback for old browsers */
    font-family: 'Montserrat', sans-serif;
}

footer{
    background: #010816;
    display: flex;
    justify-content: center;
}

footer img{
    margin-left: 5px;
    height: 15px;
    width: 15px;
}

h2{
    border-bottom: 2px white groove;
    color: white;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

li, #tercer-puesto p,#final p{
    padding: 10px;
}

main{
    padding-top: 30px;
}

nav{
    background: #460065;
    box-shadow: -2px -2px 10px black;
    position: fixed;
    width: 100%;
}

nav, footer{
    color: white;
    padding: 10px 0px;
}

nav a{
    margin: 0;
    padding: 10px;
}

nav a:hover{
    background: white;
    color: black;
    transition: 0.3s;
}

section{
    padding: 15px;
}

ul{
    list-style-type: none;
}

.fecha{
    font-size: 12px;
}

.filas .grupo-fila, .filas li, .filas{
    background: rgb(218, 218, 218);
}

.filas .grupo-fila:nth-child(even), .filas li:nth-child(even){
    background: #fff;
}

.fondo-azul-oscuro{
    background: #020f2a;
}

.img-responsive{
    height: auto;
    max-width: 400px;
    width: 100%;
}

.grupos{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.grupo{
    border-radius: 10px;
    margin: 10px;
    padding-top: 5px;
    /*width: 30%;*/
}

.grupo-cabecera{
    /*background: #69bff8;*/
    background: #020f2a;  /* fallback for old browsers */
    border-radius: 6px 6px 0 0;
    color: white;
    text-align: center;
}

.grupo-cuerpo{
    color: rgb(29, 27, 27);
}

.grupo-fila{
    padding: 3px 10px 10px;
}


.centrar-contenido{
    display: flex;
    justify-content: center;
}

.en-fila{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.resultados{
    align-content: center;
}

.resultados p:nth-child(odd){
    font-weight: bold;
}
.resultado-ganador{
    background: #43a047;
    border-radius: 6px;
    color: white;
    font-weight: bolder;
    padding: 5px 7px;
    text-shadow: 1px 1px 2px black;
}
.titulo-principal{
    background: #550065;
}

#fase-grupos{
    background-image: linear-gradient( 90deg,  rgba(255,244,228,1) 7.1%, rgba(240,246,238,1) 67.4% );
    border-radius: 15px 15px 0px 0px;    
    box-shadow: 2px 2px 10px black;
    scroll-margin-top: 25px;
}

#fase-grupos h2{
    color: black;
    font-weight: bolder;
}

#top, #octavos, #cuartos{
    scroll-margin-top: 25px;
}

.ul-flex{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.ul-flex li{
    background: rgb(218, 218, 218);
    border-radius: 6px;
    margin: 5px;
    width: 45%;
}

/*Aqui empiezan los Media Queries*/
@media screen and (min-width: 400px) and (max-width: 768px){
    nav{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    main{
        padding-top: 90px;
    }

    .bandera-local img, .bandera-visitante img{
        width: 80%;
    }

    .grupo, .ul-flex li{
        max-width: 440px;
        width: 90%;
    }
    p{
        font-size: 14px;
    }

    .nombre-largo {
      width: 70px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    #top, #fase-grupos, #octavos, #cuartos{
        scroll-margin-top: 83px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1229px){
    .grupo, .ul-flex li{
        width: 45%;
    }
    p{
        font-size: 14px;
    }
    .nombre-largo {
      width: 70px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
}

@media screen and (min-width: 1230px){
    .grupo{
        width: 30%;
    }
    .nombre-largo {
      width: 80px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
}