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

body{
  display: flex;
justify-content: center;
  align-items: center;
height: 100vh;
background: linear-gradient(to bottom , #2887e3 50%, #16181e 50%);
  
}


.container {
  position: relative;
  box-shadow: 0 0 0.5rem lightcyan;
  background-color: #e7e7e7;
  padding: 1.5rem 1rem;
  border-radius: 0.2rem;
  width: 300px;
  height: auto;
}

img{
  height: 270px;
}
#searchBar{
  
  width: 75%;
  margin-bottom: 0.5rem;
  outline: none;
  border: none;
  border-bottom: 2px solid #2887e3;
  background-color: transparent;
  height: 1.2rem;
  padding:0.75rem 0.1rem;
  font-size: 1.2rem;
}
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;  
    
}

.playlistToggle {
  display: flex;
  justify-content: space-between;
  width: 100%;
  
  
}

.playlistToggle i {
  display: block; /* or inline-block */
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  transition: linear 500ms;
}
/* main poster*/
.posterAndTitle{
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  justify-content: center;
  align-items: center
}
#playlistSongTitle{
  font-size: 1.1rem;
}
img{
  margin-bottom: 0.5rem;
}

.player{
  display: flex;
  flex-direction: column;
  align-items: center;
   justify-content: center;
  width: 100%;
}
.controls{
  font-size: 1.75rem;
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  align-items: center;
  margin: 2rem 0 1rem 0;
}


.fa-repeat, .fa-random{
  margin-top: 0.18rem;
  font-size: 1.4rem;
  color: gray;
}

.loopingOrShuffling{
  margin-top: 0.18rem;
  font-size: 1.4rem;
  color: #2887e3;
}

.playPause{
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  height: 2rem;
  width: 2rem;
  background-color: #2887e3;
  border-radius: 50%;
  padding: 1.75rem;
}
.loadbar{
  position: relative;
  width: 100% ;
  background-color: lightgray;
  height: 4px;
  border-radius: 0.2rem;
}

input[type="range"] {
     -webkit-appearance: none;
     appearance: none;
      position: absolute;
      width: 100%;
      height: 5px;
      -webkit-appearance: none;
      appearance: none;
      background: lightgray;
      outline: none;
      border-radius: 5px;
      -webkit-transition: background 0.2s ease-in-out;
      transition: background 0.2s ease-out;
    }
    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 8px;
      height: 8px;
      background: #2887e3;
      border-radius: 50%;
      cursor: pointer;
      transition: background-color 0.2s ease-out;
    }


/* Remove transitions and animations */
input[type="range"] {
    transition: none;
}
.timer{
  margin-top: 0.3rem;
  padding: 0 0.2rem;
  width: 95%;
  display: flex;
  justify-content: space-between;
}

.playlistArea{
  display: none;
  width: 100%;
  height: 88%;
  background-color: #e7e7e7;
  position: absolute;
  right: 0rem;
  top: 3.5rem ;
  overflow: hidden;
  overflow-y: scroll;
}

.displaying{
  display: inline-flex;
  
  flex-direction: column;
}

.songDisplay{
  margin: 0.5rem 1rem;
  display: flex;
  height: fit-content;
  width: 100%;
  object-fit: contain;
}

.songDisplay img{
  height: 2.5rem;
  width: auto;
  margin: 0 1rem 0 0 ;
  border-radius: 0.15rem;
}

.currentyPlayingOnPlaylist{
  color: #74b3ce;
}
