/* Images created by: https://unsplash.com/@pawel_czerwinski */

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

html {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #c9ced3;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Spartan, sans-serif;
  font-size: 12px;
}

.player-container {
  height: 500px;
  width: 400px;
  background-color: #e4e4e4;
  border-radius: 20px;
  box-shadow: 0 15px 30px 5px rgba(0, 0, 0, 0.35);
}


.image-container {
  width: 300px;
  height: 300px;
  position: relative;
  top: -50px;
  left: 50px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 5px 30px 5px rgba(0, 0, 0, 0.55);
}

h2 {
  font-size: 25px;
  text-align: center;
  margin: 0;
}

h3 {
  font-size: 20px;
  text-align: center;
  font-weight: 400;
  margin: 5px 0 0;
}

/* Progress */
.progress-container {
  background-color: #fff;
  border-radius: 5px;
  cursor: pointer;
  margin: 40px 20px;
  height: 4px;
  width: 90%;
}

.progress {
  background-color: #242323;
  border-radius: 5px;
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}

.duration-wrapper {
  position: relative;
  top: -25px;
  display: flex;
  justify-content: space-between;
}

/* Controls */
.volume-controls {
  display: inline-block;
  position: relative;
  top: -10px;
  left: 20px;
  width: 80px;
}

.volume-icon {
  display: inline-block;
  width: 20%;
  margin: 3px;
}

.volume-range {
  display: inline-block;
  background-color: #fff;
  border-radius: 5px;
  cursor: pointer;
  margin: 7px 2px;
  height: 4px;
  width: 60%;
}

.volume-bar {
  background-color: #242323;
  border-radius: 5px;
  height: 100%;
  width: 100%;
  transition: width 0.1s linear;
}

.volume-bar:hover {
  background-color: dodgerblue;
}

#volume-icon {
  font-size: 14px;
}

.player-controls {
  display: inline-block;
  position: relative;
  top: -15px;
  left: 45px;
  width: 200px;
}

.fas {
  font-size: 30px;
  color: rgb(129, 129, 129);
  margin-right: 30px;
  cursor: pointer;
  user-select: none;
}

.fas:hover {
  filter: brightness(80%);
}

.main-button {
  font-size: 40px;
  position: relative;
  top: 3px;
}

/* Media Query: iPhone (Vertical) */
@media only screen and (max-width: 376px), (orientation: vertical) {
  .player-container {
    width: 95vw;
  }

  .image-container {
    left: 29px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 15px;
  }

  .player-controls {
    top: -10px;
    left: 100px;
  }
}
