* {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}
body {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main {
  position: relative;
  height: 80%;
  width: 80%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to right,
    #360167,
    #6b0772,
    #af1281,
    #cf268a,
    #e74a76
  );
}
.main button {
  padding: 10px 12px;
  margin: 0 10px;
}
.main #logo {
  position: absolute;
  top: 10px;
  left: 30px;
  font-size: 25px;
  color: #ccc;
}
.main #logo i {
  margin-right: 15px;
}

/* left & right part */
.right,
.left {
  position: relative;
  height: 100%;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* song image */
.left img {
  border: 2px solid white;
  height: 20rem;
  object-fit: cover;
  width: 60%;
  border-radius: 50%;
  box-shadow: 1px 0px 20px 12px rgba(240, 240, 240, 0.2);
}

/* both range slider part */
input[type="range"] {
  -webkit-appearance: none;
  width: 50%;
  outline: none;
  height: 3px;
  margin: 0 15px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  background: black;
  border-radius: 50%;
  cursor: pointer;
}
.right input[type="range"] {
  width: 50%;
}

/* volume part */
.left .volume {
  position: absolute;
  bottom: 10%;
  left: 0;
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.left .volume p {
  font-size: 15px;
}
.left .volume i {
  cursor: pointer;
  padding: 8px 12px;
  background: linear-gradient(
    to right,
    #360167,
    #6b0772,
    #af1281,
    #cf268a,
    #fb8cab
  );
}
.left .volume i:hover {
  background: rgba(245, 245, 245, 0.1);
}
.volume #volume_show {
  padding: 8px 12px;
  margin: 0 5px 0 0;
  background: rgba(14, 3, 3, 0.342);
}

/* right part */
.right .middle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.right .middle button {
  border: none;
  height: 70px;
  width: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: 0.5s;
  background: rgba(255, 255, 255, 0.363);
}
.right .song-title {
  justify-content: center;
  text-align: center;
}
.right #title {
  position: absolute;
  top: 3rem;
  width: 100%;
  transform: translateX(-50%);
  text-transform: capitalize;
  color: #fff;
  font-size: 2.5rem;
}
.right #artist {
  position: absolute;
  top: 6.5rem;
  width: 100%;
  transform: translateX(-50%);
  text-transform: capitalize;
  color: #fff;
  font-size: 1.3rem;
}
.right .timer {
  position: relative;
  font-size: 1.5rem;
  color: #fff;
  top: 2rem;
}
.right .duration {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 20px;
  margin-top: 40px;
}
.right .duration p {
  color: #fff;
  font-size: 15px;
  margin-left: 20px;
}
.right #auto {
  font-size: 18px;
  cursor: pointer;
  margin-top: 45px;
  border: none;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(
    to right,
    #360167,
    #6b0772,
    #af1281,
    #cf268a,
    #fb8cab
  );
  outline: none;
  border-radius: 10px;
}
.right #auto i {
  margin-left: 8px;
}
#play {
  background: linear-gradient(to right, #360167, #6b0772, #af1281, #cf268a);
}
.right button:hover {
  background: linear-gradient(to right, #360167, #6b0772, #af1281, #cf268a);
}
.right i:before {
  color: #fff;
  font-size: 20px;
}

.right .show_song_no {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: #fff;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
}
.right .show_song_no p:nth-child(2) {
  margin: 0 5px;
}

@media screen and (max-width: 1100px) {
  .main {
    position: relative;
    height: 100%;
    width: 100%;
  }
  .right,
  .left {
    height: 70%;
    width: 50%;
  }
  .left .volume {
    bottom: 25%;
  }
  .left img {
    position: relative;
    object-fit: cover;
    height: 25rem;
    width: 25rem;
    bottom: 4rem;
  }
  .song-title #title {
    font-size: 4rem;
    top: 10rem;
  }
  .right #artist {
    top: 15rem;
    font-size: 2.3rem;
  }
  .right .timer {
    font-size: 2.5rem;
    top: 5rem;
  }
  .right .duration {
    bottom: 25%;
  }
  .right .show_song_no {
    height: 70px;
    width: 70px;
  }
  .right .show_song_no p {
    font-size: 2rem;
  }
}
@media screen and (max-width: 800px) {
  .left img {
    height: 20rem;
    width: 20rem;
  }
  .song-title #title {
    font-size: 3rem;
    top: 7rem;
  }
  .right #artist {
    top: 10.5rem;
    font-size: 1.8rem;
  }
  .right .show_song_no {
    height: 40px;
    width: 46px;
  }
  .right .show_song_no p {
    font-size: 1.5rem;
  }
  .right .timer {
    font-size: 2rem;
    top: 3rem;
  }
}
@media screen and (max-width: 600px) {
  .right,
  .left {
    height: 90%;
  }
  .left img {
    height: 15rem;
    width: 15rem;
  }
  .song-title #title {
    font-size: 2.5rem;
    top: 7rem;
  }
  .right .middle button {
    height: 3.5rem;
    width: 3.5rem;
  }
  .right #artist {
    top: 10rem;
    font-size: 1.5rem;
  }
  .right .show_song_no {
    height: 30px;
    width: 46px;
  }
  .right .show_song_no p {
    font-size: 1.2rem;
  }
  input[type="range"]::-webkit-slider-thumb {
	height: 13px;
	width: 13px;
	border-radius: 20%;
  }
  .right input[type="range"] {
	width: 50%;
  }
}
@media screen and (max-width: 450px) {
  .right,
  .left {
    height: 70%;
  }
  
  .left img {
    position: relative;
    object-fit: cover;
    height: 10.3rem;
    width: 10.3rem;
    bottom: 4rem;
  }
  .left .volume {
    bottom: 25%;
  }
  .song-title #title {
    font-size: 1.8rem;
    top: 5rem;
  }
  .right #artist {
    top: 7.5rem;
    font-size: 1.1rem;
  }
  .right .middle button {
    height: 2.5rem;
    width: 2.5rem;
  }
  .right #auto {
    font-size: 17px;
    margin-top: 30px;
    padding: 7px 14px;
  }
  .right .timer {
    font-size: 1.2rem;
    top: 1rem;
  }
  .right .duration {
    bottom: 25%;
  }
  .right .show_song_no {
    height: 20px;
    width: 25px;
  }
  .right .show_song_no p {
    font-size: 1.1rem;
  }
}
