@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;400&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

*::before,
*::after {
  padding: 0;
  margin: 0;
}

:root {
  --mainYellow: yellow;
  --mainGreen: rgb(2, 58, 2);
  --secondGreen: rgb(38, 175, 38);
  --thirdRed: red;
  --secondRed: rgb(236, 112, 112);
  --pink: #ff74a4;
  --violet: #9f6ea3;
  --lightblack: #515c6f;
  --mainblack: #000000;
  --white: #ffffff;
  --darkwhite: #cecaca;
  --pinkshadow: #ffcbdd;
  --lightbshadow: rgba(0, 0, 0, 0.15);
}

.music-container {
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  /*background: -webkit-linear-gradient(45deg, rgba(255, 255, 0, 1) 0%, rgba(0, 128, 0, 1) 50%, rgba(255, 255, 0, 1) 100%)*/
}

.wrapper {
  overflow: hidden;
  position: relative;
  background: var(--mainblack);
  border-radius: 15px;
  padding: 25px 30px;
  /*box-shadow: 0px 6px 15px var(--lightbshadow);*/

}

.wrapper i {
  cursor: pointer;
}

.top-bar {
  color: #f0f0f0;
  text-align: center;
}

.progress-area .timer,
.controls,
.music-list .header,
.music-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.img-area {
  margin-left: 10px;
  height: 300px;
  width: 300px;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 15px;
}

.img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-details {
  text-align: center;
  margin: 30px 0;
  color: var(--white);
}

.song-details .name {
  font-size: 21px;
}

.song-details .artist {
  opacity: 0.9;
  font-size: 18px;
}

.progress-area {
  height: 6px;
  width: 100%;
  background: #f0f0f0;
  border-radius: 50px;
  cursor: pointer;
}

.progress-area .progress-bar {
  height: inherit;
  width: 1%;
  position: relative;
  border-radius: inherit;
  /*background: linear-gradient(90deg, var(--pink) 0%, var(--violet)100%);*/
  background: -webkit-linear-gradient(45deg, rgba(255, 255, 0, 1) 0%, rgba(0, 128, 0, 1) 50%, rgba(255, 255, 0, 1) 100%)
}

.progress-bar::before {
  content: "";
  position: absolute;
  height: 12px;
  width: 12px;
  background: #000;
  border-radius: inherit;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  background: inherit;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.progress-area:hover .progress-bar::before {
  opacity: 1;
}

.progress-area .timer {
  margin-top: 2px;
}

.timer span {
  font-size: 13px;
  color: var(--lightblack);
}

.controls {
  margin: 40px 0 5px 0;
}

.controls i {
  font-size: 28px;
  user-select: none;
  /*background: linear-gradient(var(--pink) 0%, var(--violet)100%);*/
  background: -webkit-linear-gradient(45deg, rgba(255, 255, 0, 1) 0%, rgba(0, 128, 0, 1) 50%, rgba(255, 255, 0, 1) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.controls i:nth-child(2),
.controls i:nth-child(4) {
  font-size: 43px;
}

.controls #prev {
  margin-right: -13px;
}

.controls #next {
  margin-right: -13px;
}

.controls .play-pause {
  height: 54px;
  width: 54px;
  /*background: linear-gradient(var(--white) 0%, var(--darkwhite)100%);*/
  background: -webkit-linear-gradient(45deg, rgba(255, 255, 0, 1) 0%, rgba(0, 128, 0, 1) 50%, rgba(255, 255, 0, 1) 100%);
  box-shadow: 0px 0px 5px var(--lightbshadow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-pause::before {
  content: "";
  position: absolute;
  height: 43px;
  width: 43px;
  border-radius: inherit;
  background: linear-gradient(var(--mainRed) 0%, var(--mainYellow)100%);
}

.play-pause i {
  height: 43px;
  width: 43px;
  line-height: 43px;
  text-align: center;
  border-radius: inherit;
  background-clip: text;
  background: inherit;
  position: relative;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.music-list {
  position: absolute;
  left: 0;
  bottom: -55%;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  padding: 15px 30px;
  border-radius: 15px;
  box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.1);
  background: var(--white);
  transition: all 0.14s ease-out;
}

.music-list.show {
  bottom: 0;
  opacity: 1;
  pointer-events: auto;
}

.music-list .header .row {
  display: flex;
  align-items: center;
  font-size: 19px;
  color: var(--lightblack);
}

.header .row i {
  cursor: default;
}

.header .row span {
  margin-left: 5px;
}

.header #close {
  font-size: 23px;
  color: var(--lightblack);
}

.music-list ul {
  margin: 10px 0;
  max-height: 400px;
  overflow-y: auto;
}

.music-list ul::-webkit-scrollbar {
  width: 0px;
}

.music-list ul li {
  cursor: pointer;
  list-style: none;
  padding-bottom: 10px;
  margin-bottom: 5px;
  color: var(--lightblack);
  border-bottom: 1px solid #e5e5e5;
}

.music-list ul li:last-child {
  border-bottom: 0px;
}

.music-list ul li .row span {
  font-size: 17px;
}

ul li .row p {
  opacity: 0.9;
}

ul li .audio-duration {
  font-size: 16px
}

ul li.playing {
  color: var(--violet);
  pointer-events: none;
}

/*Glow effect*/
.glow {
  position: relative;
  border-radius: 15px;
  overflow: visible;
  /* allow glow to show outside the box */
}

.glow::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 15px;
  background: linear-gradient(45deg,
      #ff00ee,
      #0000ff,
      #00ff00,
      #ff0000,
      #ffff00,
      #ff00ee);
  background-size: 400% 400%;
  z-index: -1;
  animation: animateGlow 15s linear infinite, pulseGlow 3s ease-in-out infinite;
  filter: blur(10px);
  opacity: 0.8;
}

@keyframes animateGlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* creates the soft pulsing effect */
@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.5;
    filter: blur(8px);
  }

  50% {
    opacity: 1;
    filter: blur(15px);
  }
}