@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;1,100;1,200;1,300;1,400;1,500;1,600&display=swap");

:root {
  --padding: 1rem;
  --margin: 1rem;
  --border-radius: 0.35rem;
  --clr-primary: #222831;
  --clr-secondary: #4168E0;
  --gap: 1rem;
}

/*==================
  Globle Styles
  ==================*/

*,
*::after,
*::before {
  font-family: "Poppins", sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
  padding: 0;
}

body {
  scroll-behavior: smooth;
  height: 100vh;
  overflow: hidden;
}

.error {
  display: none;
}

/*==================
  Navbar
  ==================*/

.navbar {
  z-index: 1;
  position: absolute;
  background-color: var(--clr-primary);
  padding: 0.25rem;
  width: 100%;
}

.logo {
  padding: 0;
  margin: 0;
}

/*==================
  Player
  ==================*/

.player {
  overflow: hidden; 
  pointer-events: none;
  height: 100%;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.player > .yt-player {
  position: absolute;
  top: -60px;
  left: -155px;
  width: 120%;
  height: 120%;
}

/*==================
  Controls 
  ==================*/

.controls {
  position: absolute;
  top: 100px;
  right: 0;
  width: 400px;
  height: 500px;
  background-color: #222831bb;
  border-radius: var(--border-radius) 0 0 var(--border-radius) ;
  padding: var(--padding);
  color: white;
  transition: right 0.25s ease-in-out;
}

.controls-closed {
  right: -400px;
}

.close-open-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 30px;
  height: 45px;
  background-color: #222831;
}

.controls-close-btn {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  left: -30px;
}

.controls > .time {
  text-align: end;
  margin-bottom: var(--margin);
  font-weight: 500;
}

.controls > .change-space {
  display: flex;
  justify-content: space-between;
}

.icon-btn {
  color: white;
  background-color: transparent;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.25s ease-out;
}

.icon-btn:hover {
  transform: scale(1.2);
}

.speaker-icon {
  font-size: 1.5rem;
}

.controls > .spotify-playlist {
  margin: var(--margin) 0 0.2rem 0;
}

.controls > .audio-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.audio-control > .audio-slider {
  width: 90%;
}

.audio-slider > .slider {
  width: 90%;
  height: 10px;
  border-radius: 5px;  
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}


.audio-slider > .slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%; 
  background: var(--clr-secondary);
  cursor: pointer;
}

.audio-slider > .slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--clr-secondary);
  cursor: pointer;
}

/*==================
  Daily Motivation 
  ==================*/
  
  .daily-motivation {
    padding: var(--padding);
    width: 600px;
    position: absolute;
    top: 50px;
    left: 0;
    color: white;
    text-shadow: -1px 0px 7px rgba(128, 0, 0, 0.8);
  }

  .daily-motivation > p {
    font-weight: 300;
  }

  .daily-motivation > .quote {
    padding-bottom: .2rem;
  }

  .daily-motivation > .quote-title {
    float: right;
  }


/*==================
  Media Queries 
  ==================*/

  @media (max-width: 865px) {
    body {
      background-color: var(--clr-primary);
    }

    .player {
      display: none;
    }

    .error {
      color: white;
      text-align: center;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100%;
    }

    .controls {
      display: none;
    }

    .daily-motivation {
      display: none;
    }
  }
  