/* Using flex with the column direction to
   align items in a vertical direction */

.player {
  padding: 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background-color: #f3d5b1c2;
  border-radius: 30px;
}

.music-player-tabs {
  overflow: hidden;
  margin-top: 20px;
  width: 100%;
}


/* Style the buttons inside the tab */

.music-player-tabs button {
  background-color: #f1d4b394;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}


/* Change background color of buttons on hover */

.music-player-tabs button:hover {
  background-color: #f3d5b1bd;
  color: #b1aeae;
}

.music-player-display-and-buttons {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.music-player-buttons-and-sliders {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
}


/* Create an active/current tablink class */

.music-player-tabs button.active {
  background-color: #f3d5b1;
  color: #DD356E;
}

.music-player-track-list tbody tr {
  position: relative;
}

.music-player-track-list tbody tr.active {
  background-color: #DD356E;
  color: white;
}

@media screen and (min-width:992px) {
  .music-player-track-list tbody tr.active::after {
    color: #333333;
    position: absolute;
    left: 15px;
    top: 5px;
    font-family: 'Font Awesome 5 Free';
    content: "\f144";
    font-size: 20px;
  }
}

.music-player-track-list tbody tr:hover {
  background-color: #bfbbbb;
}

.music-player-track-list tbody tr:hover::after {
  position: absolute;
  left: 15px;
  top: 5px;
  font-family: 'Font Awesome 5 Free';
  content: "\f144";
  font-size: 20px;
  color: #DD356E;
  cursor: pointer;
}

.details {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 50%;
}

.track-art {
  margin: 0 15px 0 60px;
  height: 200px;
  width: 200px;
  background-image: URL("/images/no-track-art.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 15%;
}

.track-info {
  width: 50%;
}


/* Changing the font sizes to suitable ones */

.now-playing {
  font-size: 1rem;
}

.track-name {
  font-size: 3rem;
}

.track-artist {
  font-size: 1.5rem;
}


/* Using flex with the row direction to
     align items in a horizontal direction */

.music-player-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.music-player-track-list-container {
  width: 100%;
  height: 500px;
  overflow-y: auto;
  font-size: 14px;
}

.music-player-track-list {
  position: relative;
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  background-color: #ebe6e6;
}

.music-player-track-list thead {
  position: sticky;
  top: 0;
  background-color: #f3d5b1;
  padding: 10px;
  z-index: 2;
  cursor: pointer;
}

.music-player-track-list td,
.music-player-track-list th {
  padding: 10px;
  cursor: pointer;
}

.playpause-track,
.prev-track,
.next-track {
  padding: 25px;
  opacity: 0.8;
  /* Smoothly transition the opacity */
  transition: opacity .2s;
}


/* Change the opacity when mouse is hovered */

.playpause-track:hover,
.prev-track:hover,
.next-track:hover {
  opacity: 1.0;
}


/* Define the slider width so that it scales properly */

.music-player-slider-container {
  width: 75%;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Modify the appearance of the slider */

.seek_slider,
.volume_slider {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 5px;
  background: black;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}


/* Modify the appearance of the slider thumb */

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


/* Change the opacity when mouse is hovered */

.seek_slider:hover,
.volume_slider:hover {
  opacity: 1.0;
}

.seek_slider {
  width: 60%;
}

.volume_slider {
  width: 30%;
}

.current-time,
.total-duration {
  padding: 10px;
}

i.fa-volume-down,
i.fa-volume-up {
  padding: 10px;
}


/* Change the mouse cursor to a pointer
     when hovered over */

i.fa-play-circle,
i.fa-pause-circle,
i.fa-step-forward,
i.fa-step-backward {
  cursor: pointer;
}

@media screen and (max-width:991px) {
  .music-player-display-and-buttons {
    flex-direction: column;
    align-items: center;
  }
  .details {
    width: 100%;
  }
  .track-art {
    margin: 0 15px 0 0px;
    height: 150px;
    width: 150px;
  }
  .track-name {
    font-size: 1.8rem;
  }
  .track-album {
    font-size: 1.45rem;
  }
  .track-artist {
    font-size: 1.25rem;
  }
  .music-player-slider-container,
  .music-player-buttons-and-sliders {
    width: 100%;
  }
  .music-player-buttons {
    font-size: 12px;
  }
  .playpause-track,
  .prev-track,
  .next-track {
    padding: 10px 25px 10px 25px;
  }
}

#lyricsContainer {
  display: none;
  background-color: black;
  color: white;
  white-space: pre-wrap;
  text-align: center;
  padding: 40px;
  min-height: 100%;
}


.context-menu {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  min-width: 150px;
  z-index: 1000;
}
.context-menu button {
  width: 100%;
  padding: 10px;
  background: white;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}
.context-menu button:hover {
  background: #f0f0f0;
}
.link {
  display: inline-block;
  padding: 10px;
  margin: 20px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
}
.modal {
    display: none;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    height: 90px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2000;
}

.modal-content {
  display: flex;
  justify-content: center;
}
.modal-content p {
  margin-bottom: unset;
}