html, body {
  height: 100%;
  margin: 0;
  overflow: auto; /* Ensure scrolling is enabled */
  background: linear-gradient(to bottom, #202020, #111119);
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #B3B3B3;
  scroll-behavior: smooth;
}

.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #202020, #111119);
}

.hero-content {
  max-width: 600px;
  z-index: 1;
  position: relative;
  padding: 0 20px; /* Add padding for mobile devices */
}

.hero h1 {
  color: #1DB954;
  font-size: 3em;
  margin-bottom: 20px;
  font-family: 'Shadows Into Light', cursive;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
  font-family: 'Open Sans', sans-serif;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.buttons button {
  padding: 10px 20px;
  background-color: #1DB954;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  font-family: 'Open Sans', sans-serif;
}

.buttons button:hover {
  background-color: #1aa34a;
}

.rain-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.rain {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.rain.back-row {
  display: none;
  z-index: 1;
  bottom: 60px;
  opacity: 0.5;
}

body.back-row-toggle .rain.back-row {
  display: block;
}

.drop {
  position: absolute;
  bottom: 100%;
  width: 15px;
  height: 120px;
  pointer-events: none;
  animation: drop 0.5s linear infinite;
}

@keyframes drop {
  0% {
    transform: translateY(0vh);
  }
  75% {
    transform: translateY(90vh);
  }
  100% {
    transform: translateY(90vh);
  }
}

.stem {
  width: 1px;
  height: 60%;
  margin-left: 7px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.25)
  );
  animation: stem 0.5s linear infinite;
}

@keyframes stem {
  0% {
    opacity: 1;
  }
  65% {
    opacity: 1;
  }
  75% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.splat {
  width: 15px;
  height: 10px;
  border-top: 2px dotted rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 1;
  transform: scale(0);
  animation: splat 0.5s linear infinite;
  display: none;
}

body.splat-toggle .splat {
  display: block;
}

@keyframes splat {
  0% {
    opacity: 1;
    transform: scale(0);
  }
  80% {
    opacity: 1;
    transform: scale(0);
  }
  90% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.recommendation-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  min-height: 100vh;
  background-color: #181818;
  text-align: center;
}

.form-container,
.recommendation-details {
  flex: 1;
  max-width: 100%;
  padding: 20px;
}

.recommendation-container h2 {
  margin-bottom: 20px;
  color: #1DB954;
  font-size: 2.5em;
  font-weight: bold;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
}

.input-group {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

input[type='text'] {
  padding: 15px;
  margin: 10px 0;
  border: 1px solid #434343;
  border-radius: 5px;
  width: 100%;
  max-width: 400px;
  font-size: 1em;
  background-color: #282828;
  color: #B3B3B3;
  font-family: 'Open Sans', sans-serif;
}

.recommendation-details h3,
.recommendation-details p {
  margin: 10px 0;
  color: #B3B3B3;
  font-family: 'Open Sans', sans-serif;
}

.recommendation-details img {
  max-width: 300px;
  height: auto;
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

button {
  padding: 15px 25px;
  background-color: #1DB954;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
}

button:hover {
  background-color: #1aa34a;
}

#recommendation-text {
  margin-top: 20px;
  font-size: 1.2em;
  color: #B3B3B3;
  font-family: 'Open Sans', sans-serif;
}

.how-it-works-container {
  padding: 50px 20px;
  background-color: #121212;
  text-align: center;
  line-height: 1.6;
  color: #B3B3B3;
}

.how-it-works-container h2 {
  color: #1DB954;
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
  font-family: 'Open Sans', sans-serif;
}

.how-it-works-container ol,
.how-it-works-container ul {
  text-align: left;
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  color: #B3B3B3; /* Ensure consistent text color across sections */
}

.contact {
  text-align: center;
  padding: 40px 20px;
  background-color: #121212;
  margin-top: 50px;
  color: #B3B3B3;
}

.contact p {
  margin: 5px;
  font-family: 'Open Sans', sans-serif;
}

.contact a {
  color: #1DB954;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .recommendation-container {
    flex-direction: row; /* Make form and recommendation side-by-side on larger screens */
    align-items: flex-start;
  }

  .form-container,
  .recommendation-details {
    width: 45%;
    margin: 0 20px; /* Increase space between form and recommendation */
  }

  .form-container {
    margin-right: 40px; /* Add more space between form and recommendation */
  }
}

.toggles {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
}

.toggle {
  position: absolute;
  left: 20px;
  width: 50px;
  height: 50px;
  line-height: 51px;
  box-sizing: border-box;
  text-align: center;
  font-family: sans-serif;
  font-size: 10px;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.2);
  color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.toggle:active {
  background-color: rgba(255, 255, 255, 0.3);
}

.toggle.active {
  background-color: rgba(240, 240, 240, 0.4);
}

.splat-toggle {
  top: 20px;
}

.back-row-toggle {
  top: 90px;
  line-height: 12px;
  padding-top: 14px;
}

.single-toggle {
  top: 160px;
}

body.single-toggle .drop {
  display: none;
}

body.single-toggle .drop:nth-child(10) {
  display: block;
}
