/* ============================================================
   CSS 11.02 — The 2 axes: MAIN axis and CROSS axis
   ============================================================
   The most important idea in flexbox:

     flex-direction: row (default)        flex-direction: column

        MAIN axis →                          MAIN axis ↓
       ┌───┐┌───┐┌───┐                      ┌───┐
       │ 1 ││ 2 ││ 3 │  CROSS ↓             │ 1 │   CROSS →
       └───┘└───┘└───┘                      ├───┤
                                            │ 2 │
                                            ├───┤
                                            │ 3 │
                                            └───┘

   MAIN axis  = the direction the items go.
   CROSS axis = the other direction.

   justify-content  → works on the MAIN axis   (example 04)
   align-items      → works on the CROSS axis  (example 05)
   When the direction changes to column, the axes SWAP — and so do these two.
   ============================================================ */

.row {
  display: flex;
  flex-direction: row;              /* the default — items go left to right */
  gap: 8px;
}

.column {
  display: flex;
  flex-direction: column;           /* items go top to bottom */
  align-items: flex-start;          /* (keeps the boxes narrow — example 05 explains) */
  gap: 8px;
}


/* ------------------------------------------------------------
   Only to colour the labels and make the boxes visible — not part of this lesson
   ------------------------------------------------------------ */
.main-label  { color: #E54B4F; font-weight: bold; margin-bottom: 0; }
.cross-label { color: #1F9D55; font-weight: bold; margin-top: 2px; }

/* ------------------------------------------------------------
   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;
}
