*{
    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);
    }   
}
*/
:root {
  --submarine-blue: #0a192f;
  --submarine-glow: #102a45;
  --bubble-accent: rgba(255, 255, 255, 0.05);
}

body {
    background: radial-gradient(circle, var(--submarine-glow), var(--submarine-blue));
    background-attachment: fixed;
    color: #e2e8f0;
    overflow-x: hidden;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    justify-items: center;
    position: absolute;
    
}
.music-player{
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 600px;
    height:600px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    
}


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: #044aa0;
    border-radius: 50%;
    box-shadow: black 2px 5px 10px;
    cursor: pointer;
    color: black;
}
.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(72, 141, 225) 2px 5px 10px;
    animation: spin 2s linear infinite ;
}
.container h1 {
    font-family: Liminoru;
    font-size: 50px;
}
.container p {
    font-size: 30px;
}
#progress {
    -webkit-appearance: none;
    width: 90%;
    height: 8px;
    background: #153CB4;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    margin-bottom: 30px;
}
#progress::-webkit-slider-thumb{
   -webkit-appearance: none;
   background: #042E60;
   width: 32px;
   height: 32px;
   border-radius: 50%;
   border:  8px solid #153CB4;
   
}
.controls {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
    color: black;
}
.controls div{
    background: hsl(218, 66%, 48%);
    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: black;

}
#song {
    display: none;
}



/* Playlist Styles */
#playlist-container {
    position: absolute;
    top: 0;
    right: 0;
    height: 100vh;
    width: 350px;
    background: rgba(10, 25, 47, 0.6);
    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: #044aa0;
}

.playlist-header h2 {
    color: white;
    font-family: Liminoru;
    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: var(--bubble-accent);
    color: #64ffda;
    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;
}