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

/* Main Container – širina kot E01_U02_1 za enako pozicijo audio */
.exercise-container {
  width: 68rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
  position: relative;
  margin-bottom: 3rem;
}

/* Audio Container – privzeto (prepisuje .top-row .audio-container) */
.audio-container {
  flex: 0 0 auto;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
}

/* Content Area */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-top: 0;
}

/* Top row: audio levo, vsebina desno – enaka postavitev kot E01_U02_1 */
.top-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
  gap: 0 1rem;
  margin-bottom: 0.5rem;
}

/* Audio Container – v toku, levo (kot E01_U02_1) */
.content-area .audio-container {
  position: static;
  flex: 0 0 auto;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
  z-index: auto;
}

/* Desna vsebina: slike + možnosti */
.content-main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Images Section – ozadje z eno skupno sliko */
.images-section {
  position: relative;
  width: 100%;
  max-width: 40rem;
  height: 18rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  margin-left: auto;
  margin-right: auto;
}

.image-background {
  width: 100%;
  height: 100%;
  background-image: url("background.jpg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.image-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.image-item {
  width: 10rem;
  height: 10rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Options Container */
.options-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}

/* Option Item */
.option-item {
  width: calc(50% - 0.5rem);
  max-width: 18rem;
  margin-bottom: 0.5rem;
}

/* Checkbox Label */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.3rem;
  transition: transform 0.2s ease;
}

/* Custom Checkbox */
.custom-checkbox {
  width: 1.8rem;
  height: 1.8rem;
  border: 0.2rem solid #00699F;
  border-radius: 0.3rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.custom-checkbox::after {
  content: '';
  position: absolute;
  width: 1rem;
  height: 0.5rem;
  border-left: 0.2rem solid white;
  border-bottom: 0.2rem solid white;
  transform: rotate(-45deg) scale(0);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Selected state */
.option-item.selected .custom-checkbox {
  background-color: #00699F;
  border-color: #00699F;
}

.option-item.selected .custom-checkbox::after {
  transform: rotate(-45deg) scale(1);
  opacity: 1;
}

/* Correct state */
.option-item.correct .custom-checkbox {
  background-color: #258174;
  border-color: #258174;
}

.option-item.correct .custom-checkbox::after {
  transform: rotate(-45deg) scale(1);
  opacity: 1;
}

/* Incorrect state */
.option-item.incorrect .custom-checkbox {
  background-color: #FF0000;
  border-color: #FF0000;
}

.option-item.incorrect .custom-checkbox::after {
  transform: rotate(-45deg) scale(1);
  opacity: 1;
}

/* Option Text */
.option-text {
  font-size: 1.4rem;
  color: #333;
  font-family: 'League Spartan', sans-serif;
}
