html {
    scroll-behavior: smooth;
}

/*===================== MAIN =====================*/
main {
    display: flexbox;
    height: auto;
    width: 90%;
    align-items: center;
    justify-content: center;
    margin-left: 5%;
}

.arriba {
    display:inline;
    width: 96%;
    background-color:transparent;
    padding: 5px;
    /* Agrega aquí tu código para la parte izquierda */
}

.abajo {
    display: inline;
    width: 70%;
    background-color: transparent;
    padding: 20px;
    font-size: 14px;
    /* Agrega aquí tu código para la parte derecha */
}

.tablaArriba {
    display: grid;
    /* 5 columnas de igual ancho */
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background-color: #d1d5db;
    border: 2px solid #9ca3af;
    border-radius: 8px;
    overflow: hidden;
}


.tabla {
    display: grid;
    /* 5 columnas de igual ancho */
    grid-template-columns: repeat(20, 1fr);
    gap: 1px;
    background-color: #d1d5db;
    border: 2px solid #9ca3af;
    border-radius: 8px;
    overflow: hidden;
}

.celda {
    background-color: #ffffff;
    padding: 10px 2px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #039;
    transition: background-color 0.2s;
}

.celda:hover {
    background-color: #e0e7ff;
    color: #1e40af;
}

.celdaActiva {
    background-color: #039;
    padding: 10px 2px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #FC0;
}


/*===================== LINKS =====================*/
.chooseYear {
    color: #039;
    text-decoration: none;
}


/*===================== TABLA RANKING =====================*/
.tablaRank {
    display: grid;
    /* 4 columnas de igual ancho */
    grid-template-columns: 70px 120px auto 100px;
    gap: 1px;
    background-color: #d1d5db;
    border: 1px solid #9ca3af;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.tablaRankSingles {
    display: grid;
    /* 5 columnas de igual ancho */
    grid-template-columns: 70px 120px auto 70px;
    gap: 1px;
    background-color: #d1d5db;
    border: 2px solid #9ca3af;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.celdaHD {
    background-color: #039;
}

.puesto {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.puestoHD {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #039; 
    color: #FC0;
}

.albumHD {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #039; 
    color: #FC0;
}

.album-cover {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.album-cover:hover {
    transform: scale(1.5);
}

/* Información del álbum */
.album-info {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    height: auto;
    padding-left: 10px;
}

.album-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #003399;
    margin-bottom: 5px;
}

.album-title br {
    display: none;
}


.album-artist {
    font-size: 1.2rem;
    color: #433f3f;
    font-style: italic;
}

.album-artist br {
    display: none;
}

.semana {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.semanaHD {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #039; 
    color: #FC0;
}


audio {
    height: 20%;
    margin-left: 45%;
}

/* BOTON PLAY/PAUSE 
#botonPlayPause {
  background-color: #039;
  color: #FC0;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

#botonPlayPause:hover {
  background-color: #FC0;
  color: #039;
}
*/

.fuentes {
    width: 100%;
    padding: 10px;
    font-size: 1.5rem;
    text-align: left;
    background-color: #039;
    color: #FC0;
    margin-bottom: 10px;
}
 
@media screen and (max-width: 960px) {
    .album-title {
        font-size: 1.1rem;
    }
    
    audio {
        margin-left: 40%;
    }
}

@media screen and (max-width: 900px) {
    .album-title {
        font-size: 1rem;
    }
    
    .album-artist {
        font-size: 0.95rem;
    }

}

@media screen and (max-width: 800px) {
    .tabla {
        grid-template-columns: repeat(10, 1fr);
    }

    .album-title {
        font-size: 0.9rem;
    }
    
    .album-artist {
        font-size: 0.8rem;
    }

    .puesto {
        font-size: 1.1rem;
    }

    .semana {
        font-size: 1.1rem;
    }

    .fuentes {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 769px) {
    main {
        align-items: center;
        justify-content: center;
    }

    .celda {
        padding: 2px 0;
        font-size: 0.8rem;
    }

    .celdaActiva {
        padding: 2px 0;
        font-size: 0.8rem;
    }

    .tablaRank {
        grid-template-columns: 70px auto 30px;
    }

    .tablaRankSingles {
        grid-template-columns: 70px auto 30px;
    }

    .puesto {
        display:none;
    }

    .puestoHD {
        display:none;
    }

    .album-cover {
        width: 50px;
        height: 50px;
        border-radius: 4px;
    }

    .album-cover:hover {
        transform: scale(1.6);
    }

    .album-info {
        min-height: 80px;
        padding-left: 2px;
        align-items: left;
    }

    .album-title {
        font-size: 1.1rem;
        margin-bottom: 0;
        line-height: 1;
    }

    .album-artist {
        font-size: 0.9rem;
    }

    .semana {
        font-size: 1rem;
    }

    .fuentes {
        font-size: 1rem;
    }
 
}

@media screen and (max-width: 700px) {
    .tabla {
        grid-template-columns: repeat(6, 1fr);
    }

    .album-artist {
        margin-bottom: 5px;
    }

}

@media screen and (max-width: 601px) {
    .album-title {
        font-size: 0.9rem;
    }

    .album-artist {
        font-size: 0.8rem;
    }

    .semana {
        font-size: 0.9rem;
    }

    .fuentes {
        font-size: 0.9rem;
    }

    audio {
        margin-left: 20%;
    }
}

@media screen and (max-width: 541px) {
    .album-title {
        font-size: 0.8rem;
    }

    .album-artist {
        font-size: 0.7rem;
    }

    .semana {
        font-size: 0.8rem;
    }

    .fuentes {
        font-size: 0.8rem;
    }

    audio {
        margin-left: 10%;
    }
}

@media screen and (max-width: 480px) {
    .album-title br {
        display:block;
    }

    .album-artist br {
        display: block;
    }

    audio {
        margin-left: 0;
    }
}

@media screen and (max-width: 440px) {
    .album-info {
        min-height: 90px;
    }

    .albumHD {
        align-items: center;
        justify-content: start;
        padding-left: 25%;
    }

    .album-artist {
        margin-bottom: 10px;
    }

}

@media screen and (max-width: 320px) {
    main {
        margin-left: 2%;
    }

}