body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: black;
  font-family: Arial, sans-serif;
  color: white;
}

h1 {
  font-size: clamp(45px, 8vw, 80px); /* scales with screen width */
}

.rotating-box {
  background: white;
  color: black;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: clamp(0.2rem, 5vw, 2rem);
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  min-width: clamp(300px, 30vw, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotating-text {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.rotating-text.show {
  transform: translateY(0);
  opacity: 1;
}

.rotating-text.hide {
  transform: translateY(-100%);
  opacity: 0;
}

.hidden-text {
  position: absolute;
  bottom: 100px;
  font-size: 2rem;
  color: black;              /* invisible on black bg */
  transition: color 0.3s ease;
  cursor: default;
}

.hidden-text:hover {
  color: white;              /* becomes visible on hover */
}
