/* Google Font - League Spartan */
@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;
}

/* Main Container */
.exercise-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
  position: relative;
  margin-bottom: 2rem; /* Add margin to ensure space above check button */
}

/* Audio Container */
.audio-container {
  position: absolute;
  top: 3rem;
  left: -5rem;
  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;
}

.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: 70rem;
  margin: 0 auto;
  padding-top: 3rem; /* Increased to make room for audio button */
}

/* Image Item */
.image-item {
  width: calc(33.33% - 2rem);
  max-width: 20rem;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  border: 3px solid transparent;
  box-sizing: border-box;
  background-color: #fff;
}

.image-item:hover {
  transform: scale(1.02);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.image-item img, .image-item .selectable-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0.3rem;
  transition: all 0.2s ease;
}

/* Selected State */
.image-item.selected {
  border-color: #F9B002;
  border-width: 3px;
}

/* Correct State */
.image-item.correct {
  border-color: #258174;
  border-width: 3px;
}

/* Incorrect State */
.image-item.incorrect {
  border-color: #FF0000;
  border-width: 3px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .images-grid {
    gap: 1.5rem;
  }
  
  .image-item {
    width: calc(100% - 2rem);
    max-width: 20rem;
  }
  
  .audio-button {
    width: 3.5rem;
    height: 3.5rem;
  }
}

@media (max-width: 576px) {
  .image-item {
    width: 100%;
    max-width: 100%;
  }
  
  .images-grid {
    gap: 1.5rem;
    padding-top: 4rem;
  }
} 