/* ============================================================
   CSS 11.08 — flex-grow, flex-shrink, flex-basis and flex (on ITEMS)
   ============================================================
   These go on the ITEMS (children), not on the container.

   flex-grow: 1;      "take a share of the EXTRA space"  (0 = don't grow, default)
   flex-shrink: 1;    "you may squeeze me" (default)    (0 = never squeeze)
   flex-basis: 200px; "my starting size before growing / shrinking"

   flex: 1;  is the short form of  flex-grow: 1; flex-shrink: 1; flex-basis: 0;
             → every item with flex: 1 gets an EQUAL share ✔
   ============================================================ */

.flex {
  display: flex;
  gap: 10px;
}

.grow {
  flex-grow: 1;                     /* takes all the extra space */
}

.one { flex: 1; }                   /* 1 share  */
.two { flex: 2;}   /* 2 shares → twice as much */
/* Try it: change .two to  flex: 4;  → the middle box gets much wider. */

/* ------------------------------------------------------------
   Only to make the boxes visible — not part of this lesson
   ------------------------------------------------------------ */
.box {
  background-color: #2D62EF;
  color: #FFFFFF;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 6px;
}

.container {
  background-color: #F4F5F7;
  border: 2px dashed #9A9A9A;
  padding: 8px;
  margin-bottom: 16px;
}


/* ------------------------------------------------------------
   Only to colour the special boxes — not part of this lesson.
   These lines MUST stay at the END: the "visible" rules above give
   every box a colour, and when two selectors are equally strong,
   the LATER rule wins (lesson 03 — cascade).
   ------------------------------------------------------------ */
.grow {
  background-color: #1F9D55;
}
.two {
  background-color: #1F9D55;
}
