* {
  -webkit-tap-highlight-color: transparent; /* Removes blue highlight */
}

body {
  background-color: #141414;
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
}

button {
  cursor: pointer;
  border: none;
}

.navbar {
  height: 100vh;
  width: 20vw;
  background-color: #141414;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.nav-keys {
  height: 12vh;
  display: flex;
  flex-direction: column;
  color: white;
  margin: 0.3rem;
  background-color: #212121;
  border-radius: 0.6rem;
  justify-content: center;
}

.home,
.search,
.library-nav {
  height: 6vh;
  cursor: pointer;
  font-size: 1.2rem;
  font-family: "Lexend Deca", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  align-content: center;
  padding-left: 1rem;
  display: flex;
  align-items: center;
}

.fa-solid.fa-magnifying-glass,
.fa-solid.fa-house,
.fa-solid.fa-album-collection {
  margin-right: 1rem;
}

.fa-solid.fa-magnifying-glass + span,
.fa-solid.fa-house + span,
.fa-solid.fa-album-collection + span {
  font-size: 1rem;
}

.fa-solid.fa-plus {
  margin-left: auto;
  margin-right: 6%;
}

.fa-solid.fa-arrow-right {
  margin-right: 6%;
}

.dull-options {
  opacity: 0.6;
  transition: 0.2s;
  cursor: pointer;
}

.library {
  display: flex;
  flex-direction: column;
  color: white;
  margin: 0.3rem;
  background-color: #212121;
  border-radius: 0.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.browse-podcast,
.create-playlist {
  font-family: "Gabarito", serif;
  font-optical-sizing: auto;
  font-style: normal;
  padding-left: 5%;
  padding-right: 5%;
  padding-bottom: 5%;
  margin: 0.3rem;
  background-color: #313131;
  border-radius: 0.6rem;
}

.heading {
  font-size: 1.1rem;
  font-weight: 300;
}

.description {
  font-size: 0.8rem;
}

.create-playlist-button {
  font-family: "Ubuntu";
  border-radius: 3rem;
  width: 10rem;
  height: 2rem;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.main {
  height: 100vh;
  margin: 0.3rem;
  background-color: #212121;
  flex-grow: 1;
  border-radius: 0.6rem;
  display: flex;
  flex-direction: column;
}

.main-header {
  flex-shrink: 0;
  height: 6vh;
  border-radius: 0.6rem;
  background-color: #212121;
  color: white;
  font-size: 1.2rem;
  font-family: "Lexend Deca", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.header-left,
.header-right {
  flex-grow: 1;
  display: flex;
}

.header-left {
  justify-content: flex-start;
  gap: 1rem;
  padding-left: 1rem;
}

.header-right {
  justify-content: end;
  gap: 1rem;
  padding-right: 1rem;
}

#left-nav,
#right-nav,
#user {
  font-size: 1.2rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
}

#install {
  font-family: "Ubuntu";
  border-radius: 3rem;
  height: 2rem;
  width: 8rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

#upgrade {
  font-family: "Ubuntu";
  border-radius: 3rem;
  width: 10rem;
  height: 2rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: white;
  color: black;
  transition: all 0.1s ease-in-out;
}

.fa-regular.fa-circle-down {
  margin-right: 0.3rem;
}

.header-button-nav,
.header-button-user {
  background-color: #141414;
  color: white;
  transition: 0.3s;
}

.header-button-nav:hover {
  background-color: #313131;
  color: white;
}

.header-button-user:hover {
  background-color: white;
  color: #141414;
}

.main-body {
  font-family: "Lexend Deca", serif;
  font-optical-sizing: auto;
  font-style: normal;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: scroll;
  transition: margin-bottom 1s ease;
  ::-webkit-scrollbar{ 
    display: none;
  }
  scrollbar-width: none;
}

@media (max-width: 1000px) {
  .dull-options {
    opacity: 1;
  }
  .mobile-hide {
    display: none !important;
  }
  #install, #user {
    font-size: 1.2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
  }
  .fa-regular.fa-circle-down {
    margin-right: 0rem;
  }
  #install:hover,
  #user:hover {
    pointer-events: none;
  }
  .song-playing{
    flex-grow: 1;
  }
  .song-playing > .details{
    flex-grow:1;
  }
  .song-playing > .music-tools{
    width: 9rem;
    font-size: 1.2rem;
  }
  input[type="range"]::-webkit-slider-thumb{
    opacity: 0;
    width: 0;
    height: 0;
  }
  input[type="range"]::-moz-range-thumb{
    opacity: 0;
    width: 0;
    height: 0;
  }
  .media-player{
    flex-wrap: wrap;
  }
  .main-body{
    margin-bottom: 5rem;
  }
}

@media (min-width: 1000px) {
  .desktop-hide {
    display: none !important;
  }
  .song-playing > .music-tools > .media-play-pause-button{
    display: none;
  }
}

.recently-played,
.podcasts-heading {
  flex-shrink: 0;
  height: 6vh;
  color: white;
  display: flex;
  flex-direction: row;
  padding-left: 1rem;
  font-size: 1.3rem;
  font-family: "Lexend Deca", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  display: flex;
  align-items: center;
}

.mobile-header {
  color: white;
  display: flex;
  flex-direction: row;
  font-size: 1.3rem;
  font-family: "Lexend Deca", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.recently-played-songs,
.podcasts {
  flex-grow: 1;
  padding: 0.6em;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  justify-items: center;
  gap: 0.6rem;
}

.top-songs,
.podcast-songs {
  height: 18rem;
  width: 12rem;
  min-width: 12rem;
  background-color: transparent;
  color: white;
  padding: 1.3rem;
  border-radius: 0.6rem;
  box-sizing: border-box;
}

.podcast-songs > .img {
  height: 75%;
}

.img {
  height: 60%;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 0.6rem;
  display: flex;
  flex-direction: row-reverse;
  align-items: end;
}

.img-detail {
  display: flex;
  flex-direction: column;
}

.heading,
.song {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  font-weight: 600;
  align-content: center;
}

.heading-detail,
.song-detail {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.589);
  text-align: left;
}

.media-player {
  position: fixed;
  bottom: -5rem;
  padding: 0.3rem 0.3rem;
  border-radius: 0.6rem;
  height: 5rem;
  width: 100vw;
  background-color: #141414;
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  opacity: 0;

  transition: opacity 1s ease, bottom 1s ease;
}

.media-player > .img {
  width: 4rem;
  height: 4rem;
  align-self: center;
  margin-left: 0.5rem;
  flex-shrink: 0;
  font-family: "Lexend Deca", serif;
  font-optical-sizing: auto;
  font-style: normal;
  background-size: 3rem 3rem;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgb(123, 225, 148);
}

.song-playing {
  color: white;
  display: flex;
  flex-direction: row;
}

.song-playing > .details {
  width: 10vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.song-playing > .details > .song-detail,
.song {
  flex-grow: 1;
  margin: 0.06rem;
}

.song-playing > .details > .song {
  font-size: 1rem;
  font-weight: 600;
  align-content: flex-end;
  padding-left: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
}

.song-playing > .details > .song-detail {
  color: rgba(255, 255, 255, 0.589);
  font-size: 0.8rem;
  font-weight: 200;
  align-content: flex-start;
  padding-left: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
}

.music-tools {
  width: 5rem;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
}

.controls {
  min-width: 33rem;
  flex-grow: 1;
  color: white;
  display: flex;
  flex-direction: column;
}

.control-buttons {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  font-size: 1rem;
  color: white;
}

.control-buttons > .fa-solid {
  padding: 0.3rem;
}

.control-buttons > .media-play-pause-button {
  background-color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
  transition: transform 0.3s ease;
}

.media-play-pause-button {
  cursor: pointer
}

.control-bar {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
}

.current-play-time {
  flex-grow: 1;
  align-content: center;
  text-align: end;
  padding-right: 0.6rem;
}

.total-play-time {
  flex-grow: 1;
  align-content: center;
  padding-left: 0.6rem;
  text-align: start;
}

.play-bar {
  width: 60%;
  display: flex;
  align-items: center;
  position: relative;
}
 
.progress-bar {
  width: 100%;
}

.progress-bar-fill {
  background-color: rgb(77, 208, 77);
  border-radius: 0.5rem;
  position: absolute;
  height: 0.2rem;
  left: 0.12rem;
  cursor: pointer;
  pointer-events: none;
}
input[type="range"] {
  height: 1rem;
  -webkit-appearance: none; /* For Safari, Chrome, Edge */
  appearance: none; /* For Firefox */
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  background: white;
  border-radius: 0.5rem;
  height: 0.2rem;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.7rem;
  height: 0.7rem;
  background: rgb(77, 208, 77);
  border-radius: 50%;
  margin-top: -0.25rem;
}

input[type="range"]::-moz-range-track {
  background: white;
  border-radius: 0.5rem;
  height: 0.2rem;
}

input[type="range"]::-moz-range-thumb {
  width: 0.7rem;
  height: 0.7rem;
  background: rgb(77, 208, 77);
  border-radius: 50%;
  cursor: pointer;
}

.volume-options {
  color: white;
  width: 20rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  min-width: 18rem;
}

.volume-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.volume-bar {
  width: 8vw;
  height: 0.3rem;
  display: flex;
  align-items: center;
  position: relative;
}

.dull-options:hover {
  opacity: 1;
}

.enlarge-options:hover {
  cursor: pointer;
  transform: scale(1.03);
  transition: 0.1s;
}
