/* Reusable annotation system for Reveal.js */

/* Underline annotation */
.annotate-underline {
  position: relative;
  display: inline;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.4s ease;
}

.annotate-underline.visible {
  border-bottom-color: var(--annotation-color, rgba(136, 136, 136, 0.7));
}

/* Alternative with pseudo-element (keeping for compatibility) */
.annotate-underline.use-pseudo::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -3px;
  height: 3px;
  background-color: #888;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 2px;
}

.annotate-underline.use-pseudo.visible::after {
  opacity: 0.7;
}

/* Wavy underline for natural look */
.annotate-underline.wavy::after {
  height: 4px;
  background: none;
  border-bottom: 3px solid #888;
  border-radius: 0;
  transform: skewY(-1deg);
}

/* Margin notes - positioned absolutely within slide */
.annotation-note {
  position: absolute;
  color: var(--annotation-note-color, #888);
  /* font-family: 'Architects Daughter', cursive; */
  /* font-family: 'Great Vibes', cursive; */
  /* font-family: 'Shadows Into Light', cursive; */
  font-family: 'Kalam', cursive;
  font-size: 1.2em;
  font-weight: 100;
  /* font-style: italic; */
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
  right: var(--annotation-note-right, -35px);
  transform: translateY(-50%);
}

.annotation-note.visible {
  opacity: 1;
}

/* Note positioning helpers */
.annotation-note.right {
  right: var(--annotation-note-right-right, -150px);
  width: var(--annotation-note-width, 120px);
  text-align: left;
}

.annotation-note.left {
  left: var(--annotation-note-left, -150px);
  width: var(--annotation-note-width, 120px);
  text-align: right;
}

/* Container for annotations */
.annotated-content {
  position: relative;
}