/**
 * E08_U08_1 – Noch mehr Freizeitaktivitäten. (FI)
 * Dva sklopa: 1) slika levo / besedilo desno, 2) besedilo levo / slika desno.
 * Pisava iz assets/fonts.
 */

@font-face {
  font-family: "League Spartan";
  src: url("../assets/fonts/LeagueSpartan-VariableFont_wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}

.exercise-container {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  font-family: "League Spartan", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.block {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.block--image-left .block-image {
  order: 0;
}

.block--image-left .block-text {
  order: 1;
}

.block--image-right .block-text {
  order: 0;
}

.block--image-right .block-image {
  order: 1;
}

.block-image {
  flex: 0 0 auto;
  max-width: 26rem;
}

.block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

.block-text {
  flex: 1 1 20rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.text-line {
  font-size: 1.2rem;
  color: #333;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.2rem;
}

/* Ločila in kratke enote ne prelomijo v novo vrstico (kot v storyboardu) */
.text-line .no-break {
  white-space: nowrap;
}

.fill-in {
  width: 12ch;
  min-width: 10ch;
  height: 2.2rem;
  padding: 0 0.5rem;
  font-size: 1.15rem;
  font-family: "League Spartan", sans-serif;
  border: 0.2rem solid #F9B002;
  border-radius: 1rem;
  background-color: #fff;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.fill-in:focus {
  outline: none;
  border-color: #00699f;
  box-shadow: 0 0 0.3rem rgba(0, 105, 159, 0.3);
}

.fill-in.correct {
  background-color: rgba(37, 129, 116, 0.1);
  border-color: #258174;
}

.fill-in.incorrect {
  background-color: rgba(255, 0, 0, 0.08);
  border-color: #e00;
}

@media (max-width: 768px) {
  .block {
    flex-direction: column;
    gap: 1.5rem;
  }

  .block--image-left .block-image,
  .block--image-left .block-text,
  .block--image-right .block-text,
  .block--image-right .block-image {
    order: unset;
  }

  .block--image-left .block-image {
    order: 0;
  }

  .block--image-left .block-text {
    order: 1;
  }

  .block--image-right .block-text {
    order: 0;
  }

  .block--image-right .block-image {
    order: 1;
  }

  .block-image {
    max-width: 100%;
  }
}
