/* ============================================================
   CSS 04.03 — rgb(red, green, blue)
   ============================================================
   Three numbers from 0 to 255. Screens mix LIGHT:
     red + green          = yellow
     red + green + blue   = white
     nothing              = black

   rgb(45, 98, 239)  is the SAME colour as  #2D62EF
   (2D = 45, 62 = 98, EF = 239)
   Hex and rgb are two ways to write the same thing.
   ============================================================ */

.rgb-red    { background-color: rgb(255, 0, 0); }
.rgb-green  { background-color: rgb(0, 255, 0); }
.rgb-blue   { background-color: rgb(0, 0, 255); }
.rgb-yellow { background-color: rgb(255, 255, 0); }
.rgb-black  { background-color: rgb(0, 0, 0); }
.rgb-white  { background-color: rgb(255, 255, 255); }
/* Try it: make a grey: all three numbers the SAME, e.g. rgb(150, 150, 150). */

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