* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: serif;
  display: flex;
  background: #262626;
  min-height: 100vh;
  overflow-x: hidden;
  place-items: center;
  flex-direction: column;
  justify-content: center;
}





 
.main-container {
  position: relative;
  z-index: 1;
  padding: 20px;
  align-items: center;
  justify-content: center;
  height: 100vh;
}



#gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
    
    .player {
  display: inline-block;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 300px;
  min-width: 400px;
  height: 475px;
  border: 1px solid transparent;
  padding: 30px;
  border-radius: 20px;
  background-color: transparent;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
  overflow: hidden;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(5px);
}

.wrapper {
  border: 4px solid transparent;
  border-radius: 20px;
  background-color: transparent;
  backdrop-filter: blur(30px);
}
    
    .details {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    }
    
    .track-art {
    margin: 25px;
    height: 100px;
    width: 100px;
    
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border-radius:100px;
    }
    
    .now-playing {
    font-size: 12px;
        color: white;
    }
    
    .track-name {
    font-size: 19px;
        color: white;
    }
    
    .track-artist {
    margin-top: 5px;
    font-size: 8px;
        color: white;
    }
    
    .buttons {
    display: flex;
  flex-direction: row;
    align-items: center;
      justify-content: center;
    margin-bottom: 30px;
      
      color: white;
    }
    .active{
        color: white;
    }
    
    .repeat-track,
    .random-track,
    .playpause-track,
    .prev-track,
    .next-track {
    padding: 20px;
    opacity: 0.8;
    transition: opacity .2s;
        color: white;
    }
    
    .repeat-track:hover,
    .random-track:hover,
    .playpause-track:hover,
    .prev-track:hover,
    .next-track:hover {
    opacity: 1.0;
        color: white;
    }
    
    .slider_container {
    display: flex;
    justify-content: center;
    align-items: center;
        color: white;
    }
    
    .seek_slider, .volume_slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 5px;
    background: #83A9FF;
    -webkit-transition: .2s;
    transition: opacity .2s;
        color: white;
        
    }
    
    .seek_slider::-webkit-slider-thumb,
    .volume_slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: white;
    border: 3px solid #3774FF;
    cursor: grab;
    border-radius: 100%;
        color: white;
    }
    
    .seek_slider:hover,
    .volume_slider:hover {
    opacity: 1.0;
    }
    
    .seek_slider {
    width: 60%;
    }
    
    .volume_slider {
    width: 30%;
    }
    
    .current-time,
    .total-duration {
    padding: 10px;
    }
    
    i.fa-volume-down,
    i.fa-volume-up {
    padding: 10px;
    }
    
    i,
    i.fa-play-circle,
    i.fa-pause-circle,
    i.fa-step-forward,
    i.fa-step-backward,
    p {
    cursor: pointer;
    }
    .randomActive{
        color: black;
    }
    .rotate {
        animation: rotation 8s infinite linear;
    }
    @keyframes rotation {
        from {
          transform: rotate(0deg);
        }
        to {
          transform: rotate(359deg);
        }
    }
    .loader {
      height: 70px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .loader .stroke{
        background: #f1f1f1;
        height: 150%;
        width: 10px;
        border-radius: 50px;
        margin: 0 5px;
        animation: animate 1.4s linear infinite;
    }
      @keyframes animate {
        50% {
          height: 20%;
          background: #FF5C00;
        }
    
        100% {
          background: #FF5C00;
          height: 100%;
        }
      }
      .stroke:nth-child(1){
          animation-delay: 0s;
      }
      .stroke:nth-child(2){
        animation-delay: 0.3s;
    }
    .stroke:nth-child(3){
        animation-delay: 0.6s;
    }
    .stroke:nth-child(4){
        animation-delay: 0.9s;
    }
    .stroke:nth-child(5){
        animation-delay: 0.6s;
    }
    .stroke:nth-child(6){
        animation-delay: 0.3s;
    }
    .stroke:nth-child(7){
        animation-delay: 0s;
    }
    

.visualizer-container {
  position: relative;
  width: 180px; 
  height: 81px; 
  display: flex;
  margin-left: -34px;

}

#canvas {
  position: relative;
  left: 20; 
  top: 50px; 
  width: 600px; 
  height: 300px;
  background-color: transparent;
}



.music-icon {
  position: absolute;
  font-size: 2rem;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 
               0 0 20px rgba(255, 255, 255, 0.7), 
               0 0 30px rgba(0, 255, 255, 0.6), 
               0 0 40px rgba(0, 255, 255, 0.5), 
               0 0 50px rgba(255, 0, 255, 0.4),
               0 0 60px rgba(255, 0, 255, 0.3),
               0 0 70px rgba(255, 255, 0, 0.2);
  opacity: 0.9;
  animation: moveIcons 10s linear infinite;
  animation-timing-function: linear;
}

.music-icon:nth-child(1) {
  left: -100%;
  top: 5%; 
  font-size: 3rem;
  animation: moveDiagonal 12s linear infinite;
  animation-delay: 0s;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9),
               0 0 25px rgba(255, 0, 0, 0.8),
               0 0 35px rgba(0, 255, 255, 0.6),
               0 0 45px rgba(255, 0, 255, 0.5);
}

.music-icon:nth-child(2) {
  left: -100%;
  top: 25%; 
  font-size: 2.5rem;
  animation: moveZigzag 12s linear infinite;
  animation-delay: 1s;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9),
               0 0 25px rgba(0, 255, 0, 0.8),
               0 0 35px rgba(0, 255, 255, 0.6),
               0 0 45px rgba(255, 255, 0, 0.5);
}

.music-icon:nth-child(3) {
  left: -100%;
  top: 45%;
  font-size: 3.5rem;
  animation: moveStraight 14s linear infinite;
  animation-delay: 0.5s;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.9),
               0 0 30px rgba(255, 0, 0, 0.7),
               0 0 40px rgba(255, 255, 0, 0.5),
               0 0 50px rgba(0, 255, 255, 0.4);
}

.music-icon:nth-child(4) {
  left: -100%;
  top: 65%;
  font-size: 2rem;
  animation: moveCircular 15s linear infinite;
  animation-delay: 2s;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9),
               0 0 25px rgba(255, 0, 255, 0.7),
               0 0 35px rgba(0, 0, 255, 0.6),
               0 0 45px rgba(255, 255, 0, 0.5);
}

.music-icon:nth-child(5) {
  left: -100%;;
  top: 80%;
  font-size: 2.8rem;
  animation: moveDiagonal 13s linear infinite;
  animation-delay: 3s;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9),
               0 0 25px rgba(0, 0, 255, 0.8),
               0 0 35px rgba(255, 255, 0, 0.6),
               0 0 45px rgba(255, 0, 0, 0.4);
}

.music-icon:nth-child(6) {
  left: -100%;
  top: 55%;
  font-size: 3.2rem;
  animation: moveZigzag 11s linear infinite;
  animation-delay: 2.5s;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9),
               0 0 25px rgba(0, 255, 255, 0.7),
               0 0 35px rgba(0, 255, 0, 0.6),
               0 0 45px rgba(255, 0, 255, 0.5);
}

.music-icon:nth-child(7) {
  left: -100%;
  top: 35%;
  font-size: 2.6rem;
  animation: moveStraight 12s linear infinite;
  animation-delay: 4s;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9),
               0 0 25px rgba(255, 0, 255, 0.8),
               0 0 35px rgba(255, 0, 0, 0.6),
               0 0 45px rgba(0, 255, 255, 0.4);
}

.music-icon:nth-child(8) {
  left: -100%;
  top: 90%;
  font-size: 2.9rem;
  animation: moveCircular 13s linear infinite;
  animation-delay: 5s;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9),
               0 0 25px rgba(0, 255, 255, 0.7),
               0 0 35px rgba(255, 255, 0, 0.5),
               0 0 45px rgba(255, 0, 0, 0.4);
}


@keyframes moveDiagonal {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(250vw) translateY(-110vh); 
  }
}

@keyframes moveZigzag {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(40vw) translateY(15vh); 
  }
  50% {
    transform: translateX(80vw) translateY(-20vh);
  }
  75% {
    transform: translateX(120vw) translateY(25vh);
  }
  100% {
    transform: translateX(250vw) translateY(-10vh); 
  }
}

@keyframes moveStraight {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(250vw); 
  }
}

@keyframes moveCircular {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  100% {
    transform: translateX(250vw) translateY(-50vh) rotate(360deg); 
  }
}
