/* Google Font - League Spartan */
@font-face {
  font-family: 'League Spartan';
  src: url('../assets/fonts/LeagueSpartan-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}

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

/* Layout container for audio and statements */
.content-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
}

/* Audio container styling */
.audio-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.audio-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 5rem;
  height: 5rem;
  transform: scale(.95);
  transition: transform 0.2s ease;
}

.audio-button:hover {
  transform: scale(1.0);
}

.audio-button img {
  width: 100%;
  height: 100%;
}

#exercise-audio {
  display: none;
}

.hidden {
  display: none;
}

/* Statements container */
.statements-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  flex-grow: 1;
}

/* Statement row styling */
.statement-row {
  width: 100%;
  margin-bottom: 0.5rem;
}

/* Statement text styling */
.statement-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Dropdown Styles - Based on assets/dropdown/dropdown.css */
:root {
  --dropdown-bg: #FEE9B2;         /* Light yellow background */
  --dropdown-border: #FFBF00;     /* Darker yellow border */
  --dropdown-hover: #FFD966;      /* Darker yellow for hover */
  --dropdown-selected: #FFD966;   /* Slightly darker yellow for selected item */
  --dropdown-text: #333333;       /* Dark text color */
  --dropdown-radius: 2rem;        /* Rounded corners */
  --dropdown-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Container for the dropdown */
.dropdown-container {
  position: relative;
  width: 10rem;
  font-family: "League Spartan", sans-serif;
  display: inline-block;
  margin-right: 0.5rem;
}

/* Dropdown button */
.dropdown-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: var(--dropdown-bg);
  border: 0.2rem solid var(--dropdown-border);
  border-radius: var(--dropdown-radius);
  color: var(--dropdown-text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  box-shadow: var(--dropdown-shadow);
  min-height: 2.2rem;
  padding: 0.5rem 1rem;
}

.dropdown-button:hover {
  background-color: var(--dropdown-hover);
}

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

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

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

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.25rem); /* Position below the button with a small gap */
  left: 0;
  width: 100%;
  background-color: var(--dropdown-bg);
  border: 0.2rem solid var(--dropdown-border);
  border-radius: var(--dropdown-radius);
  overflow: hidden;
  box-shadow: var(--dropdown-shadow);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: all 0.2s ease;
  display: none;
}

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

/* Dropdown items */
.dropdown-item {
  padding: 0.75rem 1rem;
  color: var(--dropdown-text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 0.1rem solid var(--dropdown-border);
  text-align: center;
  background-color: var(--dropdown-bg);
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.dropdown-item:hover {
  background-color: var(--dropdown-hover);
}

/* Selected item styling */
.dropdown-item.selected {
  background-color: var(--dropdown-selected);
  font-weight: 600;
}

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

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

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .content-layout {
    flex-direction: column;
    align-items: center;
  }
  
  .statement-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 100%;
  }
  
  .dropdown-container {
    width: 100%;
    margin-right: 0;
  }
} 