/* ============================================================
   CSS 10.05 — position: fixed: stuck to the SCREEN
   ============================================================
   .to-top {
     position: fixed;   ← measured from the browser WINDOW, not from a parent
     right: 24px;
     bottom: 24px;
   }
   Used for: back-to-top buttons, chat buttons, cookie bars, top navigation bars.

   The link goes to  href="#top"  → the element with  id="top"
   (the first notice), so clicking it jumps back up.
   ============================================================ */

.to-top {
  position: fixed;                  /* stuck to the browser window */
  right: 24px;
  bottom: 24px;
  z-index: 10;                      /* above everything else on the page (example 07) */
}
/* Try it: change  bottom: 24px  to  top: 24px  → the button moves to the
   top-right corner of the window. */


/* ------------------------------------------------------------
   Only to make the button look nice — not part of this lesson
   ------------------------------------------------------------ */
.to-top {
  background-color: #0F1B3D;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.to-top:hover {
  background-color: #2D62EF;
}


/* ------------------------------------------------------------
   Only to make the page scroll — not part of this lesson
   ------------------------------------------------------------ */
.spacer {
  height: 1500px;                   /* a tall empty area, so there is something to scroll */
  color: #9A9A9A;
  border-left: 4px dashed #E4E4E4;
  padding-left: 12px;
}
