/* ============================================================
   CSS 04.06 — opacity vs rgba()
   ============================================================
   opacity: 0.5   → fades the WHOLE element: background, text, border,
                    everything inside it.
   rgba(…, 0.5)   → fades ONLY that one colour (here the background).
   For see-through backgrounds with readable text, use rgba.
   ============================================================ */

.fade-card {
  color: #000000;                   /* black text — watch it turn grey with opacity */
  border: 2px solid #000000;        /* black border — fades with opacity too        */
}

.use-opacity {
  background-color: #1F9D55;
  opacity: 0.5;                     /* everything fades, text too */
}

.use-rgba {
  background-color: rgba(31, 157, 85, 0.5);   /* only the background fades (#1F9D55 = rgb(31, 157, 85)) */
}
/* Try it: change opacity to 0.2 → the text is almost gone. */

/* ------------------------------------------------------------
   Only to make it visible — not part of this lesson
   ------------------------------------------------------------
   The striped background lets you SEE THROUGH the colours.
   (repeating-linear-gradient draws stripes — lesson 07.)
   ------------------------------------------------------------ */
.stripes {
  padding: 14px;
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, #FFFFFF 0 12px, #FFD36B 12px 24px);
}

.fade-card {
  width: 220px;
  padding: 16px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
}
