html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: #f7f7f7;
  font-family: "Courier New", monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Hover word: text that reveals a bobbing image overlay next to it */
.imgWord {
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline dotted;
  text-underline-offset: 0.2em;
}

/* Overlay image spawned next to an .imgWord on hover */
.word-img {
  position: fixed;
  width: 12rem;
  max-width: 40vw;
  height: auto;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.word-img.is-visible {
  opacity: 1;
  animation: bob 4.5s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5%);
  }
}

.ascii-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: "Courier New", monospace;
  opacity: 0.7;
  color: red;
  font-size: 1.2vw;
  line-height: 1;
  white-space: pre;
  pointer-events: none;
  z-index: 0;
}

/* Scattered stickers on top of the background */
.sticker {
  position: absolute;
  width: var(--size, 96px);
  height: auto;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  pointer-events: none;
  z-index: 0;
}
