/* Animated background */
body, html {
  height: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.content {
  padding: 20px;
  max-width: 600px;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Pants alert banner */
.pants-alert {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ff1493;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  animation: wiggle 1s infinite;
  z-index: 9999;
}

@keyframes wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(1deg); }
  50% { transform: rotate(-1deg); }
  75% { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}

/* Sparkle image hover */
.sparkle-container {
  margin: 40px auto;
}

.sparkle-img {
  width: 700px;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.sparkle-img:hover {
  filter: drop-shadow(0 0 6px #fff) brightness(1.2);
  transform: scale(1.05);
  animation: sparkle 1s infinite;
}

@keyframes sparkle {
  0%, 100% { filter: drop-shadow(0 0 6px #fff); }
  50% { filter: drop-shadow(0 0 12px #ff0); }
}

/* Content styling */
.content {
  margin-top: 80px;
  padding: 20px;
}

h1 {
  font-size: 3em;
  background: linear-gradient(270deg, #0000ff, #8a2be2);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientSpin 6s ease infinite;
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

@keyframes gradientSpin {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.pants-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #8a2be2;
  color: white;
  font-size: 2em;
  padding: 20px 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  z-index: 10000;
  animation: popFade 2s ease forwards;
}

@keyframes popFade {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

@keyframes spinny {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spin-active {
  animation: spinny 4s linear;
}

@keyframes halfSpin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.rotate-180 {
  animation: halfSpin 1s ease-in-out;
  transform-style: preserve-3d;
}
