.spotify {
    width: 100%;
    height: 100vh;
    background-image: url(../img/spoty.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.shadowspotify {
    position: absolute;
    background: linear-gradient(to left, rgb(0, 0, 0) 30%, rgba(0, 0, 0, 0.5) 35%, transparent 100%);
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.spotify h1 {
    color: rgb(255, 255, 255);
}

.spotify h1 a {
    letter-spacing: 0em;
    text-decoration: underline;
    color: #1DB954;
}

.spotify h1 a:hover {
    color: #97e6b3;
}

.songlist {

    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    /* Esto ajusta el ancho del contenedor */
    margin: 0 auto;
    max-width: 95vw;
    /* Ancho máximo que puede tener el contenedor */
    overflow-x: auto;
    /* Habilita el scroll horizontal */
    overflow-y: hidden;
    white-space: nowrap;
    /* Evita que las tarjetas se vayan a la siguiente línea */
}

.songlist::-webkit-scrollbar {
    height: 7px;
    background: rgba(198, 198, 198, 0.21);
}

.songlist::-webkit-scrollbar-thumb {
    background: rgb(157, 52, 52);
    cursor: pointer;
    border-radius: 9px;
}

ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 2rem;
}

li {

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: 5%;
    background-color: rgba(255, 255, 255, 0.024);
    

}

li:hover {
    background-color: rgba(255, 255, 255, 0.254);
}

.img {
    width: 250px;
    height: 250px;
}

audio {

    width: 15rem;
    height: 2rem;
}

li h3 {
    margin: 0;
    color: #ffffff;
}

.SpotifyIcon {
    margin-top: 2rem;
    animation: arrowBounceicon 1s ease-in infinite;
}

/* Definición de la animación */
@keyframes arrowBounceicon {
    0% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-0.3rem);
    }

    100% {
        transform: translateX(-50%) translateY(0rem);
    }
}


@media (max-width: 481px) {

    .spotify {
        width: 100%;
        height: 120vh;        
    }
    .img {
        width: 150px;
        height: 150px;
    }

    audio {

        width: 12rem;
        height: 2rem;
    }

    ul {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        
    }

    li {

        width: 80%;
        height: 300px;
        overflow: hidden;
    }

    .songlist {

        position: relative;
        display: flex;
        align-items: center;
        overflow-y: auto;
        overflow-x: hidden;
        height: 60%;
        border: red solid;
    }

    .shadowspotify {
       gap: 1rem;
    }

}