@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "League Spartan", sans-serif;
}

body {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(
      to bottom,
      rgba(241, 240, 240, 0.75),
      rgba(237, 237, 237, 0.75)
    ),
    url(background.png);
  background-size: cover;
}

.glass {
  background: linear-gradient(
    to right,
    rgba(255, 166, 0, 0.402),
    rgb(255, 166, 0)
  );
  backdrop-filter: blur(5px);
  border-radius: 12px;
}
.main {
  height: 80vh;
  width: 75vw;
  display: grid;
  /* grid-template-columns: (auto-fill, (200px, 2fr)); */
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 80px 1fr;
  /* align-items: center; */
  justify-items: center;
  /* justify-content: flex-start; */
}

.main #logo {
  font-size: 2.3vh;
  letter-spacing: 3px;
  display: flex;
  flex-direction: column;
  grid-column: 1/-1;
  justify-content: center;
}
.left img {
  /* height: 45vh; */
  width: 30vw;
  height: 48vh;
  border-radius: 16px;
  box-shadow: 8px 8px 22px rgba(240, 240, 240, 0.385),
    -10px -10px 22px rgba(240, 240, 240, 0.451);
}
.left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;

  /* gap: 10px; */
}

.right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5vh;
  justify-content: center;
}

.right #title {
  text-transform: capitalize;
  font-size: 5vh;
  margin-top: -9vh;
}

.right #artist {
  text-transform: capitalize;
  font-size: 2.3vh;
  margin-top: 3vh;
}

.right .middle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3vh;
  margin: 1.5vh;
  margin-top: 16vh;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 43vh;
  outline: none;
  height: 2px;
  margin: 0 15px;
  border-radius: 9px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 2.5vh;
  height: 2.5vh;
  background: #1971c2;
  border-radius: 50%;
  cursor: pointer;
}

.right input[type="range"] {
  width: 60vh;
}

.main button {
  padding: 2vh 2vh;
  margin: 0 2vh;
}

.right .middle button {
  border: none;
  height: 8vh;
  width: 8vh;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: 0.5s;
  background: rgba(225, 225, 225, 0.4);
  color: rgb(50, 50, 50);
}

.right .duration {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: -15.5vh;
}

.right .duration p {
  font-size: 15px;
  margin-left: 20px;
}

.right #auto {
  margin-top: 13vh;
  border: none;
  border-radius: 9px;
  font-size: 1.8vh;
  padding: 1.4vh 1.8vh;
}

.right button:hover {
  background: rgba(225, 225, 225, 0.908);
}

.right i::before {
  font-size: 2.6vh;
}

.left .volume {
  width: 100%;
  height: 5vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.left .volume p {
  font-size: 15px;
}

.left .volume i {
  cursor: pointer;
  padding: 6px 10px;
  transition: all 400ms ease;
}

.left .volume i:hover {
  background: rgba(225, 225, 225, 0.3);
  border-radius: 20%;
}

.volume #volume-show {
  padding: 6px 10px;
  margin: 0 5px 0 0;
  background: rgba(225, 225, 225, 0.4);
  border-radius: 20%;
}

@media (max-width: 1400px) {
  .left {
    margin: 20px 0;
  }

  .left .volume {
    width: 70%;
    height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .right #title {
    text-transform: capitalize;
    font-size: 2.1rem;
    margin-top: -4rem;
  }

  .right #artist {
    text-transform: capitalize;
    font-size: 1.2rem;
    margin-top: 1rem;
  }

  .right .middle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem;
    margin-top: 6rem;
  }

  .right .duration {
    margin-top: -18.5vh;
  }

  input[type="range"] {
    -webkit-appearance: none;
    width: 20rem;
    outline: none;
    height: 2.5px;
    margin: 0 15px;
    border-radius: 9px;
  }

  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #1971c2;
    border-radius: 50%;
    cursor: pointer;
  }

  .right input[type="range"] {
    width: 50vh;
  }

  .right #auto {
    margin-top: 6.5rem;
  }
}

@media (max-width: 1100px) {
  .right {
    gap: 2vh;
  }

  .left img {
    /* height: 45vh; */
    width: 30vw;
    height: 45vh;
    border-radius: 16px;
    box-shadow: 8px 8px 22px rgba(240, 240, 240, 0.385),
      -10px -10px 22px rgba(240, 240, 240, 0.451);
  }

  .left .volume {
    width: 60%;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .right #title {
    text-transform: capitalize;
    font-size: 1.6rem;
    margin-top: -4.5rem;
  }

  .right #artist {
    text-transform: capitalize;
    font-size: 1rem;
    margin-top: 1rem;
  }

  .right .middle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3.5rem;
    margin-top: 5rem;
  }

  .right .middle button {
    height: 7vh;
    width: 7vh;
  }

  input[type="range"] {
    -webkit-appearance: none;
    width: 15rem;
    outline: none;
    height: 3px;
    margin: 0 15px;
    border-radius: 9px;
  }

  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #1971c2;
    border-radius: 50%;
    cursor: pointer;
  }

  .right input[type="range"] {
    width: 40vh;
  }

  .right .duration {
    margin-top: -19vh;
  }

  .right #auto {
    margin-top: 4.5rem;
    font-size: 0.7rem;
  }
}
@media (max-width: 800px) {
  .main {
    grid-template-columns: 1fr;
    height: 93vh;
    width: 46vh;
  }

  .glass {
    background: linear-gradient(
      to bottom,
      rgba(255, 166, 0, 0.402),
      rgb(255, 166, 0)
    );
    backdrop-filter: blur(5px);
    border-radius: 17px;
  }

  .main #logo {
    font-size: 1rem;
  }

  .left img {
    width: 70vw;
    height: 30vh;
    margin-top: -4rem;
  }

  .left .volume p,
  .left .volume i {
    display: none;
  }

  #volume {
    display: none;
  }
  .volume {
    margin-top: -2rem;
  }

  .right #title {
    text-transform: capitalize;
    font-size: 1.6rem;
    margin-top: -3.5rem;
  }

  .right #artist {
    text-transform: capitalize;
    font-size: 1rem;
    margin-top: 0.1rem;
  }

  .right .middle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 7rem;
    margin-top: 4rem;
  }

  .right .middle button {
    width: 2.5rem;
    height: 2.5rem;
  }

  .right .duration {
    position: relative;
    bottom: 60px;
  }

  input[type="range"] {
    -webkit-appearance: none;
    width: 15rem;
    outline: none;
    height: 2px;
    margin: 0 15px;
    border-radius: 9px;
  }

  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #1971c2;
    border-radius: 50%;
    cursor: pointer;
  }

  .right input[type="range"] {
    width: 38vh;
  }

  .right #auto {
    /* margin-top: 4.5rem;
    font-size: 0.7rem; */
    position: relative;
    bottom: 40px;
  }
}
