/* ============================================================
   CSS 06.07 — Centre a box with margin: 0 auto
   ============================================================
     margin: 0 auto;   ← 0 top/bottom, auto left/right = centred

   auto on left and right = "share the free space equally".
   Only works when the box has a width / max-width smaller than its parent.
   This is how most websites centre their main content.
   (text-align: center centres the TEXT inside a box — not the box itself.)
   ============================================================ */

.centre-box {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;               /* centres the TEXT inside (a different job) */
}
/* Try it: remove  max-width  → the box fills the whole width,
   so there is no free space to share and it cannot look centred. */


/* ------------------------------------------------------------
   Only to make the box visible — not part of this lesson
   ------------------------------------------------------------ */
.centre-box {
  padding: 14px;
  background-color: #FFF6E0;
  border: 2px solid #FFAF04;
}
