/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

*{
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(0.25turn, #3f87a6, #ebf8e1, #f69d3c);
  font-family: 'roboto', sans-serif;
}

.music-player{
  width: 317px;
  height: 550px;
  border-radius: 20px;
  background: rgba(100, 59, 82, 0.08);
  box-shadow: 0 40px 100px rgba(255, 255, 255, 0.1);
  padding: 30px;
  overflow: hidden;
  color: #3f51b5;
}

.music-name,
.artist-name{
    text-align: center;
    text-transform: capitalize;
    color: #4b1ed763;
}

.music-name{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #4b1ed763;
}

.artist-name{
    font-size: 20px;
}

.disk{
  position: relative;
  display: block;
  margin: 40px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-image: url(../img/her.jpg);
  background-size: cover;
  box-shadow: 0 0 0 10px rgb(188, 192, 231);
  animation: rotate 20s linear infinite;
  animation-play-state: paused;
}

.disk::before{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(0.25turn, #b4d4e2, #ebf8e1, #e6cfb8);
}

.song-slider{
  width: 100%;
  position: relative;
}

.seek-bar{
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 10px;
  background: rgb(49, 6, 31);
  overflow: hidden;
  cursor: pointer;
}

.seek-bar::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 1px;
  height: 20px;
  box-shadow: -400px 0 0 400px #685bb6;
}

.current-time,
.song-duration{
    font-size: 14px;
}

.song-duration{
    position: absolute;
    right: 0;
}

.controls{
  width: 60%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
  margin-top: 20px;
}

.play-btn{
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(0.25turn, #3f87a6, #ebf8e1, #f69d3c);
  cursor: pointer;
  border: none;
}

.play-btn span{
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translateY(-50%);
  width: 10px;
  height: 30px;
  border-radius: 2px;
  background: #090c0a;
  transition: .5s;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.play-btn span:nth-child(2){
  left: 55%;
  transform-origin: center;
}

.play-btn.pause span:nth-child(2){
  transform: translateY(-50%) scaleY(0);
}

.play-btn.pause span:nth-child(1){
  width: 35%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 50%, 100% 50%, 0% 100%);
}

.play-btn.pause{
  animation: pulse 2s linear infinite;
}

@keyframes pulse{
  0%{
      box-shadow: 0;
  }
  50%{
      box-shadow: 0 0 0 5px rgba(17, 8, 8, 0.1);
  }
  100%{
      box-shadow: 0 0 0 5px rgba(19, 8, 8, 0.4);
  }
}

.btn{
  width: 40px;
  height: 40px;
  background: #9198e5;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
}

a {
  width: 40px;
  height: 40px;
  background: #9198e5;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  margin-left: 250px;

}

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

.disk.play{
  animation-play-state: running;
}

