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

* {
  box-sizing: border-box;
}

body {
  /* background-image: url(/images/wp.webp); */
  /* background-image: linear-gradient(115deg, cyan, rgb(252, 150, 252), pink); */
  height: 100vh;
  /* display: flex; */
  /* flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Lato", sans-serif;
  margin: 0;
  overflow-x: hidden;  */
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.music-container {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 20px 20px 0 rgba(59, 59, 59, 0.6);
  display: flex;
  padding: 30px 80px;
  position: relative;
  margin: 100px 0;
  z-index: 10;
  max-width: 600px;

  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  backdrop-filter: blur(4.3px);
  -webkit-backdrop-filter: blur(4.3px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.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 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;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.action-btn {
  border: 0;
  color: #006164;
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
  margin: 0 20px;
  background: none;
}
.action-btn:hover {
  transform: scale(0.8);
  color: rgb(72, 90, 248);
}

.action-btn.action-btn-big {
  color: #006164;
  font-size: 30px;
}

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

.music-info {
  background-image: linear-gradient(
    60deg,
    rgb(2, 116, 116) 20%,
    rgb(24, 57, 95),
    rgb(39, 74, 104)
  );
  /* background-color: rgba(99, 206, 248, 0.5); */
  border-radius: 15px 15px 0 0;
  position: absolute;
  top: 0;
  left: 25px;
  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;
  /* height: 90px; */
}

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

.music-info h4 {
  margin: 0;
}

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

.progress {
  background-image: linear-gradient(90deg, pink, rgb(103, 231, 214));
  border: none;
  background-color: #0a0a0a;
  border-radius: 5px;
  /* height: 100%; */
  height: 5px;
  width: 0%;
  transition: width 0.1s linear;
}
.progress,
.progress-stacked {
  height: 5px !important;
}
#title {
  color: #fff;
}

@media (max-width: 768px) {
  .music-container {
    padding: 20px;
  }
  .img-container::after {
    display: none;
  }

  .music-info {
    padding: 30px;

    background: rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    backdrop-filter: blur(4.3px);
    -webkit-backdrop-filter: blur(4.3px);
    border: 1px solid rgba(255, 255, 255, 0.16);
  }
  .img-container img {
    position: inherit;
  }
}

@media (max-width: 576px) {
  .music-container {
    padding: 20px;
    display: block;
  }

  .img-container::after {
    display: none;
  }
  .music-info {
    padding: 40px;

    background: rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    backdrop-filter: blur(4.3px);
    -webkit-backdrop-filter: blur(4.3px);
    border: 1px solid rgba(255, 255, 255, 0.16);

    margin: -10px;
  }
}

/* volume */
/* Add the volume bar styles */
.volume-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 10px;
  left: 25px;
}

.volume-container i {
  color: #006164;
  font-size: 20px;
  margin: 0 5px;
  cursor: pointer;
}

.volume-container input[type="range"] {
  -webkit-appearance: none;
  width: 100px;
  height: 3px;
  border-radius: 5px;
  background: #006164;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}

.volume-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.volume-container input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

/* Add the background video styles */
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: -1;
  filter: contrast(500px);
}

/* Adjust the z-index of .music-container to make sure it's above the video */
.music-container {
  z-index: 10;
}
