@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');

* {
  box-sizing: border-box;
}

body {
  background-image: linear-gradient(0deg, rgba(2,0,36,1) 0%, rgba(45,190,169,1) 50%, rgba(0,212,255,1) 94%);
  color: rgba(255,8,133,1);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', sans-serif;
  margin: 0;
}

.music-container {
  background: rgb(2,0,36);
  background: linear-gradient(0deg, rgba(108,32,85,0.9976365546218487) 10%, rgba(255,8,133,1) 60%);
  border-radius: 25px;
  box-shadow: 0 15px 15px 0 rgba(131, 241, 229, 100);
  display: flex;
  padding: 20px 30%;
  position: relative;
  margin: 80px 0;
  z-index: 10;
}

.img-container {
  position: relative;
  width: 110px;
}

.img-container::after {
  content: '';
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, 50%);
}

.img-container img {
  border-radius: 50%;
  object-fit: cover;
  height: 110px;
  width: inherit;
  position: absolute;
  bottom: 0;
  left: 0;
  animation: rotate 4s linear infinite;

  animation-play-state: paused;
}

.music-container.play .img-container img {
  animation-play-state: running;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.action-btn {
  border: 0;
  color: rgba(255,8,133,1);
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
  margin: 0 20px;
  border-radius: 30px;
}

.action-btn.action-btn-big {
  font-size: 24px;
}

.action-btn:focus {
  outline: 0;
}

.music-info {
  background-color: #20ddd1;
  border-radius: 0px 0px 20px 20px;
  position: absolute;
  top: 0;
  left: 20px;
  width: calc(100% - 40px);
  padding: 10px 10px 10px 150px;
  opacity: 0;
  transform: translateY(0%);
  transition: transform 0.3s ease-in, opacity 0.3s ease-in;
  z-index: 0;
}

.music-container.play .music-info {
  opacity: 0.8;
  transform: translateY(150%);
}

.music-info h4 {
  margin: 0;
}

.progress-container {
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
  margin: 10px 0;
  height: 4px;
  width: 100%;
}

.progress {
  background-color: rgba(255,8,133,1);
  border-radius: 5px;
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}
