
/* Main Container */
.exercise-container {
  width: 68rem;
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  position: relative;
  margin-top: 0.5rem;
}

/* Sentences Container */
.sentences-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 68rem;
  margin: 0 auto;
}

/* Exercise Row */
.exercise-row {
  width: 68rem;
  margin-bottom: 0.5rem;
}

/* Text-Image Container */
.text-image-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 68rem;
  border-bottom: 0.1rem solid #e0e0e0;
  padding-bottom: 0.5rem;
}

/* Sentence Row */
.sentence-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  flex: 1;
  max-width: 55rem;
}

/* Sentence Text */
.sentence-text {
  font-size: 1.2rem;
}

/* Images Container */
.images-container {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 1;
  max-width: 18rem;
}

/* Food Image – povečane za boljšo izrabo prostora */
.food-image {
  width: 12rem;
  height: 8rem;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 0.1rem solid #e0e0e0;
  padding: 0.25rem;
}

/* Dropdown Container – širina za cel stavek v eni vrstici */
.dropdown-container {
  position: relative;
  min-width: 28rem;
  width: max-content;
  max-width: 100%;
  font-family: "League Spartan", sans-serif;
  display: inline-block;
}

/* Dropdown Button */
.dropdown-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: #FEE9B2;
  border: 0.2rem solid #FFBF00;
  border-radius: 2rem;
  color: #333333;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  height: 2.2rem;
  padding: 0.5rem 1rem;
}

.dropdown-button:hover {
  background-color: #FFD966;
}

/* Dropdown Text – levo poravnano kot pri odprtem meniju */
.dropdown-text {
  flex-grow: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dropdown Icon (triangle) */
.dropdown-icon {
  color: #FFBF00;
  font-size: 1rem;
  transition: transform 0.2s ease;
  margin-left: 0.5rem;
}

.dropdown-button.icon-only .dropdown-text {
  display: none;
}

.dropdown-button.icon-only .dropdown-icon {
  margin: 0;
}

.dropdown-button.active .dropdown-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu – cel stavek v eni vrstici */
.dropdown-menu {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  width: max-content;
  background-color: #FEE9B2;
  border: 0.2rem solid #FFBF00;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: all 0.2s ease;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown Items – en stavek v eni vrstici */
.dropdown-item {
  padding: 0 1rem;
  color: #333333;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 0.1rem solid #FFBF00;
  text-align: left;
  background-color: #FEE9B2;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: #FFD966;
}

.dropdown-item.selected {
  background-color: #FFD966;
  font-weight: 600;
}

.dropdown-button.correct {
  border-color: #258174;
}

.dropdown-button.incorrect {
  border-color: #FF0000;
}
