/* 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; /* Add margin to ensure space above check button */
}

/* 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;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding-top: 1rem;
  padding-left: 5rem; /* Add padding to make room for the audio button */
}

/* Images Row */
.images-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

/* Image Item */
.image-item {
  position: relative;
  width: 10rem;
  height: 10rem;
  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: 3px;
}

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

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

/* Media Query for smaller screens */
@media (max-width: 768px) {
  .images-row {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .image-item {
    width: calc(50% - 0.5rem);
    height: 8rem;
  }
  
  .audio-button {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .images-grid {
    padding-left: 0;
    padding-top: 5rem; /* Add padding to make room for the audio button */
  }
  
  .audio-container {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Responsive adjustments for very small screens */
@media (max-width: 576px) {
  .image-item {
    width: calc(50% - 0.5rem);
    height: 7rem;
  }
  
  .images-grid {
    gap: 1rem;
  }
}

/* Content container */
.content-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2rem;
}

/* Text container */
.text-container {
  width: 100%;
}

.instruction-text {
  font-size: 1.5rem;
  color: #00699F;
  margin-bottom: 1.5rem;
}

/* Email container */
.email-container {
  background-color: #f9f9f9;
  border: 0.1rem solid #ddd;
  border-radius: 0.5rem;
  overflow: hidden;
  /*margin-bottom: 2rem;*/
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
}

.email-header {
  background-color: #e9e9e9;
  padding: 1rem;
  border-bottom: 0.1rem solid #ddd;
}

.email-header p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.email-body {
  padding: .5rem;
  font-size: 1.1rem;
  /*line-height: 1.5;*/
}

.email-body p {
  margin-bottom: 1rem;
}

/* Images container */
.images-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

/* Image item */
.image-item {
  position: relative;
  width: 10rem;
  height: 10rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  border-radius: 0.5rem;
  overflow: hidden;
}

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

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
 /* border: 0.2rem solid transparent;*/
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

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

/* Correct and incorrect states */
.image-item.correct img {
  border-color: #258174;
}

.image-item.incorrect img {
  border-color: #FF0000;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .image-item {
    width: 6rem;
    height: 6rem;
  }
  
  .instruction-text {
    font-size: 1.2rem;
  }
  
  .images-container {
    gap: 0.8rem;
  }
  
  .email-header p {
    font-size: 0.9rem;
  }
  
  .email-body {
    padding: 1rem;
    font-size: 0.9rem;
  }
} 