/* ============================================================
   CSS 11.09 — align-self and order (on ONE item)
   ============================================================
   align-self: …;  → this ONE item ignores the container's align-items
                     (same values: flex-start, center, flex-end, stretch)
   order: -1;      → move this item to the front (default order is 0;
                     smaller numbers come first)
   ⚠ order only changes what you SEE. The Tab key and screen readers
     still follow the HTML order — don't use it for important content.
   ============================================================ */

.top-aligned {
  display: flex;
  align-items: flex-start;          /* everyone at the top …           */
  height: 140px;
  gap: 10px;
}

.self-end {
  align-self: flex-end;             /* … except this one: bottom        */
}

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

.first {
  order: -1;                        /* jumps to the front               */
}
/* Try it: change align-self to  center. */

/* ------------------------------------------------------------
   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).
   ------------------------------------------------------------ */
.self-end {
  background-color: #FFAF04;
  color: #000000;
}
.first {
  background-color: #FFAF04;
  color: #000000;
}
