/* 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 */
.exercise-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
  position: relative;
  margin-bottom: 2rem;
}

/* Audio Container */
.audio-container {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
}

/* Audio Button */
.audio-button {
  width: 4rem;
  height: 4rem;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.audio-button:hover {
  transform: scale(1.05);
}

.audio-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.audio-button .pause-icon {
  display: none;
}

.audio-button.playing .play-icon {
  display: none;
}

.audio-button.playing .pause-icon {
  display: block;
}

/* Images Grid */
.images-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding-top: 5rem;
}

/* Image Item */
.image-item {
  position: relative;
  width: 20rem;
  height: 20rem;
  border: 2px solid #00699F;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.image-item:hover {
  transform: scale(1.05);
}

.image-item img,
.image-item .selectable-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border-radius: 0.5rem;
  transition: border-color 0.2s ease;
}

/* Selected state */
.image-item.selected {
  border-color: #F9B002;
  border-width: 0.2rem;
}

/* Correct and incorrect states – povečana obroba za jasen feedback */
.image-item.correct {
  border-color: #258174;
  border-width: 0.4rem;
}

.image-item.incorrect {
  border-color: #FF0000;
  border-width: 0.4rem;
}
