* {
    box-sizing: border-box;
    font-family: 'Lexend', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: url('./images/background.jpg');
    background-size: cover;
    background-position: 0;
    backdrop-filter: blur(5px);
    background-attachment: fixed;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header {
    color: black;
    font-size: 3rem;

}

main {
    width: 100%;
    max-width: 1200px;
    margin: 5rem 0 0 0;
    padding: 1rem;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

@media only screen and (max-width: 1000px) {
    main {
        flex-direction: column;
        align-items: center;
    }
}

.song-list, .song-list li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.album {
    max-width: 500px;
    width: 100%;
    position: relative;
}

.album::after {
    content: '';
    position: absolute;
    background: url('./images/vinyl.png');
    background-size: cover;
    background-position: center;
    border-radius: 100%;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1/1;
    z-index: -2;

    top: 0;
    opacity: 1;

    transition: all .2s ease-in-out;
}

.album:hover::after {
    top: -100px;
    opacity: 1;
}
.album.playing::after{
    top: -200px;
    opacity: 1;

    animation: 5s linear spinThat infinite;
}

.album.open {
    margin-top: 12rem;
}

.album .cover {
    width: 100%;
    border: none;
    aspect-ratio: 1/1;
    backdrop-filter: blur(5px);
    background: rgba(255,255,255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;

    transition: all .2s ease;

    background-image: var(--bg-image);
    background-size: cover;
}

.album .cover:hover,
.album .cover:focus {
    outline: solid white 5px;
}

.album .cover--light {
    color: white;
}

.album .cover:focus,
.album.open .cover{
    outline: solid white 5px;
}

.album .song-list {
    display: none;
}

.album.open .song-list {
    display: block;
}

.song-list li {
    backdrop-filter: blur(5px); 
    background: rgba(255,255,255, 0.7);
    padding: 1rem;
    margin: 1rem 0;
}

.song-list h2 {
    margin-bottom: .5rem;
}

.song-list audio {
    width: 100%;
}

.song-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.btn {
    background: rgba(0,0,0,.2);
    backdrop-filter: blur(5px);
    margin: .2rem;
    padding: .3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    text-decoration: none;
}

.btn > img {
    margin-right: .3rem;
}

@keyframes spinThat {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}