/* ============================================================
   CSS 04.11 — vw / vh : a part of the WINDOW
   ============================================================
   vw = viewport width,  vh = viewport height.
   The viewport is the visible part of the browser window.

     1vw = 1% of the window WIDTH       100vw = full window width
     1vh = 1% of the window HEIGHT      100vh = full window height

   Good for: full-screen banners →  .hero { min-height: 100vh; }
   ============================================================ */

.vw-bar {
  width: 30vw;                      /* 30% of the WINDOW width (not the parent!) */
}

.vh-box {
  height: 15vh;                     /* 15% of the WINDOW height */
}
/* Try it: change 15vh to 50vh → the box becomes half the window tall. */

/* ------------------------------------------------------------
   Only to make the bars visible — not part of this lesson
   ------------------------------------------------------------ */
.bar {
  background-color: #2D62EF;
  color: #FFFFFF;
  padding: 6px 10px;
  margin: 8px 0;
  border-radius: 6px;
  font-family: Consolas, Menlo, monospace;
  font-size: 14px;
}

.vw-bar {
  background-color: #7B3FE4;
}

.vh-box {
  background-color: #EEF3FF;
  border: 2px dashed #2D62EF;
  border-radius: 8px;
  padding: 8px;
  color: #2D62EF;
  font-weight: 600;
}


/* ============================================================
   Lesson 04 — Quick summary: which colour format? which unit?
   ============================================================
   COLOURS
     Name        tomato                  quick tests only
     Hex         #2D62EF                 ✔ most common (from designers)
     rgb         rgb(45, 98, 239)        same as hex
     rgba        rgba(45, 98, 239, 0.5)  ✔ see-through backgrounds, shadows
     hsl         hsl(224, 86%, 56%)      ✔ making lighter / darker shades
     opacity fades the whole element; rgba fades one colour.

   UNITS
     px     fixed                         borders, shadows, small details
     %      part of the parent            widths of layout parts
     em     × parent's font-size          padding of buttons (grows with text)
     rem    × html font-size (16px)       ✔ font sizes, spacing
     vw     % of window width             full-width sections
     vh     % of window height            full-screen banners (min-height: 100vh)

   Pro habit: rem for font sizes, % or max-width for widths,
              px for borders, vh for full-screen sections.

   Practice tasks:
     1. Make a box with background hsl(145, 65%, 90%) and text
        hsl(145, 65%, 25%) — a light-green "success" message.
     2. Make a bar  width: 60%  and check it in a narrow window.
     3. Make three headings with font-size 2rem, 1.5rem and 1.25rem.
        What size in px is each? (32px, 24px, 20px)
   ============================================================ */
