
/* 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: 100%;
  width: 68rem;
  margin: 0 auto;
}

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

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

/* Letter container specific styles */
.letter-container {
  position: relative;
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

/* Letter content */
.letter-content {
  width: 50rem;
}

/* Image container for Philipp's photo */
.philipp-image {
  padding-top:1rem;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  margin: 0;
  width: 25rem;
}

/* Philipp's photo */
.philipp-photo {
  width: 25rem;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
}

/* Letter greeting and signature */
.greeting, .signature {
  margin: 1rem 0;
  font-weight: 500;
  font-size: 1.2rem;
}

/* 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: 1rem;
  border-bottom: none;
}

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

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

/* Food Image */
.food-image {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 0.1rem solid #e0e0e0;
  padding: 0.25rem;
}

/* Dropdown Container */
.dropdown-container {
  position: relative;
  width: 14rem;
  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; /* Light yellow background */
  border: 0.2rem solid #FFBF00; /* Darker yellow border */
  border-radius: 2rem; /* Rounded corners */
  color: #333333; /* Dark text color */
  /*font-size: 1.2rem; dule */
  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); /* Subtle shadow */
  /*min-height: 2.5rem;  dule*/
  height: 2.2rem;
  padding: 0.5rem 1rem;
}

.dropdown-button:hover {
  background-color: #FFD966; /* Darker yellow for hover */
}

/* Dropdown Text */
.dropdown-text {
  flex-grow: 1;
  text-align: center;
}

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

/* When only showing the icon in the button */
.dropdown-button.icon-only .dropdown-text {
  display: none;
}

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

/* Rotate icon when dropdown is open */
.dropdown-button.active .dropdown-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 0; /* Align with button */
  left: 0;
  width: 100%;
  background-color: #FEE9B2; /* Light yellow background */
  border: 0.2rem solid #FFBF00; /* Darker yellow border */
  /*border-radius: 2rem; /* Rounded corners dule*/
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1); /* Subtle shadow */
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: all 0.2s ease;
}

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

/* Dropdown Items */
.dropdown-item {
  padding: 0 1rem;
  color: #333333; /* Dark text color */
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 0.1rem solid #FFBF00; /* Darker yellow border */
  text-align: center;
  background-color: #FEE9B2; /* Light yellow background */
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.dropdown-item:hover {
  background-color: #FFD966; /* Darker yellow for hover */
}

/* Selected Item Styling */
.dropdown-item.selected {
  background-color: #FFD966; /* Darker yellow for selected */
  font-weight: 600;
}

/* Correct and Incorrect States */
.dropdown-button.correct {
  border-color: #258174; /* Green border for correct */
  /*border-width: 0.25rem; dule*/
}

.dropdown-button.incorrect {
  border-color: #FF0000; /* Red border for incorrect */
  /*border-width: 0.25rem; dule*/
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .text-image-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .sentence-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 100%;
  }
  
  .dropdown-container {
    width: 100%;
  }
  
  .philipp-image {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 10rem;
    margin: 0 auto 1.5rem;
  }
  
  .letter-content {
    padding-right: 0;
  }
  
  .images-container {
    flex-direction: row;
    justify-content: center;
    max-width: 100%;
    margin-top: 0.5rem;
  }
  
  .food-image {
    width: 4rem;
    height: 4rem;
  }
} 