@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

* {
  margin: 0;
  bottom: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  background-image: linear-gradient(0deg,
      rgb(247, 247, 247) 23.8%,
      rgb(252, 221, 221) 92%);
  font-family: poppins;
}

header {
  display: flex;
  justify-content: center;
  margin: 1rem 0 0 0;
}

.loading {
  height: 100vh;
  width: 100vw;
  position: absolute;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
  color: white;
  flex-direction: column;
}

.loading img {
  width: 75%;
}

.music-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 90vh;
}

.music-info p {
  text-align: left;
}

.img-container {
  margin: 0 0 3rem 0;
  position: relative;
}

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

.img-container img {
  border-radius: 50%;
  width: 250px;
  animation: rotate 3s 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;
  justify-content: space-around;
  width: 400px;
  margin-top: 1rem;
}

.navigation button {
  border: none;
  background: none;
  font-size: 2rem;
  cursor: pointer;
}

.navigation button:hover {
  color: rgb(20, 20, 20);
}

.action-btn:focus {
  outline: 0;

}

.progress-container {
  margin-top: 1rem;
  width: 300px;
  background: #e1e1e1;
  height: 5px;
  border-radius: 20px;
  cursor: pointer;
}

.progressBar {
  background-color: #ff89a6;
  height: 100%;
  width: 0%;
  border-radius: 20px;
  transition: width 0.1s linear;
  z-index: 1;
}

.song-list-cont {
  position: absolute;
  right: 50px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.song-list>li:hover {
  cursor: pointer;
  color: blue;
}

.red-text {
  color: red;
}

.musify {
  display: inline-block;
  position: relative;
  left: 580px;
}
#repeat{
  margin: -70px;
}

@media only screen and (max-width: 1040px) {
  .song-list-cont {
    height: auto;
    top: 700px;
    left: 50px;
  }

  .musify {
    position: relative;
    left: 130px;
  }
}



/* CODE START FOR SIDEBAR */
.sidebar {
  position: fixed;
  width: 240px;
  left: -240px;
  height: 100%;
  background: #1e1e1e;
  transition: all .5s ease;
  z-index: 1;
}

.sidebar header {
  font-size: 28px;
  color: white;
  line-height: 70px;
  text-align: center;
  background: #1b1b1b;
  user-select: none;
  font-family: 'Montserrat', sans-serif;
}

.sidebar a {
  display: block;
  height: 65px;
  width: 100%;
  color: white;
  line-height: 65px;
  padding-left: 30px;
  box-sizing: border-box;
  border-bottom: 1px solid black;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-left: 5px solid transparent;
  font-family: 'Open Sans', sans-serif;
  transition: all .5s ease;
}

a.active,
a:hover {
  border-left: 5px solid #b93632;
  color: #b93632;
}

.sidebar a i {
  font-size: 23px;
  margin-right: 16px;
}

.sidebar a span {
  letter-spacing: 1px;
  text-transform: uppercase;
}

#check {
  display: none;
}

label #btn {
  /* position: absolute; */
  cursor: pointer;
  color: white;
  border-radius: 5px;
  border: 1px solid #262626;
  margin: 15px 30px;
  font-size: 29px;
  background: #262626;
  height: 45px;
  width: 45px;
  text-align: center;
  line-height: 45px;
  transition: all .5s ease;
}

label #cancel {
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  color: white;
  border-radius: 5px;
  border: 1px solid #262626;
  margin: 15px 30px;
  font-size: 29px;
  background: #262626;
  height: 45px;
  width: 45px;
  text-align: center;
  line-height: 45px;
  transition: all .5s ease;
}

label #cancel {
  opacity: 0;
  visibility: hidden;
}

#check:checked~.sidebar {
  left: 0;
}

#check:checked~label #btn {
  margin-left: 245px;
  opacity: 0;
  visibility: hidden;
}

#check:checked~label #cancel {
  margin-left: 245px;
  opacity: 1;
  visibility: visible;
}

/* @media(max-width : 860px) {
  .sidebar {
    height: auto;
    width: 70px;
    left: 0;
    margin: 100px 0;
  }

  header,
  #btn,
  #cancel {
    display: none;
  }

  span {
    position: absolute;
    margin-left: 23px;
    opacity: 0;
    visibility: hidden;
  }

  .sidebar a {
    height: 60px;
  }

  .sidebar a i {
    margin-left: -10px;
  }

  a:hover {
    width: 200px;
    background: inherit;
  }

  .sidebar a:hover span {
    opacity: 1;
    visibility: visible;
  }
} */

/* CODE END FOR SIDEBAR */