/* 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: 4rem; /* Increased margin to ensure space above check button */
}

/* Text Container */
.text-container {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem;
  background-color: #f8f8f8;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
}

.exercise-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #333;
  font-family: 'League Spartan', sans-serif;
}

/* Images Grid */
.images-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  width: 100%;
  max-width: 50rem; /* Reduced max-width */
  margin: 0 auto;
}

/* Image Item */
.image-item {
  position: relative;
  width: 100%;
  max-width: 12rem; /* Added max-width to limit size */
  aspect-ratio: 1 / 1;
  border: 2px solid #00699F;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  margin: 0 auto; /* Center the image items */
}

.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.3rem;
  transition: border-color 0.2s ease;
}

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

/* Correct state - only for selected items */
.image-item.correct {
  border-color: #258174;
  border-width: 6px;
}

/* Incorrect state - only for selected items */
.image-item.incorrect {
  border-color: #FF0000;
  border-width: 6px;
}

/* Media Query for smaller screens */
@media (max-width: 992px) {
  .images-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .images-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }
  
  .exercise-text {
    font-size: 1.3rem;
  }
  
  .image-item {
    max-width: 10rem;
  }
}

/* Responsive adjustments for very small screens */
@media (max-width: 576px) {
  .images-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }
  
  .exercise-text {
    font-size: 1.2rem;
  }
  
  .image-item {
    max-width: 7rem;
  }
} 