html {
  background: #FFFFFF; /* Light background color */
  height: 100%; /* Ensure the html element covers the entire viewport */
}
body {
  background: #FFFFFF;
  color: rgba(0, 0, 0, 0.87);
  font-family: Roboto, Helvetica, Arial, sans-serif;
  background-attachment: fixed; /* Keep the background fixed in place */
  margin: 0;
  padding-top: 64px; /* Add padding to the top of the body to prevent content from being hidden behind the header */
  padding-bottom: 50px; /* Add padding to the top of the body to prevent content from being hidden behind the header */
  min-height: 100%;
}

#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background-color: #FFFFFF;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: fixed; /* Fix the position of the header */
  top: 0; /* Position the header at the top of the viewport */
  left: 0; /* Position the header at the left edge of the viewport */
  right: 0; /* Stretch the header to the right edge of the viewport */
  z-index: 1000; /* A high z-index value ensures the header is always on top */
}

#header-left {
  display: flex;
  align-items: center;
}

.coming-soon-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: normal;
  color: rgba(0, 0, 0, 0.5);
  text-align: center; /* Add this line to center-align the text */
}

#library {
  position: relative; /* Add relative positioning to the library div */
  height: calc(100vh - 64px - 50px); /* Subtract the height of the header and the tab bar */
}

#logo {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

#header-title {
  font-size: 20px;
  font-weight: bold;
}

#header-right {
  /* Additional styles for the right side of the header (if needed) */
}

#submit-button {
  padding: 12px 16px;
  background-color: #ff2d55;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

#audio-player {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  margin: auto;
  width: 90%;
  max-width: 600px;
  height: 80px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
}

#audio-player .song-info {
  flex-grow: 1;
  margin-left: 15px;
}

#audio-player .song-controls button {
  background: none;
  border: none;
  font-size: 24px;
  padding: 0;
  margin: 0 5px;
  cursor: pointer;
}

#audio-player .song-controls button:focus {
  outline: none;
}

.section-button {
  padding: 10px 20px;
  border: none;
  background-color: #f8f8f8;
  cursor: pointer;
  outline: none;
}

.section-button.selected {
  background-color: #ff2d55;
  color: white;
}

.song-item {
  display: grid;
  grid-template-columns: auto 50px 1fr auto auto;
  grid-template-areas: "rank artwork info playcount iframe share-button source-button";
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: 64px;
  grid-gap: 12px;
  padding: 2px 16px;
  box-sizing: border-box;
  z-index: 1;
}

.song-item.highlighted {
  background-color: #f3f3f3 !important;
  z-index: 2;
}

.song-item:hover {
  background-color: #f3f3f3; /* Replace with your desired highlighted color */
  cursor: pointer;
}

.song-rank {
  grid-area: rank;
  text-align: center;
  width: 24px;
  color: gray;
}

.song-artwork {
  grid-area: artwork;
  width: 50px;
  height: 50px;
}

.song-info {
  grid-area: info;
  text-align: left;
  overflow: hidden;
  width: 100%;
}

.song-title {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  margin: 0;
  text-align: left;
  color: gray;
}

.song-playcount {
  grid-area: playcount;
  text-align: right;
  font-size: 12px;
  font-weight: bold;
  width: auto;
  color: gray;
}

.song-iframe {
  grid-area: iframe;
  pointer-events: none;
  margin-right: 8px;
}

.dropdown-container {
  position: relative;
  padding: 16px;
  box-sizing: border-box;
}

.custom-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 12px;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 22px; /* Half of the height */
  cursor: pointer;
  z-index: 1000; /* Adjust as needed */
}

.dropdown-arrow {
  margin-left: 8px;
}

.actual-dropdown {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Make the actual dropdown transparent */
  cursor: pointer;
}

.dropdown-arrow {
  width: 20px; /* Set the width of the image */
  height: 20px; /* Set the height of the image */
  vertical-align: middle; /* Vertically center the image */
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #FFFFFF;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 8px;
}

input[type="text"] {
  margin-bottom: 16px;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
}

#floating-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  background-color: #ffffff;
  border-top: 1px solid #dcdcdc;
  z-index: 10;
}

.tab {
  flex: 1;
  display: flex; /* Add display flex to align content */
  align-items: center; /* Vertically align the content */
  justify-content: center; /* Horizontally align the content */
  height: 50px; /* Set the height of the tab to 50px */
  font-size: 16px;
  font-weight: 500;
  color: #9b9b9b;
  cursor: pointer;
}

.tab.active {
  color: #ff2d55;
}

/* Styles for dark mode */
@media (prefers-color-scheme: dark) {
  html, body {
    background: #000000; /* Dark background color */
    color: #FFFFFF; /* Light text color */
  }

  #header {
    background-color: #000000; /* Dark header background color */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Light border color */
  }

  #floating-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    background-color: #000000;
    border-top: 1px solid #1a1a1a;
    z-index: 10;
  }
  
  .tab {
    flex: 1;
    display: flex; /* Add display flex to align content */
    align-items: center; /* Vertically align the content */
    justify-content: center; /* Horizontally align the content */
    height: 50px; /* Set the height of the tab to 50px */
    font-size: 16px;
    font-weight: 500;
    color: #9b9b9b;
    cursor: pointer;
  }

  .song-item.highlighted {
  background-color: #1a1a1a !important;
}

.song-item:hover {
  background-color: #1a1a1a; /* Replace with your desired highlighted color */
  cursor: pointer;
}

.coming-soon-label {
  color: rgba(255, 255, 255, 0.5);
}

  /* .song-artist {
    color: gray;
  }
  
  .song-playcount {
    color: gray;
  } */

  .custom-dropdown-btn {
    background-color: #000000; /* Dark dropdown background color */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Light border color */
  }

  .modal-content {
    background-color: #000000; /* Dark modal background color */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Light border color */
  }
}

.share-button {
  width: 22px;
  height: 22px;
  background-color: transparent;
  margin-right: 8px;
  border: none;
  cursor: pointer;
  background-image: url(https://ai-hits.web.app/share_button_1x.png);
  background-size: cover;
  outline: none;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .share-button {
      background-image: url(https://ai-hits.web.app/share_button_2x.png);
  }
}

@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
  .share-button {
      background-image: url(https://ai-hits.web.app/share_button_3x.png);
  }
}

.source-button {
  width: 20px;
  height: 20px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  background-image: url(https://w.soundcloud.com/icon/assets/images/orange_white_24-94fc761.png);
  background-size: cover;
  outline: none;
}

#floating-button {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff2d55;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  min-width: 220px; /* Set a minimum width for the button */
  white-space: nowrap; /* Prevent the text from wrapping */
}

#floating-button:hover {
  background-color: #ff5e7e;
}
