/* ============================================================
   CSS 04.02 — Hex   #RRGGBB
   ============================================================
   #  + 6 characters: 2 for Red, 2 for Green, 2 for Blue.

     #  2D   62   EF
        ─┬─  ─┬─  ─┬─
         │    │    └── Blue   amount  (00 to FF)
         │    └─────── Green  amount  (00 to FF)
         └──────────── Red    amount  (00 to FF)

   Hex counts 0 1 2 3 4 5 6 7 8 9 A B C D E F  → 00 = none, FF = full (255)
   #000000 = black (no light)     #FFFFFF = white (full light)
   Short form: #FFF = #FFFFFF,   #000 = #000000   (each digit doubled)
   Small or capital letters both work: #2d62ef = #2D62EF.
   ============================================================ */

.hex-blue  { background-color: #2D62EF; }
.hex-green { background-color: #1F9D55; }
.hex-amber { background-color: #FFAF04; }
.hex-red   { background-color: #E54B4F; }
.hex-white { background-color: #FFF; }    /* short form of #FFFFFF */
.hex-black { background-color: #000; }                     /* short form of #000000 */
/* Try it: change #2D62EF to #2DEF62 (swap the green and blue parts)
   → it becomes a bright green. */

/* ------------------------------------------------------------
   Only to make the boxes visible — not part of this lesson
   ------------------------------------------------------------ */
.swatch {
  width: 260px;
  height: 50px;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #E4E4E4;
  font-family: Consolas, Menlo, monospace;
  font-size: 14px;
  color: #FFFFFF;                   /* white text by default */
}


/* ------------------------------------------------------------
   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).
   ------------------------------------------------------------ */
.hex-amber {
  color: #000;                     /* dark text on a light colour */
}
.hex-white {
  color: #000;                     /* dark text on a light colour */
}
