/* Images created by: https://unsplash.com/@pawel_czerwinski */
/*Music Credit: Royalty Free Music from Bensound - Changed names for songs and artists*/

@import url('https://fonts.googleapis.com/css2?family=Spartan:wght@300;500&display=swap');


html {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-image: url("https://media.giphy.com/media/5xaOcLrTLTxXq7W4sko/giphy.gif");
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Spartan', serif;
  font-size: 12px;
}
.player {
  height: 425px;
  width: 410px;
  min-width: 400px;
  margin-top: 100px;
  background: rgb(26, 29, 28);
  border-radius: 15px;
  box-shadow: 10px 3px 5px 5px rgba(255, 255, 255, 0.3);
  color: whitesmoke;
}
.image-record {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.song-image {
  display: block;
  margin-top: -120px;
  width: 310px;
  height: 310px;
  object-fit: cover;
  object-position: bottom;
  border-radius: 50%;
  box-shadow: 0 5px 10px 5px rgba(0, 0, 0, 0.5);
  animation: rotate 20s linear infinite forwards;
  animation-play-state: paused;
}
.image-rotate {
  animation-play-state: running;
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.record-effect {
  width: 100px;
  height: 100px;
  position: absolute;
  margin-top: -120px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 5%,
    rgb(185, 185, 185) 5%,
    rgb(139, 139, 139) 20%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 1) 90%,
    rgba(255, 255, 255, 1) 75%
  );
  border-radius: 50%;
}

.song-title {
  font-size: 26px;
  text-align: center;
  margin: 0;
  letter-spacing: 2px;
}

.song-artist {
  font-size: 18px;
  text-align: center;
  font-weight: 400;
  margin: 5px 0 0;
} 

/* Progress */
 .progress-container {
  background: rgb(73, 73, 73);
  border-radius: 4px;
  cursor: pointer;
  margin: 40px 20px 30px;
  height: 2px;
  width: 90%;
  font-family: sans-serif;
  font-size: 15px;
}

.progress {
  background: #ebebeb;
  border-radius: 30px;
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}

.duration {
  position: relative;
  top: -25px;
  display: flex;
  justify-content: space-between;
} 

/* Volume */
 .volume-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30px;
  right: 30px;
  bottom: 4px;
}
.volume-container:hover .volume-control {
  display: block;
}
.volume-control {
  -webkit-appearance: none;
  outline: none;
  border: solid 3px rgb(199, 199, 199);
  background-color: rgb(247, 239, 239);
  transform: rotate(-90deg);
  width: 100px;
  margin-bottom: 60px;
  display: none;
  overflow: hidden;
  cursor: pointer;
  font-size: 26px;
}

.volume-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 5px;
  height: 13px;
  background-color: rgb(71, 121, 163);
  box-shadow: -100px 0px 0 100px rgb(84, 128, 185);
  cursor: pointer;
} 

/* Controls */
.player__controls {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

.fas {
  font-size: 37px;
  color: rgb(129, 129, 129);
  margin: 0 20px;
  cursor: pointer;
  user-select: none;
}
.fa-volume-down {
  font-size: 28px;
  margin: 0;
}

.fas:hover {
  filter: brightness(60%);
}

#shuffle {
  font-size: 26px;
  position: absolute;
  bottom: 5px;
  left: 15px;
  color: rgb(129, 129, 129);
}

.main-button {
  font-size: 40px;
  position: relative;
  top: 3px;
}

/*Media Query: iPhone (Vertical) */
@media screen and (max-width: 376px) {
  .song-image-container {
    left: 29px;
  }

  .song-title {
    font-size: 20px;
  }

  .song-artist {
    font-size: 15px;
  }
}

