* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  overflow-x: hidden;
}

/* IMAGE SECTIONS */
.image-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-section img {
  max-width: 85%;
  height: auto;
}
/* TEXT STACK */
.text-container {
  min-height: 140vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6rem;
  padding: 6rem 2rem;
}

/* BASE REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(120px) scale(0.8) rotate(0deg);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(var(--rot));
}

/* LINE 1 */
.text-container p {
  font-family: "Comic Neue", cursive;
  font-size: 4rem;
  text-align: center;
  max-width: 900px;
  --rot: -4deg;
}

/* CHAOTIC BADGE */
.badge {
  font-family: "Anton", sans-serif;
  font-size: 6rem;
  padding: 3.5rem 4.5rem;
  border: 8px dashed black;
  background: #ffeb3b;
  color: #ff0055;
  text-align: center;
  transform-origin: center;
  box-shadow: 12px 12px 0 #000;
  --rot: 6deg;
}

/* GIANT NUMBER */
.big-number {
  font-family: "Space Mono", monospace;
  font-size: 8rem;
  font-weight: bold;
  color: #0055ff;
  text-shadow:
    4px 4px 0 #ff0055,
    -4px -4px 0 #00ff99;
  --rot: -8deg;
}

/* CONFETTI PIECES */
.confetti-piece {
  position: fixed;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 9999;
  animation: confetti-fall 1s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) rotate(720deg);
    opacity: 0;
  }
}

/* EXTRA CHAOTIC SECTION */

.chaos-section {
  min-height: 160vh;
}

/* BIG JUDGMENT */
.chaos-big {
  font-family: "Anton", sans-serif;
  font-size: 7rem;
  text-align: center;
  color: #0f0f0f;
  text-shadow: 6px 6px 0 #00ff99;
}

/* STATEMENT LINE */
.chaos-statement {
  font-family: "Comic Neue", cursive;
  font-size: 4.5rem;
  text-align: center;
  max-width: 1000px;
}

/* THE NUMBER */
.chaos-number {
  font-family: "Space Mono", monospace;
  font-size: 8rem;
  color: #ff0055;
  display: inline-block;
  transform: rotate(-6deg);
  text-shadow:
    4px 4px 0 #000,
    -4px -4px 0 #ffeb3b;
}

/* FINAL WARNING */
.chaos-warning {
  font-family: "Anton", sans-serif;
  font-size: 6rem;
  color: white;
  background: black;
  padding: 2.5rem 4rem;
  transform: rotate(5deg);
  box-shadow: 14px 14px 0 red;
}

.grass-gif img {
  width: 400px; /* Adjust size as needed */
  height: auto;
  display: block;
  margin: 2rem auto;
}

/* Clickable goat text */
.clickable-goat {
  color: #ff0055;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
}

/* FINAL MESSAGE SPECIFIC */
.final-message {
  font-family: "Comic Neue", cursive; /* easier to read */
  font-size: 3rem; /* readable */
  line-height: 1.5;
  padding: 3rem 4rem !important;
  color: #000;
  background: #ffeb3b;
  border: 6px dashed #000;
  box-shadow: 8px 8px 0 #000;
  transform-origin: center;
  text-align: center;
}

/* Remove huge big-number styling inside final message */
.final-message.big-number {
  font-size: 3rem;
  text-shadow: none;
}

/* Optional: wrap long lines */
.final-message p {
  margin: 1rem 0;
}

/* Keep the right corner text visible */
.text-corner {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  font-size: 2rem;
  font-family: "Comic Neue", cursive;
  z-index: 10000;
}

/* Extra confetti for final message */
.final-message.visible {
  animation: jitter 0.4s ease-in-out;
}

/* MICRO JITTER (alive feeling) */
.reveal.visible {
  animation: jitter 0.4s ease-in-out;
}

@keyframes jitter {
  0% { transform: translateY(0) scale(1) rotate(var(--rot)); }
  25% { transform: translateY(-3px) scale(1.01) rotate(calc(var(--rot) + 1deg)); }
  50% { transform: translateY(2px) scale(0.99) rotate(calc(var(--rot) - 1deg)); }
  100% { transform: translateY(0) scale(1) rotate(var(--rot)); }
}
