* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  height: 100vh;
  overflow: hidden;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkyMCIgaGVpZ2h0PSIxMDgwIiB2aWV3Qm94PSIwIDAgMTkyMCAxMDgwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8ZGVmcz4KPHN0eWxlPgoucGluay1za3kgeyBmaWxsOiB1cmwoI3BpbmtTa3kpOyB9Ci5tb3VudGFpbnMgeyBmaWxsOiB1cmwoI21vdW50YWluR3JhZGllbnQpOyB9Cjwvc3R5bGU+CjxsaW5lYXJHcmFkaWVudCBpZD0icGlua1NreSIgeDE9IjAiIHkxPSIwIiB4Mj0iMCIgeTI9IjEiIGdyYWRpZW50VW5pdHM9Im9iamVjdEJvdW5kaW5nQm94Ij4KPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzU5NDNhNyIvPgo8c3RvcCBvZmZzZXQ9IjQwJSIgc3RvcC1jb2xvcj0iIzc5NzFhNyIvPgo8c3RvcCBvZmZzZXQ9IjgwJSIgc3RvcC1jb2xvcj0iI2MzOTY5ZSIvPgo8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmIzYjMiLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJtb3VudGFpbkdyYWRpZW50IiB4MT0iMCIgeTE9IjAiIHgyPSIwIiB5Mj0iMSIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPgo8c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjNmE0YzRkIi8+CjxzdG9wIG9mZnNldD0iMzAlIiBzdG9wLWNvbG9yPSIjNGEzMjM0Ii8+CjxzdG9wIG9mZnNldD0iNzAlIiBzdG9wLWNvbG9yPSIjMzIyMjI1Ii8+CjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzFhMTExNSIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+CjxyZWN0IHdpZHRoPSIxOTIwIiBoZWlnaHQ9IjEwODAiIGNsYXNzPSJwaW5rLXNreSIvPgo8cGF0aCBkPSJNMCAxMDgwTDEwMCA5MDBMMjAwIDk1MEwzMDAgODUwTDQwMCA5MDBMNTQ0IDc1MEw2MjAgOTIwTDcwMCA4MDBMODAwIDkzMEw5MDAgODIwTDEwMDAgOTAwTDExMjAgNzgwTDEyMDAgODkwTDEzMDAgODMwTDEzODAgNzAwTDE0NjAgODQwTDE1MjAgNzIwTDE2MjAgODUwTDE3MjAgODEwTDE4MjAgODkwTDE5MjAgMTA4MEgwWiIgY2xhc3M9Im1vdW50YWlucyIvPgo8L3N2Zz4K");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

/* Search wrapper and results styling */
/* .search-wrapper {
  position: relative;
  width: 100%;
} */

.search-wrapper {
  position: relative;
  width: 70%;
  min-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
/* .search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  max-height: 300px;
  min-width: 300px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 0 px;
  display: none;
} */

.search-results {
  position: absolute;
  top: 100%;
  /* left: 0; */
  width: 100%; /* This matches the input width */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 5px;
  display: none; /* Or toggle with JS */
  margin-left: auto;
  margin-right: auto;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.track-info {
  flex: 1;
  min-width: 0;
}

.track-name {
  color: white;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-left: 12px;
  flex-shrink: 0;
}

.no-results,
.error-message {
  padding: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.error-message {
  color: #f5fffe;
}

/* Scrollbar styling for search results */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Realistic mountain background */
.mountain-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    #594397 0%,
    #7971a7 20%,
    #a584a0 40%,
    #c3969e 60%,
    #dfb2a8 80%,
    #ffb3b3 100%
  );
  z-index: 1;
}

.mountain-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(
    to bottom,
    rgba(42, 35, 45, 0.9) 0%,
    rgba(32, 25, 35, 0.95) 30%,
    rgba(22, 15, 25, 1) 60%,
    rgba(12, 8, 15, 1) 100%
  );
  clip-path: polygon(
    0% 100%,
    3% 85%,
    8% 75%,
    12% 65%,
    18% 55%,
    25% 45%,
    32% 35%,
    38% 25%,
    45% 15%,
    52% 20%,
    58% 30%,
    65% 40%,
    72% 35%,
    78% 25%,
    85% 35%,
    92% 45%,
    97% 55%,
    100% 65%,
    100% 100%
  );
  z-index: 2;
}

.mountain-layer-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(
    to bottom,
    rgba(52, 45, 55, 0.8) 0%,
    rgba(42, 35, 45, 0.9) 40%,
    rgba(32, 25, 35, 1) 70%,
    rgba(22, 15, 25, 1) 100%
  );
  clip-path: polygon(
    0% 100%,
    5% 90%,
    12% 80%,
    20% 70%,
    28% 60%,
    35% 50%,
    42% 40%,
    48% 30%,
    55% 35%,
    62% 45%,
    70% 55%,
    77% 50%,
    84% 40%,
    90% 50%,
    95% 60%,
    100% 70%,
    100% 100%
  );
  z-index: 3;
}

.mountain-layer-3 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(
    to bottom,
    rgba(62, 55, 65, 0.7) 0%,
    rgba(52, 45, 55, 0.85) 50%,
    rgba(42, 35, 45, 1) 100%
  );
  clip-path: polygon(
    0% 100%,
    8% 85%,
    15% 75%,
    25% 65%,
    35% 55%,
    45% 45%,
    55% 50%,
    65% 60%,
    75% 55%,
    85% 65%,
    95% 75%,
    100% 85%,
    100% 100%
  );
  z-index: 4;
}

.content-container {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
  width: 90%;
  max-width: 1000px;
}

.fade-text {
  font-size: 5rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 2px;
  margin: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.fade-text.visible {
  opacity: 1;
}

.dual-text-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.dual-text-container.visible {
  opacity: 1;
}

.dual-text {
  font-size: 4rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 2px;
  margin: 20px 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.dual-text.visible {
  opacity: 1;
}

/* Tutorial Styles */
.tutorial-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.tutorial-container.visible {
  opacity: 1;
  pointer-events: auto;
}

.tutorial-headline {
  font-size: 4rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 2px;
  color: white;
  margin-bottom: 80px;
}

.tutorial-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 900px;
  margin-bottom: 60px;
}

.tutorial-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  margin: 0 20px;
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  color: white;
  margin-bottom: 6px;
  margin-top: 20px;
  opacity: 0.9;
}

.step-title {
  font-size: 2rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  color: white;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.step-description {
  font-size: 1.2rem;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  max-width: 200px;
}

.get-started-btn {
  font-family: "Montserrat", sans-serif;
  background: #fff;
  color: #111;
  border: none;
  border-radius: 18px;
  padding: 16px 48px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: none;
  outline: none;
  margin-top: 20px;
}

.get-started-btn:hover {
  background: #f2f2f2;
  color: #000;
}

/* Search Container Styles */
.search-container {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.search-container.visible {
  opacity: 1;
  pointer-events: auto;
}

.search-helper-text {
  font-family: "Montserrat", sans-serif;
  color: white;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 18px;
  text-align: center;
  width: 70%;
  min-width: 300px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.glass-search-bar {
  width: 100%;
  min-width: 300px;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-family: "Montserrat", sans-serif;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: white;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.glass-search-bar::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.glass-search-bar:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.dropdown-and-submit {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 1000px;
  margin: 18px auto 0 auto;
  justify-content: center;
}

.glass-dropdown {
  font-family: "Montserrat", sans-serif;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  color: white;
  outline: none;
  font-size: 1.1rem;
  padding: 12px 24px 12px 16px;
  margin-right: 2;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  appearance: none;
  -webkit-appearance: none;
  min-width: 70px;
  transition: all 0.3s ease;
  margin-left: 0;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 18px 18px;
}

.glass-dropdown:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.glass-dropdown option {
  color: #222;
  background: #fff;
}

.submit-btn {
  font-family: "Montserrat", sans-serif;
  background: #fff;
  color: #111;
  border: none;
  border-radius: 18px;
  padding: 12px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: none;
  outline: none;
}

.submit-btn:hover {
  background: #f2f2f2;
  color: #000;
}

/* Lumera Header Styles */
.lumera-header {
  position: fixed;
  top: 30px;
  left: 40px;
  display: flex;
  align-items: center;
  z-index: 20;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  font-family: "Montserrat", sans-serif;
}

.lumera-header.visible {
  opacity: 0.8;
}

.lumera-logo {
  height: 32px;
  width: 32px;
  margin-right: 6px;
  object-fit: contain;
  display: block;
}

.lumera-title {
  font-size: 1.7rem;
  font-weight: 400;
  color: white;
  letter-spacing: 1px;
  font-family: "Montserrat", sans-serif;
  text-shadow: none;
  text-transform: lowercase;
  opacity: 0.8;
}
/* Skip Button Styles */
.skip-button {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
  opacity: 1;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.skip-button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.skip-button span {
  color: white;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.skip-button svg {
  opacity: 0.9;
}

.bottom-dialog {
  position: absolute;
  bottom: 0px;
  right: 0px;
  z-index: 50;
  max-width: 500px;
  font-family: "Montserrat", sans-serif;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 16px 10px;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.dialog-heading {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  color: white;
}

.dialog-text {
  font-size: 14px;
  line-height: 1.5;
  color: white;
}

.ha-page {
  display: none;
  opacity: 0;
  transition: opacity 0.7s;
  text-align: center;
  font-size: 3rem;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
}

/* Add these styles to your CSS file */
/* 
.ha-page {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
} */

.ha-back-button {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10;
}

.ha-back-button:hover {
  opacity: 1;
}

.ha-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.song-display {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.song-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.song-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}

.song-artist {
  font-size: 1.3rem;
  color: white;
  opacity: 0.6;
  margin-top: 8px;
}

.song-image {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
  margin-right: 48px;
}

.button-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.spotify-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: white;
  font-size: 1.1rem;
  font-weight: 400;
  padding: 14px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
}

.spotify-btn:hover {
  background: #161616;
}

.spotify-btn svg {
  filter: brightness(0) invert(1);
}

.reroll-btn {
  font-family: "Montserrat", sans-serif;
  background: #fff;
  color: #111;
  border: none;
  border-radius: 28px;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: none;
  outline: none;
}

.reroll-btn:hover {
  background: #cfcfcf;
  color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .fade-text {
    font-size: 2.5rem;
  }

  .dual-text {
    font-size: 2.5rem;
  }

  .tutorial-headline {
    font-size: 2.5rem;
    margin-bottom: 60px;
  }

  .tutorial-steps {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 400px;
  }

  .step-number {
    font-size: 2.5rem;
  }

  .step-title {
    font-size: 1.8rem;
  }

  .step-description {
    font-size: 1.1rem;
    max-width: 250px;
  }

  .get-started-btn {
    padding: 14px 40px;
    font-size: 1.1rem;
  }

  .glass-search-bar {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .search-helper-text {
    font-size: 0.95rem;
  }

  .glass-dropdown {
    font-size: 0.95rem;
    padding: 10px 16px 10px 10px;
    min-width: 50px;
  }

  .submit-btn {
    font-size: 0.95rem;
    padding: 10px 20px;
  }

  .lumera-header {
    top: 12px;
    left: 16px;
  }

  .lumera-title {
    font-size: 1rem;
  }

  .lumera-logo {
    height: 20px;
    width: 20px;
    margin-right: 4px;
  }
}

@media (max-width: 480px) {
  .fade-text {
    font-size: 2rem;
  }

  .dual-text {
    font-size: 1.4rem;
    margin: 15px 0;
  }

  .tutorial-headline {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .step-number {
    font-size: 2rem;
  }

  .step-title {
    font-size: 1.5rem;
  }

  .step-description {
    font-size: 1rem;
    max-width: 200px;
  }

  .get-started-btn {
    padding: 12px 32px;
    font-size: 0.8rem;
    margin-top: 1px;
  }

  .search-helper-text {
    font-size: 0.8rem;
  }

  .glass-dropdown {
    font-size: 0.9rem;
    padding: 8px 26px 8px 12px;
  }

  .submit-btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  @media (max-width: 480px) {
    .song-image {
      width: 180px;
      height: 180px;
      margin: 0 auto 16px auto;
    }

    .song-title {
      font-size: 1.8rem;
      text-align: center;
    }

    .song-artist {
      font-size: 1rem;
      margin-top: 4px;
      text-align: center;
    }

    .spotify-btn,
    .reroll-btn {
      font-size: 0.95rem;
      padding: 10px 16px;
      width: 100%;
      justify-content: center;
    }

    .button-container {
      flex-direction: column;
      gap: 12px;
      margin-top: 24px;
    }

    .ha-back-button {
      bottom: 24px;
      left: 24px;
      font-size: 0.9rem;
    }
    .song-info {
      align-items: center;
      text-align: center;
      width: 100%;
    }

    .song-display {
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 16px;
    }

    .ha-content {
      padding: 10px;
    }
  }
}
