/* =============================================================
   FLASHCARDS — FULLY ISOLATED STYLES
   Path: Html/Flashcards/Flashcards.css
============================================================ */

/* Panel + mount */
#flashcardsPanel {
  width: 100%;
  display: block;
}
/* Brown nav buttons */
.kmt-fc-nav .kmt-fc-navbtn{
  background: #8b5a2b;
  color: #fff;
  border: 1px solid #6f431d;
}

.kmt-fc-nav .kmt-fc-navbtn:hover{
  filter: brightness(1.05);
}

.kmt-fc-nav .kmt-fc-navbtn:active{
  filter: brightness(0.95);
}
#kmtFlashcardMount{
  display: none;
}

#kmtFlashcardMount {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  padding: 0;
  flex: 0 0 100%;
}

/* App root */
#kmtFlashcardsApp {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Outer shell */
#kmtFlashcardsApp .kmt-fc-shell {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border-radius: 18px;
  background: #fff7ed;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

/* Scene */
#kmtFlashcardsApp .kmt-fc-scene {
  width: 100%;
  perspective: 1200px;
}

/* Card */
#kmtFlashcardsApp .kmt-fc-card {
  position: relative;
  width: 100%;
  min-height: 280px;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  cursor: pointer;
  border-radius: 16px;
}

#kmtFlashcardsApp .kmt-fc-card.is-flipped {
  transform: rotateY(180deg);
}

/* Faces */
#kmtFlashcardsApp .kmt-fc-face {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  box-sizing: border-box;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  border-radius: 16px;
  border: 2px solid #000;      /* ✅ black border */
  box-shadow: 0 8px 20px rgba(0,0,0,.08);

  padding: 12px 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  line-height: 1.25;
}

/* FRONT = yellow, BACK = white */
#kmtFlashcardsApp .kmt-fc-front { background: #facc15; }
#kmtFlashcardsApp .kmt-fc-back  { background: #fff; transform: rotateY(180deg); }

/* Center stack */
#kmtFlashcardsApp .kmt-fc-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Glyphs */
#kmtFlashcardsApp .kmt-fc-glyphs {
  margin-top: 40px;
  font-size: 64px; /* ✅ final size */
  line-height: 1;
  text-align: center;
  color: #000;

  -webkit-text-stroke: 1.6px #000;
  text-shadow:
    1px 0 #000,
   -1px 0 #000,
    0 1px #000,
    0 -1px 0 #000;
}

/* Transliteration */
#kmtFlashcardsApp .kmt-fc-translit {
  margin-top: 28px;
  font-size: 13px;
  opacity: 0.85;
  text-align: center;
}

/* Back */
#kmtFlashcardsApp .kmt-fc-title {
  font-weight: 900;
  text-align: center;
  font-size: 18px;
  margin-top: 4px;
}
#kmtFlashcardsApp .kmt-fc-text {
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  max-width: 28ch;
  margin-top: 4px;
}
#kmtFlashcardsApp .kmt-fc-notes {
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  opacity: 0.75;
  margin-top: 6px;
  max-width: 30ch;
}

/* Hint */
#kmtFlashcardsApp .kmt-fc-hint {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 6px;
}
#kmtFlashcardsApp .kmt-fc-hint-spacer { visibility: hidden; }

/* Action icons row */
#kmtFlashcardsApp .kmt-fc-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

#kmtFlashcardsApp .kmt-fc-icon {
  all: unset;
  box-sizing: border-box;

  width: 28px;   /* ✅ small */
  height: 28px;

  border: 2px solid #000;
  border-radius: 8px;

  background: #c4a06a;
  font-size: 14px;

  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  user-select: none;
}

#kmtFlashcardsApp .kmt-fc-icon:active { transform: scale(0.95); }

/* Nav row */
#kmtFlashcardsApp .kmt-fc-nav {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

#kmtFlashcardsApp .kmt-fc-navbtn {
  all: unset;
  box-sizing: border-box;

  flex: 1;
  height: 34px;

  border: 2px solid #000;
  border-radius: 10px;

  background: #fff;
  font-weight: 800;

  cursor: pointer;
  text-align: center;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#kmtFlashcardsApp .kmt-fc-navbtn:active { transform: scale(0.98); }

/* Mobile */
@media (max-width: 640px) {
  #kmtFlashcardsApp .kmt-fc-card { min-height: 250px; }
  #kmtFlashcardsApp .kmt-fc-glyphs {
    font-size: 58px;
    margin-top: 36px;
  }
}