/**
 * Wer ist in welchem Kurs? Wo und wann? - Exercise Styles
 * Informacijski teksti + tabela s polji. 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;
  gap: 1.5rem;
  font-family: "League Spartan", sans-serif;
}

.info-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
}

.info-text {
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  height: 17rem;
  padding: 1rem 1.5rem;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

.info-text p {
  font-size: 1.15rem;
  line-height: 1.35;
  color: #333;
  margin: 0 0 0.15rem 0;
}

.info-text p:last-child {
  margin-bottom: 0;
}

.info-images {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 6rem 6rem;
  grid-template-rows: 8rem 8rem;
  gap: 0.6rem;
  align-items: center;
  justify-items: center;
}

.info-images img {
  width: 5rem;
  height: 6.5rem;
  object-fit: contain;
  display: block;
}

.info-images img.img--s,
.info-images img.img--m,
.info-images img.img--l {
  width: 5rem;
  height: 6.5rem;
}

.table-container {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

.course-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.course-table th,
.course-table td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border: 0.1rem solid #ddd;
  vertical-align: middle;
}

.course-table th {
  font-weight: bold;
  color: #00699F;
  background-color: #fff;
  border-bottom: 0.2rem solid #00699F;
}

.course-table td {
  color: #333;
}

/* Širine: najdaljši odgovor + 4 znaki (ch) */
.fill-in {
  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;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.fill-in--kurs {
  width: 16ch;
  min-width: 16ch;
}

.fill-in--wer {
  width: 12ch;
  min-width: 12ch;
}

.fill-in--wo {
  width: 16ch;
  min-width: 16ch;
}

.fill-in--wann-day {
  width: 12ch;
  min-width: 12ch;
}

.fill-in--wann-time {
  width: 10ch;
  min-width: 10ch;
}

.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;
}
