/****** presets ******/
@font-face{
  font-family: 'Lato';
  src: url(../assets/fonts/Lato-Regular.ttf);
}

:root {
  --background-transition: 1500ms;
  --border-radius: 8px;
  --standard-icon-width: 20%;
  --initial-accent: #b6f9cd99;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
*:focus {
  outline: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/****** general ******/
.body {
  width: 100vw;
  height: 100vh;
  font-size: 26px;
  font-family: 'Lato', 'Arial', sans-serif;

  color: #fff;
  background-image: url(../assets/img/backgrounds/2.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  transition: background-image var(--background-transition);
}

.background {
  width: 100%;
  height: 100%;
  position: relative;

  background-color: #b6f9cd99;
  transition: background-color var(--background-transition);
}

.main {
  width: 100%;
  height: 100%;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.icon {
  width: 100%;
  filter: brightness(0) saturate(100%) invert(93%) sepia(93%) saturate(0%) hue-rotate(298deg) brightness(107%) contrast(106%);
}


/****** player *****/
.player {
  width: 90%;
  height: 90%;
  max-width: 550px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  background-color: #0008;
  border-radius: 100%;
  border-left: 25px solid var(--initial-accent);
  border-right: 25px solid var(--initial-accent);
  transition: border-color var(--background-transition);
  box-shadow: inset 0px 0px 10px 1px #444;
}

.player__song-author {
  font-weight: bold;
  color: #bababa;
}

.player__song-name {
  margin: 5px 0px 15px 0px;
  font-size: 28px;
}

.player__song-cover {
  width: 40%;
  border-radius: 100%;
  border: 2px solid #fff;
  animation: 15s infinite linear;
  animation-name: playing;
  animation-play-state: paused;
}

.player__container {
  width: 100%;
  margin-top: 15px;
  font-size: 0.85em;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.duration {
  width: 100%;
}
.player__range-duration {
  width: 40%;
  margin: 0 10px;
}

.player__btn {
  width: 10%;
  cursor: pointer;
  border: none;
  background-color: transparent;
  transition: transform 100ms;
}
.player__btn:hover {
  transform: scale(1.05);
}

.play-pause {
  width: 13%;
  margin: 0 10px;
}

.player__volume-icon {
  width: 30px;
}
.player__range-volume {
  width: 20%;
  margin-right: 10px;
}
.volume {
  width: 100%;
}


/****** range styling *****/
input[type=range] {
  height: 25px;
  -webkit-appearance: none;
  background-color: transparent;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;

  cursor: pointer;
  box-shadow: 2px 2px 4px #444;
  background: #fff;
  border-radius: var(--border-radius);
}
input[type=range]::-webkit-slider-thumb {
  box-shadow: 3px 3px 3px #444;
  border: 2px solid #fff;
  height: 16px;
  width: 22px;
  border-radius: 100%;
  background: #555;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -4px;
  transition: 100ms;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 10px;

  cursor: pointer;
  box-shadow: 2px 2px 4px #444;
  background: #fff;
  border-radius: var(--border-radius);
}
input[type=range]::-moz-range-thumb {
  box-shadow: 3px 3px 3px #444;
  border: 2px solid #fff;
  height: 16px;
  width: 22px;
  border-radius: 100%;
  background: #555;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -4px;
  transition: 100ms;
}

input[type=range]::-ms-track {
  width: 100%;
  height: 10px;

  cursor: pointer;
  box-shadow: 2px 2px 4px #444;
  background: #fff;
  border-radius: var(--border-radius);
}
input[type=range]::-ms-thumb {
  box-shadow: 3px 3px 3px #444;
  border: 2px solid #fff;
  height: 16px;
  width: 22px;
  border-radius: 100%;
  background: #555;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -4px;
  transition: 100ms;
}



/****** footer *****/
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 7%;
  padding-right: 20px;

  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: #000;
}

.footer__link {
  transition: transform 100ms;
}
.footer__link:hover {
  transform: scale(1.1);
}

.footer__year {
  margin: 0 40px;
  font-weight: bold;
  font-size: 20px;
}

.footer__icon {
  width: 25px;
}
.footer__icon.rs {
  width: 50px;
}

/****** animation *****/
 @keyframes playing {
  from {
    transform: rotateZ(0deg);
  } to {
    transform: rotateZ(360deg);
  } 
}


/****** media queries *****/
@media (max-width: 500px) {
  .body {
    font-size: 20px;
  }

  .player__song-name {
    font-size: 22px;
  }

  .player__range-duration {
    width: 50%;
  }

  .player__range-volume {
    width: 30%;
  }

  .player__btn {
    width: 15%;
  }
  
  .play-pause {
    width: 18%;
  }
}
