/* Font from project assets */
@font-face {
  font-family: 'League Spartan';
  src: url('../assets/fonts/LeagueSpartan-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Exercise Wrapper – perspective and layout for flip card */
.exercise-wrapper {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  position: relative;
  padding: 1rem 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 20rem;
  perspective: 62rem;
}

.flip-card {
  width: 45rem;
  max-width: 100%;
  height: 24rem;
  margin: 0 auto;
  cursor: pointer;
  outline: none;
}

.flip-card:focus {
  outline: none;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  transform-origin: center center;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.flip-card-front {
  background-color: #f5f8fa;
}

.flip-card-back {
  background-color: #e8f4f9;
  transform: rotateY(180deg);
}

/* Text card content */
.text-card {
  font-family: 'League Spartan', sans-serif;
}

.card-line {
  font-family: 'League Spartan', sans-serif;
  font-size: 2.1rem;
  font-weight: 500;
  color: #00699F;
  line-height: 1.6;
  margin: 0.35rem 0;
}

.card-line:first-of-type {
  margin-top: 0;
}

.card-line:last-of-type {
  margin-bottom: 0;
}

.flip-hint {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.95rem;
  color: #00699F;
  opacity: 0.85;
  margin-top: 0.75rem;
}

/* Hide elements */
.hidden {
  display: none;
}

/* Hide Footer */
footer {
  display: none;
}
