/* 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: 0;
  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;
}

/* Content Container */
.content-container {
  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 */
}

/* Person Section */
.person-section {
  display: flex;
  gap: 2rem;
  width: 100%;
  padding: 1rem;
}

/* Text Column */
.text-column {
  flex: 1;
  padding: 0.5rem;
  line-height: 1.6;
  font-size: 1.1rem;
  cursor:pointer;
}

.text-column p {
  margin: 0 0 1rem 0;
}

/* Image Column */
.image-column {
  flex: 0 0 35%; /* Reduce the width */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Food Image */
.food-image {
  width: 15rem; /* Fixed width */
  height: 15rem; /* Fixed height to make it square */
  object-fit: cover; /* Ensure the image covers the area */
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hotspot */
.hotspot {
  position: relative;
  display: inline;
  padding: 0;
  border-radius: 0.3rem;
  transition: color 0.2s ease;
  cursor: pointer;
  
}

.hotspot.clicked {
  font-weight: bold;
}

.hotspot.correct {
  color: #258174;
  font-weight: bold;
}

.hotspot.incorrect {
  color: #FF0000;
  font-weight: bold;
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
  .person-section {
    flex-direction: column;
    gap: 1rem;
  }
  
  .image-column {
    flex: 0 0 auto;
    width: 100%;
  }
  
  .food-image {
    width: 8rem; /* Smaller on mobile */
    height: 8rem;
  }
  
  .text-column {
    font-size: 1rem;
  }
  
  .audio-button {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .content-container {
    padding-left: 0;
  }
  
  .audio-container {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 1rem;
  }
} 