body {
  overflow-x: hidden;
}

.disco-trigger {
  color: hotpink;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s;
}

.disco-trigger:hover {
  transform: scale(1.2);
}

#discoBall {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  background-image: url('disco.gif'); /* replace with actual image path */
  background-size: cover;
  border-radius: 50%;
  box-shadow: 0 0 20px #fff, 0 0 40px #0ff;
  display: none;
  z-index: 1000;
  transition: top 1s ease-out;
}

/* Hanging rod behind the disco ball */
#discoBall::before {
  content: "";
  position: absolute;
  top: -40px; /* height above the disco ball */
  left: 50%;
  transform: translateX(-50%);
  width: 4px; /* rod width */
  height: 40px; /* rod height */
  background-color: black;
  z-index: -1; /* behind the ball */
}

#thankYouMessage {
  position: fixed;
  top: 220px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Comic Sans MS', cursive;
  font-size: 32px;
  color: black;
  display: none;
  z-index: 1000;
  -webkit-text-stroke: 1.5px white;
  text-shadow:
    -1px -1px 0 white,
     1px -1px 0 white,
    -1px  1px 0 white,
     1px  1px 0 white;
}

#thankYouMessage .exit-hint {
  font-size: 20px;
  color: #ccc;
  display: block;
  margin-top: 10px;
  font-style: italic;
}

.glitter {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 1;
  pointer-events: none;
  z-index: 999;
  animation: glitterFall 3s linear forwards;
}

@keyframes glitterFall {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.5);
    opacity: 0;
  }
}

#discoOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 900;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none; /* makes it click-through */
}
