/* 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 pri E01_U02_1 za enako pozicijo audio */
.exercise-container {
  width: 68rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
  position: relative;
  margin: 0 auto 3rem auto;
}

/* Audio row – 4 predvajalniki v vodoravni vrsti nad options-container */
.audio-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  flex-wrap: nowrap;
  margin-bottom: 0.5rem;
}

.audio-row .audio-container {
  position: relative;
  top: auto;
  left: auto;
  z-index: 10;
}

.audio-row .audio-container .audio-player {
  position: relative;
  left: auto !important;
  top: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

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

/* Option Item */
.option-item {
  width: 12rem;
  max-width: 12rem;
  margin-bottom: 0.5rem;
}

/* Checkbox Label */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  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;
}

/* Gallery – 6 images below options */
.gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  padding: 0.25rem 0.5rem;
  box-sizing: border-box;
  justify-items: center;
  align-items: center;
}

.gallery-item {
  width: 10.2rem;
  height: 6.2rem;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0.35rem 0.8rem rgba(0, 0, 0, 0.12);
  transform: translateY(calc(var(--i, 0) * 0.05rem));
  animation: gallery-float 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 120ms);
  will-change: transform;
}

.gallery-item:hover {
  transform: translateY(-0.35rem) rotate(-0.4deg);
  box-shadow: 0 0.6rem 1.2rem rgba(0, 0, 0, 0.16);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.02);
}

@keyframes gallery-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-0.25rem); }
  100% { transform: translateY(0); }
}
