/* ============================================================
   Plant Nutrients: Macronutrients vs. Micronutrients
   Botanical classroom theme (visual styling only)
   ============================================================ */

/* ---- Page ---- */
body {
  margin: 0;
  background: #e8f2df; /* pale green page background */
  color: #2c3b2e;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

/* ---- Headings: dark forest green ---- */
h1 {
  font-size: 1.7rem;
  color: #1e4d2b;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.15rem;
  color: #1e4d2b;
  margin: 0 0 12px;
}

.instructions {
  color: #4d6350;
  margin: 0 0 20px;
}

/* ---- Activity panels: white with rounded corners ---- */
.zone {
  background: #ffffff;
  border: 2px solid #cddcc3;
  border-radius: 14px;
  padding: 16px;
  min-height: 120px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(30, 77, 43, 0.08);
}

/* Highlight when dragging over, or while a zone is keyboard-selected */
.zone.over,
.zone:focus {
  border-color: #4a7c43;
  background: #f3f9ec;
  outline: none;
}

/* ---- Category boxes side by side on desktop ---- */
.targets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Stack neatly on smaller screens */
@media (max-width: 700px) {
  main {
    padding: 20px 14px 28px;
  }
  h1 {
    font-size: 1.4rem;
  }
  .targets {
    grid-template-columns: 1fr;
  }
  .zone {
    padding: 14px;
  }
}

/* ---- Nutrient cards: pale yellow ---- */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 50px;
  /* keep long card labels from overflowing the panel */
  min-width: 0;
}

.card {
  border: 2px solid #e0cf7a;
  border-radius: 10px;
  background: #fbf3cd; /* pale yellow nutrient card */
  color: #3d3418;
  padding: 10px 16px;
  cursor: grab;
  font-size: 1rem;
  font-weight: bold;
  user-select: none;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Selected card: dark forest green outline */
.card.selected {
  outline: 3px solid #1e4d2b;
  outline-offset: 2px;
}

/* Feedback: green = correct, red = incorrect (words also show in .status) */
.card.correct {
  border-color: #1a7f37;
  background: #e6f6ea;
  color: #14501f;
}

.card.incorrect {
  border-color: #c62828;
  background: #fdeaea;
  color: #7c1a1a;
}

.card .status {
  display: block;
  font-size: 0.8rem;
  font-weight: bold;
}

.card.correct .status {
  color: #1a7f37;
}

.card.incorrect .status {
  color: #c62828;
}

/* ---- Score and congratulations ---- */
#score {
  font-weight: bold;
  color: #1e4d2b;
}

.congrats {
  color: #1a7f37;
  font-weight: bold;
  font-size: 1.2rem;
}

/* ---- Start Over button: clearly visible ---- */
button#reset {
  background: #1e4d2b; /* dark forest green */
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(30, 77, 43, 0.25);
}

button#reset:hover,
button#reset:focus {
  background: #27633a;
  outline: none;
}

button#reset:active {
  background: #163a20;
}
