/* === base layout === */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* full-screen field background */
body {
  background-color: #f5f5f5;
  background-image: url('field.png');
  background-repeat: no-repeat;
  background-position: center;  /* hug the grass side more */
  background-size: cover;              /* fill the screen */
  font-family: Verdana, Arial, sans-serif;
  color: #000080;
  position: relative;
}

/* lock the layout, no scrollbars at all */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;  /* no vertical or horizontal scroll */
}

/* default link styling (just in case) */
a {
  color: #0000ee;
  text-decoration: underline;
}

a:hover {
  color: #551a8b;
}

/* === bubbles (clear, realistic look) === */
.bubble {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;

  /* translucent bubble skin */
  background:
    radial-gradient(circle at 30% 25%,
      rgba(255,255,255,0.95) 0%,
      rgba(255,255,255,0.5) 30%,
      rgba(255,255,255,0.15) 60%,
      rgba(255,255,255,0.05) 80%,
      rgba(255,255,255,0) 100%);
  border: 1px solid rgba(255,255,255,0.8);

  /* soft light + shadow for depth */
  box-shadow:
    inset 0 0 10px rgba(255,255,255,0.4),
    0 0 8px rgba(255,255,255,0.6),
    0 0 18px rgba(0,0,0,0.15);

  opacity: 0.9;
  pointer-events: auto;
}

/* === bubble size variation === */
.bubble:nth-child(3n) {
  width: 60px;
  height: 60px;
  opacity: 0.85;
}

.bubble:nth-child(4n) {
  width: 80px;
  height: 80px;
  opacity: 0.95;
}

.bubble:nth-child(5n) {
  width: 100px;
  height: 100px;
  opacity: 0.9;
}

/*footer*/

#fz-footer {
  position: absolute;
  left: 50%;
  bottom: 18px;                  /* tweak this for exact grass placement */
  transform: translateX(-50%);
  z-index: 5;
}

.fz-footer-inner {
  display: inline-block;
  font-family: Verdana, Arial, sans-serif;
  font-size: 26px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.45),
    0 4px 8px rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

.fz-footer-inner:hover {
  transform: translateY(-1px) scale(1.03) rotate(-3deg);
}

/* each letter stays a bit messed up */
.fz-letter {
  display: inline-block;
  padding: 0 1px;
  cursor: pointer;
}

.fz-letter:nth-child(1) { transform: rotate(-7deg) translateY(1px); }
.fz-letter:nth-child(2) { transform: rotate(3deg) translateY(-2px); }
.fz-letter:nth-child(3) { transform: rotate(-2deg) translateY(0); }
.fz-letter:nth-child(4) { transform: rotate(5deg) translateY(3px); }
.fz-letter:nth-child(5) { transform: rotate(-4deg) translateY(-1px); }
.fz-letter:nth-child(7) { transform: rotate(-6deg) translateY(2px); }
.fz-letter:nth-child(8) { transform: rotate(4deg) translateY(-3px); }
.fz-letter:nth-child(9) { transform: rotate(-3deg) translateY(1px); }
.fz-letter:nth-child(10){ transform: rotate(6deg) translateY(-1px); }

/* rainbow colors */
.fz-red    { color: #e62626; }
.fz-orange { color: #ff8c1a; }
.fz-yellow { color: #ffd700; }
.fz-green  { color: #32cd32; }
.fz-blue   { color: #1e90ff; }
.fz-indigo { color: #4b0082; }
.fz-violet { color: #9400d3; }

.fz-space {
  width: 0.4em;
}

/* === gentle bounce for fallen letters === */
@keyframes fz-bounce {
  0%, 100% { transform: translateY(0) rotate(var(--tilt)); }
  50% { transform: translateY(-4px) rotate(var(--tilt)); }
}

/* assign each letter its own base tilt and desynced timing */
.fz-letter {
  display: inline-block;
  padding: 0 1px;
  animation: fz-bounce 2.5s ease-in-out infinite;
}

/* individual tilts and timing offsets for irregular motion */
.fz-letter:nth-child(1) { --tilt: -7deg; animation-delay: 0s; }
.fz-letter:nth-child(2) { --tilt: 3deg;  animation-delay: 0.2s; }
.fz-letter:nth-child(3) { --tilt: -2deg; animation-delay: 0.4s; }
.fz-letter:nth-child(4) { --tilt: 5deg;  animation-delay: 0.1s; }
.fz-letter:nth-child(5) { --tilt: -4deg; animation-delay: 0.3s; }
.fz-letter:nth-child(7) { --tilt: -6deg; animation-delay: 0.25s; }
.fz-letter:nth-child(8) { --tilt: 4deg;  animation-delay: 0.45s; }
.fz-letter:nth-child(9) { --tilt: -3deg; animation-delay: 0.35s; }
.fz-letter:nth-child(10){ --tilt: 6deg;  animation-delay: 0.15s; }

/* === cursor shimmer over the field === */

#cursor-shimmer {
  position: fixed;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  pointer-events: none;  /* don't block clicks */

  /* soft glow fading outwards */
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.40),
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.0) 75%
  );

  mix-blend-mode: screen;  /* interacts with the field colors */
  filter: blur(4px);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.25s ease-out,
    filter 0.25s ease-out;
}

/* === trailing ghosts === */
.trail {
  position: fixed;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.0) 80%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  filter: blur(5px);
  animation: fz-trail-fade 0.8s ease-out forwards;
}

@keyframes fz-trail-fade {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
}
