* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  height: 100vh;
  background: url("images/bg1.jpg");
  background-size: cover;
  background-position: center;
}

.music-player {
  font-size: 16px;
  width: 78vw;
  max-width: 25em;
  padding: 3em 1.8em;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  border-radius: 0.5em;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 7px 7px 20px rgba(0, 0, 0, 0.4);
}

img:not(.image img) {
  width: 100%;
  height: 100%;
  margin: 1em 0;
  border-radius: 50%;
  object-fit: cover;
  background-position: center;
}


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

.image {
  width: 340px;
  height: 340px;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 8px;
  border-radius: 50%;
  animation: rotateAnimation 20s linear infinite;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  border-radius: 50%;
}

#playlist {
  float: right;
}

#playlist i {
  color: #fff;
}

.song-details {
  font-family: "Poppins", sans-serif;
  text-align: center;
}

.song-details #song-name {
  font-size: 1.3em;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #fff;
}

.song-details #song-artist {
  font-size: 0.8em;
  color: #fff;
}

.player-options {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 1.25em;
  margin: 1.25em 0 0.6em 0;
}

.music-player button {
  border: none;
  background-color: transparent;
}

#play,
#pause {
  height: 2.1em;
  width: 2.1em;
  font-size: 1.8em;
  background-color: transparent;
  color: #ffffff;
  border-radius: 50%;
}

#prev,
#next {
  color: #fff;
  font-size: 1.4em;
}

#shuffle,
#repeat {
  color: #949494;
  font-size: 1em;
}

.hide {
  display: none;
}

#progress-bar {
  position: relative;
  width: 100%;
  height: 0.3em;
  background-color: #eeeeee;
  margin: 1em 0;
  border-radius: 0.18em;
  cursor: pointer;
}

#current-progress {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  height: 100%;
  width: 20%;
  background-color: #2887e3;
  border-radius: 0.18em;
}

.time-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

#playlist-container {
  background-color: #ffffff;
  position: absolute;
  width: 100%;
  height: 100vh;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  border-radius: 0.6em;
  padding: 2em 1em;
  font-family: "Poppins", sans-serif;
  overflow-y: scroll;
  margin: 40px 0;
}

/* .playlist-image-container {
  width: 100%;
  height: 100%;
  margin: 1em 0;
  border-radius: 50%;
  object-fit: cover;
  background-position: center;
} */

#playlist-container p {
  position: absolute;
}

#close-button {
  background-color: transparent;
  border: none;
  height: 2em;
  width: 2em;
  cursor: pointer;
  margin-left: 90%;
}

ul {
  list-style-type: none;
}

li {
  display: flex;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid #dcdcdc;
}

.playlist-song-details {
  margin-left: 1em;
}

.playlist-song-details > span {
  display: block;
}

#playlist-song-artist-album {
  color: #949494;
  font-size: 0.8em;
}

button.active i {
  color: #2887e3;
}

@media screen and (max-width: 550px) {
  .music-player {
    font-size: 14px;
  }

  .image {
    max-width: 280px;
    max-height: 280px;
  }
}

.playlist-image-container {
  width: 3.5em;
}
