/* Background math container */
.math-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Scroll area with repeating formulas */
.formula-stream {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scroll-up 45s linear infinite;
}

.formula {
  font-size: 2rem;
  color: black;
  opacity: 0.40;
  margin: 0rem 0;
}

/* Animation */
@keyframes scroll-up {
  0% {
    transform: translateY(0);
    opacity: 0.6;
  }
  20% {
    opacity: 0.8; 
  }
  50% {
    opacity: 1;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-50%);
    opacity: 0.6;
  }
}

body {
  background: #f0f0f0;
  overflow-x: hidden;
}

/* Title centered in page flow */
.title {
  display: flex;
  font-family: "Oswald";
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-size: 2rem;
  background: white;
  text-align: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Spacer content */
.spacer {
  height: 100vh;
  background: linear-gradient(white, hsl(92, 100%, 79%));
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.5rem;
  text-align: center;
  padding: 50px;
  position: relative; /* relative needed for absolute children if needed */
}

/* Buttons container */
.scroll-buttons {
  margin-top: 25vh;
  display: flex;
  flex-direction: column; /* stack vertically */
  gap: 25px;
  align-items: center; /* center buttons horizontally */
}

/* Buttons styling */
.scroll-buttons button {
  padding: 20px 40px;
  background-color: hsl(0, 1%, 80%);
  font-size: 25px;
  font-family: "Oswald";
  border-radius: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.scroll-buttons button.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Bottom banner */
.bottom-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #222;
  color: white;
  text-align: left;
  font-family: "Oswald", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  z-index: 10;
}

.bottom-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bottom-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.bottom-banner h3 {
    margin: 2px;
}

.bottom-banner hr {
  border: none;
  height: 1px;
  background-color: white;
  width: 100%;
  margin: 0px; /* optional spacing */
}

.bottom-banner a {
  display: flex;
  align-items: center;
  color: white !important;
  text-decoration: none;
  font-size: 1rem;
}

.bottom-banner a i,
.bottom-banner a img.icon {
  height: 15px;
  width: 15px;
  margin-right: 10px;
  object-fit: contain;
  display: inline-block;
}

@media (max-width: 600px) {
  .title h1 {
    font-size: 1.8rem;
    padding: 0 10px;
  }

  .bottom-banner {
    font-size: 1rem;
    padding: 15px;
  }
}