/* 🔒 Skrytí elementů */
.hidden {
  display: none;
}

/* 🧱 Základní rozvržení stránky */
body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background-color: #fdfdfd;
}

h1 {
  color: #333;
  margin-top: 20px;
}

/* 🟢 Styl tlačítek */
.setButton,
#setsContainer button,
.buttonContainer button,
#installBtn,
#nextBtn {
  margin: 5px;
  padding: 10px 15px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

/* 🔙 Tlačítko Zpět (levý horní roh) */
.backButton {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 10px 15px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  z-index: 1000;
}

/* 🃏 Kontejner pro kartičku s trojrozměrným otočením */
.flashcard {
  width: 300px;
  height: 400px;
  margin: 20px auto;
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
  cursor: pointer;
}

/* 🎴 Přední a zadní strana kartičky */
.flashcard > div {
  width: 100%;
  height: 100%;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 36px;
  font-weight: bold;
  padding: 20px;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
  white-space: pre-line;
  text-align: center;
}

/* 🕶 Zadní strana kartičky */
.flashcard .back {
  background-color: #f0f0f0;
  transform: rotateY(180deg);
}

/* 🧭 Efekt otočení kartičky */
.flashcard.flipped .front {
  transform: rotateY(180deg);
}

.flashcard.flipped .back {
  transform: rotateY(0deg);
}

/* ✍️ Textové vrstvy */
.term {
  font-size: 36px;
  color: #222;
  margin: 10px 0;
}

.translation {
  font-size: 28px;
  color: #555;
  margin: 5px 0;
}

.transcription {
  font-size: 16px;
  color: #888;
  margin-top: 5px;
  font-style: italic;
}

.directionHint {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  font-style: italic;
}

/* 📱 Responsivní přizpůsobení pro mobilní zařízení */
@media (max-width: 400px) {
  .flashcard {
    width: 90%;
    height: 300px;
  }

  .flashcard > div {
    font-size: 28px;
    padding: 15px;
  }

  .term {
    font-size: 30px;
  }

  .translation {
    font-size: 24px;
  }

  .transcription {
    font-size: 14px;
  }

  .setButton {
    font-size: 14px;
    padding: 8px 12px;
  }
}
/* 🧭 Spodní lišta s copyrightem a verzí */
.footerBar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 5px 10px;
  font-size: 0.8em;
  color: #888;
  background-color: #f9f9f9;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.footerLeft,
.footerRight {
  pointer-events: none;
}
