/**
 * Was ziehst du an? - Exercise Styles
 * Slika + stavek z vnosi. 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: 68rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "League Spartan", sans-serif;
}

.sentence-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 64rem;
  padding: 1rem;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

.sentence-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

.sentence-image {
  width: 10rem;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
}

.sentence-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
}

.sentence-text {
  min-width: 0;
}

.sentence-text p {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.5;
  color: #333;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

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

.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.1);
  border-color: #ff0000;
}
