/* Vanilla Flashcards 1.0 — load AFTER the existing template stylesheet.
 * These rules replace Cycle2's positioning; original colors and icons remain.
 */
.flashcards-div.fc-ready {
  position: relative;
  height: 250px;
  overflow: visible;
  isolation: isolate;
}
.flashcards-div.fc-ready > .slide {
  display: none;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
}
.flashcards-div.fc-ready > .slide.fc-visible {
  display: block;
  visibility: visible;
}
.flashcards-div.fc-ready > .slide.fc-active { z-index: 2; }
.flashcards-div.fc-ready.fc-moving > .slide { pointer-events: none; }
.flashcards-div.fc-ready .translation { display: none; }
.flashcards-div.fc-ready.fc-answers-visible .translation { display: block; }
.fc-status {
  display: block;
  max-width: 400px;
  margin: 8px auto;
  font-size: 14px;
  line-height: 1.4;
}
.fc-status:empty { display: none; }
.fc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 200ms ease;
}
.fc-panel[inert] { visibility: hidden; }
.prev-card:focus-visible,
.next-card:focus-visible,
.pauseToggle:focus-visible,
.translate-button:focus-visible,
.shuffle-button:focus-visible,
.timer-start:focus-visible,
.timer-stop:focus-visible,
.timer-reset:focus-visible {
  outline: 2px solid #1685ff;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .fc-panel { transition: none; }
}
