@import url("https://fonts.googleapis.com/css?family=Lato&display=swap");

* {
  box-sizing: border-box;
}

body {
  height: 100vh;
  margin: 0;
  font-family: monospace, "Lato";
  background-image: linear-gradient(
    0deg,
    rgb(247, 247, 247, 1) 23.8%,
    rgb(252, 221, 221, 1) 92%
  );

  background: #0f2027; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to top,
    #2c5364,
    #203a43,
    #0f2027
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to top,
    #2c5364,
    #203a43,
    #0f2027
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.musicContainer {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px 0 rgba(28, 3, 51, 0.6);
  display: flex;
  padding: 20px 30px;
  position: relative;
  margin: 100px 0;
  z-index: 10;
}

.img-container {
  position: relative;
  width: 110px;
}
.img-container::after {
  content: "";
  background-color: white;
  height: 20px;
  width: 20px;
  position: absolute;
  bottom: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.img-container img {
  width: inherit;
  height: 110px;
  border-radius: 50%;
  border: 2px solid black;
  object-fit: cover;
  position: absolute;
  bottom: 0;
  left: 0;
  animation: rotate 6s linear infinite;

  animation-play-state: paused;
}
/* add "play" class with JS so the rotation will be just 
when the music is played */
.musicContainer.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 {
  background-color: white;
  border: 0;
  color: #a051a0;
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
  margin: 0 20px;
}

.action-btn-big {
  color: #2f1835;
  font-size: 30px;
}

.action-btn:focus {
  outline: 0;
}

.music-info {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 15px 15px 0 0;
  position: absolute;
  top: 0;
  left: 20px;
  width: calc(100% - 40px);
  opacity: 0;
  transform: translateY(0%);
  padding: 10px 10px 10px 150px;
  transition: transform 0.3s ease-in, opacity 0.3s ease-in;
}

.music-info h4 {
  margin: 0;
}
.musicContainer.play .music-info {
  opacity: 1;
  transform: translateY(-100%);
}

.progress-container {
  background: rgb(255, 255, 255);
  cursor: pointer;
  border-radius: 5px;
  margin: 10px 0;
  height: 4px;
  width: 100%;
}

.progress {
  background-color: #2f1835;
  border-radius: 5px;
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}

footer {
  width: 100%;
  height: 20px;
  position: absolute;
  justify-content: center;
  align-items: center;
  bottom: 10px;
}
footer sub {
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgb(255, 255, 255);
  /* left: 50%;
  transform: translate(-50%, -50%); */
}

footer sub a {
  font-size: 20px;
  color: inherit;
  text-decoration: none;
}

@media screen and (max-width: 650px) {
  body {
    overflow: hidden;
    min-height: 100vh;
  }
}
