*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #c9ced3;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Raleway", sans-serif;
  font-size: 1.4rem;
  transition: all 0.25s;
}

.player-container {
  display: flex;
  align-items: center;
  flex-direction: column;

  padding: 2.5rem;
  margin: 1.5rem;
  width: 70rem;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  box-shadow: 0 1rem 5rem rgba(0, 0, 0, 0.2);
}

.img-container {
  height: 32rem;
  width: 32rem;
  margin-bottom: 2rem;
}

.img-container img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0.5rem 3.5rem rgba(0, 0, 0, 0.2);
}

h2 {
  font-size: 2.5rem;
  text-align: center;
}

h3 {
  font-size: 2rem;
  text-align: center;
  font-weight: 400;
}

/* Progress */
.progress-container {
  background: #f7f7f7;
  box-shadow: 0 0.5rem 2.5rem rgba(0, 0, 0, 0.25);
  border-radius: 5px;
  cursor: pointer;
  margin: 4rem 2rem;
  height: 6px;
  width: 90%;
}

.progress {
  background: #252525;
  border-radius: 5px;
  height: 100%;
  /* change this to show progress */
  width: 0%;
  transition: width 0.1s linear;
  transition: opacity 0.15s;
  opacity: 0.8;
}

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

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.8rem;
  margin-bottom: 2.5rem;
}

.fas {
  font-size: 3rem;
  color: #252525;
  opacity: 0.8;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}

.fas:hover {
  opacity: 1;
}

.main-button {
  font-size: 6.4rem;
}

/* Volume Controls */
.volume-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.volume-slider {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 6px;
  background: #252525;
  border-radius: 5px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: white;
  cursor: pointer;
  border-radius: 50%;
}

.progress:hover,
.volume-slider:hover {
  opacity: 1;
}

/* Media Query: Tablets and Mobiles */
@media only screen and (max-width: 37.5em) {
  html {
    font-size: 50%;
  }

  .player-container {
    width: 100%;
    /* padding: 2.5rem 1.5rem; */
  }

  .img-container {
    height: 24rem;
    width: 24rem;
  }
}
