*{
    margin: 0;
}

@font-face {
    font-family: Liminoru;
    src: url(fonts/liminoru-personal-use/LiminoruPersonalUse-Regular.otf);
}
/*
@keyframes spin {
    from{
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }   
}
*/


body {
      /* Critical: Ensures the body is at least as tall as the screen */
    min-height: 100vh;
    margin: 0;

    /* Your existing code */
    background-image: radial-gradient(circle, #892B30 0%, #111111 80%);

    /* Critical: Keeps the gradient from tiling when you scroll */
    background-attachment: fixed;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    justify-items: center;
    position: absolute;
    
}
.music-player{
    background: linear-gradient(135deg, #761a0f 0%, #0d0d0d 100%);
    border: 2px solid black;
    border-radius: 20px;
    width: 600px;
    height:600px;
    text-align: center;
    
}
nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}
.back-to-main-screen{
    color: black;
}
nav .circle{
    margin: 10px 10px 0;
    padding: 10px;
    background-color: #8d0606;
    border-radius: 50%;
    box-shadow: black 2px 5px 10px;
    cursor: pointer;
}
.song-image {
    display: flex;
    text-align: center;

    margin: auto;
    width: 200px;
    height: 200px;
    border: 4px solid black;
    border-radius: 50%;
    justify-self: center;
    box-shadow: rgb(214, 214, 214) 2px 5px 10px;
    animation: spin 2s linear infinite ;
}
.container h1 {
    font-family: "Cormorant Garamond";
    font-size: 50px;
    color: #F4EDE8;
    margin-top: 10px;
}
.container p {
    font-size: 30px;
    color: #F4EDE8;
}
#progress {
    -webkit-appearance: none;
    width: 90%;
    height: 8px;
    background: #2e0400;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    margin-bottom: 30px;
}
#progress::-webkit-slider-thumb{
   -webkit-appearance: none;
   background: #901616;
   width: 32px;
   height: 32px;
   border-radius: 50%;
   border:  8px solid #F4EDE8;
   
}
.controls {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
    color:  #F4EDE8;

    
}
.controls div{
    background: #5f1619;
    padding: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: black 2px 5px 10px;
    cursor: pointer;
}
.controls div:nth-child(2){
    transform: scale(1.5);
    color:hsl(218, 66%, 48%);
    background-color: #5f1619;
    color: #F4EDE8;

}
#song {
    display: none;
}



/* Playlist Styles */
#playlist-container {
    position: absolute;
    top: 0;
    right: 0;
    height: 100vh;
    width: 350px;
    background: radial-gradient( circle at center, #7a0010 0%, #3a0004 60%, #0d0002 100%);
    border-left: 3px solid black;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: transform 0.3s ease;
}

#playlist-container.playlist-hidden {
    transform: translateX(100%);
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid black;
    background-color: #2e0400;
}

.playlist-header h2 {
    color: white;
    font-family: "Cormorant Garamond";
    font-size: 28px;
}

#closePlaylist {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#closePlaylist:hover {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.playlist {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.playlist-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s ease;
}

.playlist-item:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.playlist-item.active {
    background-color: #2e0400;
    border-left: 4px solid #DBE7EE;
    padding-left: 16px;
    font-weight: bold;
}

.playlist-item span {
    color: white;
    font-size: 16px;
}

.playlist-item .artist {
    color: #DBE7EE;
    font-size: 13px;
    margin-top: 4px;
}

.playlist-item.active span {
    color: #DBE7EE;
}

.playlist-item.active .artist {
    color: white;
}