@media (max-width: 768px) {
  .container {
    flex-direction: column; /* Stack sections vertically on small screens */
  }

  .left-section, .right-section {
    padding: 10px; /* Reduce padding for better fit on small screens */
  }

  #urlInput, #downloadButton, #searchInput, #searchButton {
    width: 100%; /* Make input fields and buttons span the width */
    margin-bottom: 10px; /* Add spacing between elements */
  }

  #cloudButton{
    width:auto;
  }

  .delete-button {
    font-size: 12px;
    padding: 6px 10px;
  }

  .thumbnail {
    max-width: 100px;
  }

  .song-title {
    font-size: 14px;
  }

  .dropdown-menu {
    padding: 8px;
  }

  .dropdown-menu a {
    font-size: 14px;
  }

  .left-section {
    padding-bottom: 0;
  }

  body {
    background-size: cover;
  }
  

  p {
    background-size: cover;
  }

}


p#text{
    border: 2px solid #833d3d;
    font-weight: bold;
    font-size: 20px;
    color: #fde742;
    position: relative;
    animation-name: example;
    animation-duration: 5s;
    animation-iteration-count: infinite;
  }

  @keyframes example {
    0%   {left:-200px;}
    100% {left:10px;}
  }


/* Reset default margin and padding */
body, h1, p, ul, li {
  margin: 0;
  padding: 0;
}

/* Set background image */
body {
  background: url("panda.webp") no-repeat center center fixed;
  background-size: cover;
  font-family: 'Dosis', sans-serif;
  font-size: 22px;
  background-color: rgba(24, 24, 24, 0.2);
}

#cloudButton {
  padding: 10px 15px;
  position: absolute;
  top: 30px;
  left: 150px;
  margin-right: 8px;
  display: flex;
  gap: 10px;
  display: flex;
  align-items: center;
  background-color: #000000a8; /* Google Blue */
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  z-index: 2;
}

#cloudButton:hover {
  background-color: #357ae8; /* Slightly darker blue */
}

/* Container for layout */
.container {
  display: flex;
}


.left-section {
  background-color: rgba(24, 24, 24, 0.2);
  color: #fff; /* Text color */
  padding: 20px;
  flex: 1.5;
}

.song-player {
  width: 100%;
  padding: 0;
  margin-bottom: 2px;
}


.right-section {
  background: rgba(0, 0, 0, 0.2); /* Black with 70% opacity */
  color: #fff; /* Text color */
  padding: 20px;
  flex: 1;
}


/* Search panel styling */
.search-panel {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#searchInput {
  width: 80%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  margin-right: 10px;
}

#searchButton {
  padding: 10px 15px;
  background-color: #1db954;
  color: #000000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
}

#searchButton:hover {
  background-color: #e877d2;
}

/* Previous styles for the search results list */
#searchResults {
  list-style-type: none;
  margin-top: 20px;
  padding: 0;
}

#searchResults li {
  padding: 10px;
  border-bottom: 1px solid #ccc;
  transition: background-color 0.3s ease;
  cursor: pointer;
  background-color: #fff;
  color: #333;
}

#searchResults li:last-child {
  border-bottom: none;
}

#searchResults li:hover {
  background-color: #e0e0e0;
  color: #000;
}



/* New style for selected search result item */
#searchResults li.selected {
  background-color: #729f82; /* Background color for selected item */
  color: #fff; /* Text color for selected item */
}

/* Other styles for the left section */
h1 {
  margin-bottom: 10px;
  color: #f88aa1;
  font-size: 40px;
  margin-right: 20px;
}

.tagline {
  margin-bottom: 10px;
  color: #fde742;
  font-size: 24px;
}

/* Other styles for the songs list */
#songList {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#songList li {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  background-color: #fff; /* Background color for list items */
  color: #333; /* Text color for list items */
  display: flex; /* Display list items as flex to align content */
  align-items: center; /* Center items vertically in flex container */
}

.thumbnail {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 10px;
}

/* Style for the song titles */
.song-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#songList li:hover {
  background-color: #f9f9f9;
}

#songList li.playing {
  background-color: #f0f0f0;
  color: #1db954; /* Text color for playing item */
}

/* Other styles for the audio player and controls */
#audioPlayer {
  width: 100%;
}


#controls {
  text-align: center;
  margin-top: auto;
  margin-bottom: 10px;
}

#controls button {
  background-color: #1db954;
  border: none;
  color: #000000;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-inline: 12px;
}

#controls button.active {
  background-color: #181818;
}

#controls button:hover {
  background-color: #e877d2;
}

.player-control {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.player-control i {
  font-size: 10px;
}

.player-control.active {
  color: #1db954;
}

#urlInput {
  width: 70%; /* Adjust the width as needed */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  margin-bottom: 20px; /* Add margin-bottom for spacing */
  margin-top: 100px; /* Add margin-bottom for spacing */
  margin-right: 10px;
}

#downloadButton {
  padding: 10px 20px; /* Adjust padding as needed */
  background-color: #1db954;
  color: #000000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-bottom: 10px;
}

#downloadButton:hover {
  background-color: #e877d2;
}

#searchInput {
  width: 70%; /* Adjust the width as needed */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Progress bar styling */
#progressBarContainer {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#progressBar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid #ccc;
  border-top-color: #e877d2;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Position the top-right buttons */
.top-right-buttons {
  position: absolute;
  top: 20px;
  right: 0px;
  display: flex;
  gap: 10px;
  z-index: 1;
}

/* Style the buttons */
.top-right-buttons button {
  display: flex;
  align-items: center;
  background-color: #4285f4; /* Google Blue */
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

/* Style the Google icon */
.top-right-buttons button i {
  margin-right: 8px;
}

.top-right-buttons button:hover {
  background-color: #357ae8; /* Slightly darker blue */
}


/* Apply styles to the delete button */
.delete-button {
  background-color: #ff6b6b;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.delete-button:hover {
  background-color: #9f6a6a;
}

/* Apply styles to the dropdown menu */
.dropdown-menu {
  position: absolute;
  display: none;
  background-color: #1db954e0;
  border: 1px solid #ccc;
  padding: 2px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  z-index: 1; /* Ensure the dropdown is on top of other elements */
}

.show {
  display: block;
}

/* Apply styles to dropdown menu items */
.dropdown-menu a {
  display: block;
  padding: 2px;
  color: #000000;
  ursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.dropdown-menu a:hover {
  background-color: #fde742;
}

/* Style for the cancel option */
.dropdown-menu .cancel-option {
  font-weight: bold;
}

/* Style for the delete option */
.dropdown-menu .delete-option {
  color: #ff6b6b;
}


footer {
  background-color: #000;
  padding: 1px;
  margin-top: 2px;
  font-family: 'Dosis', sans-serif;
  position: fixed;
  color: #fff;
  bottom: 0;
  width: auto;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

li {
  display: inline-flex;
  margin-right: 10px;
}

a {
  font-family: 'Dosis', sans-serif;
  text-decoration: none;
  color: #fff;
}

