/* Layout for the jukebox */


body {
    font-family: Arial, sans-serif;
    background-image: url('jukeBox.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    backdrop-filter: blur(5px);
}

/* Layout for the jukebox */
.jukebox {
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.2); /* Black with 50% transparency */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    color: white;
  }
  
  .controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center; /* Center align for better appearance */
  }
  
  .control-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: right;
  }

  .album-selection label {
    font-size: 0.9rem;
    color: #ffffff;
    margin-right: 10px;
  }
  
  .album-select {
    padding: 5px;
    font-size: 1rem;
    background-color: #ff5733;
    border-radius: 5px;
    border: 1px solid #ccc;
  }
  .play-buttton,
  .random-button {
    padding: 10px 15px;
    font-size: 0.9rem;
    border: none;
    border-radius: 5px;
    background-color: #ff5733;
    color: #ffffff;
    cursor: pointer;
  }
  
  .random-button:hover {
    background-color: #e84118;
  }
  .random-button.pressed {
    background-color: #21a1f1;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.3);
    transform: translateY(2px);
  }
  .song-list-container {
    width: 40%;
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid #ccc;
    border-radius: 8px;
    overflow-y: scroll;
    height: 300px; /* Display 10 songs (adjust height as needed) */
  }

  .song-button {
    flex: 0 0 calc(50% - 10px); /* Make each button take 50% of the container width minus spacing */
    height: 50px; /* Set fixed height for uniform button size */
    margin: 0;
    padding: 10px;
    font-size: 1em;
    background-color: #65acf7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap; /* Prevent wrapping inside the button */
    overflow: hidden; /* Hide overflow content */
    text-overflow: ellipsis; /* Add ellipsis for overflowing text */
    transition: background-color 0.3s;
  }
  
  .song-button:hover {
    background-color: #21a1f1;
  }
  
  .song-button.pressed {
    background-color: #09588d;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.3);
    transform: translateY(2px);
  }
  .song-label {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: white;
  }

  /* Audio Player */
  .player {
    margin-bottom: 20px;
    text-align: center;
  }
  
  /* Playlist */
  .playlist {
    /* display: flex;
    flex-direction: column;
    gap: 10px; */
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid #ccc;
    border-radius: 8px;
    overflow-y: scroll;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for multiple rows */
    justify-content: space-between; /* Add spacing between columns */
    gap: 10px; /* Add spacing between buttons */
    padding: 10px; /* Add padding around the container */
    height: 400px; /* Display 10 songs (adjust height as needed) */
  }
  
  
  
  /* Responsive Adjustments */
  @media (max-width: 600px) {
    .controls {
      flex-direction: column;
      align-items: stretch;
    }
  
    .random-button {
      margin-top: 10px;
      width: 100%;
    }
  }
  @media (max-width: 600px) {
    h1 {
      font-size: 1.5rem;
    }

    button.song {
      font-size: 0.9rem;
    }
  }