/* Exercise Container */
.exercise-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 68rem;
  max-width: 80rem;
  margin: 0 auto;
}

.content-container {
  width: 68rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 60rem;
}

/* Table Layout */
.items-table {
  width: 60rem;
  border-collapse: separate;
  border-spacing: 0.75rem;
}

.items-table td {
  text-align: center;
  vertical-align: middle;
  padding: 0.5rem;
  width: 12rem;
}

.lunchbox-image {
  width: 12rem;
  height: 12rem;
  object-fit: cover;
  border-radius: 0.75rem;
  display: block;
  margin: 0 auto;
}

/* Drop Elements */
.drop_element {
  width: 12rem;
  height: 11rem; /* Increased from 9rem to 11rem to eliminate scrollbar */
  border: 0.125rem solid #F9B002;
  border-radius: 1.25rem;
  background-color: white;
  margin: 0 auto;
  transition: background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 0.5rem;
  gap: 0.15rem; /* Further reduced from 0.25rem to 0.15rem for even closer spacing */
  /* overflow-y: auto; */ /* Removed to eliminate scrollbar */
}
/* Drag Elements */
.drag_element {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12rem;
  height: 2.5rem;
  /*padding: 0.5rem 1rem;*/
  background-color: white;
  color: #00699F;
  border: 0.125rem solid #00699F;
  border-radius: 1.25rem;
  font-weight: 500;
  cursor: grab;
  user-select: none;
  box-sizing: border-box;
  position: relative;
  text-align: center;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.drag_element.dragging {
  cursor: grabbing;
  z-index: 100;
}

.drag_element.correct {
  border-color: #258174;
}

.drag_element.incorrect {
  border-color: #FF0000; 
}

/* When drag element is inside drop element */
.drop_element .drag_element {
  width: 11rem;
  margin: 0.05rem 0; /* Reduced from 0.1rem to 0.05rem for minimal spacing */
}

/* Answers Container */
.answers-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 52rem;
  max-width: 52rem;
  margin-top: 1rem;
}
