/* April Fools: IPoAC */

.avian-bird {
  display: inline-block;
  position: relative;
  cursor: pointer;
  font-size: 2.2em;
  line-height: 1;
  vertical-align: middle;
  margin-left: 0.3em;
  transition: transform 0.15s ease;
  user-select: none;
  z-index: 10;
}

.avian-bird:hover {
  transform: scale(1.3);
}

/* Bird perched on top edge of an element (e.g., table row) */
.avian-bird-perch {
  position: absolute;
  transform: translateY(-85%);
  display: inline-block;
  cursor: pointer;
  font-size: 2.2em;
  line-height: 1;
  transition: transform 0.15s ease;
  user-select: none;
  z-index: 10;
  pointer-events: auto;
}

.avian-bird-perch:hover {
  transform: translateY(-85%) scale(1.3);
}

/* Speech bubble container */
.avian-bubble {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #333;
  border: 2px solid #555;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-family: monospace;
  line-height: 1.4;
  width: max-content;
  max-width: 260px;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.15);
  z-index: 100;
  white-space: normal;
  text-align: left;
  user-select: text;
  cursor: text;
}

/* Callout triangle pointing down — default centered */
.avian-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #fff;
}

.avian-bubble::before {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: #555;
}

.avian-bubble.visible {
  display: block;
}
