body {
  font-family: Arial, sans-serif;
  background-color: #d3d3d3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

header {
  width: 100%;
  background-color: #333;
  color: white;
  padding: 6px;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

a:link {
  text-decoration: none;
  color: #fff;
}

.player-container {
  background-color: #708090;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 95vw;
  max-width: 1200px;
  margin-top: 120px; /* Push the container down below the header */
  box-sizing: border-box;
  border-radius: 10px;
}

@media (min-width: 1200px) {
  .player-container {
    width: 60vw;
  }
}

.now-playing {
  margin-bottom: 5px;
}

.now-playing-title {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 5px;
  text-align: center;
}

.now-playing-details {
  font-size: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 0% 20%;
}

.now-playing-details p {
  padding: 0px;
  margin: 2px 10px;
}

.controls {
  margin: 0% 10% 0% 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; /* Space between icons */
  padding: 10px;
  background-color: #d3d3d3;
  border-radius: 0px 0px 10px 10px;
}

.controls .material-icons {
  font-size: 36px;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
}

.controls .material-icons:hover {
  color: #d3d3d3;
  background-color: #708090;
  border-radius: 10px;
}

audio {
  width: 78%;
  margin: 1% 10% 0% 10%;
  padding: 10px;
  background-color: #d3d3d3;
  border-radius: 10px 10px 0px 0px;
}

#menu-message {
  margin: 1% 20%;
  text-align: center;
}

.score-container {
  margin-top: 20px;
  text-align: center;
}

.score-container img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

button {
  margin: 5px;
  padding: 10px 20px;
  font-size: 16px;
}

#toggleSidebarBtn {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px;
  font-size: 32px;
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 1100; /* Ensure it's above the sidebar */
}

#toggleSidebarBtn span {
  font-size: 32px;
}

#navSidebarBtn {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 10px;
  font-size: 20px;
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 1100; /* Ensure it's above the sidebar */
}

.sidebar {
  position: fixed;
  top: 10vh; /* Aligns the sidebar below the header */
  right: -430px;
  width: 400px;
  height: 85%;
  background-color: #333;
  color: white;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px;
  transition: right 0.3s ease-in-out;
  box-shadow: -5px 0 5px -5px rgba(0, 0, 0, 0.5);
  z-index: 1000; /* Below the toggle button */
  border-radius: 10px;
}

.sidebar h2 {
  margin-top: 0;
  font-size: 18px;
}

.sidebar select {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  font-size: 14px;
}

.sidebar button {
  width: 100%;
  padding: 10px;
  background-color: #444;
  color: white;
  border: none;
  cursor: pointer;
  margin-bottom: 15px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 90%; /* Ensure the list does not exceed sidebar height */
  overflow-y: auto; /* Allow scrolling within the playlist */
}

.sidebar ul li {
  background-color: #555;
  color: white;
  padding: 2.5px 10px;
  margin-bottom: 5px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.sidebar ul li button {
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 0px;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#addToPlaylistBtn {
  background-color: #708090;
  border-radius: 10px;
}

#clearPlaylistBtn {
  background-color: #db7093;
  border-radius: 10px;
}

#playAllBtn {
  background-color: #3cb371;
  border-radius: 10px;
}

.sidebar-open {
  right: 0;
}
