/* ============================================================
   CSS 15.05 — Responsive navbar
   ============================================================
   Phone first:   name on top, links in a COLUMN (big, easy to tap)
   600px+:        everything in one ROW (flexbox — lesson 12)
   Only flex-direction and alignment change; the HTML stays the same.

   HOW TO TEST ON A "PHONE" WITHOUT A PHONE:
     Open the page in Chrome → press F12 → press Ctrl+Shift+M
     (the "device toolbar"). Choose a phone like "iPhone SE" at the top,
     or drag the edge to change the width. Watch the page change.

   ============================================================ */

/* Phone: a column */
.navbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.links {
  display: flex;
  flex-direction: column;           /* links stacked */
}

/* 600px and wider: one row */
@media (min-width: 600px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .links {
    flex-direction: row;            /* links side by side */
    gap: 16px;
  }
}
/* Try it: change 600px to 800px → the menu stays stacked until 800px. */


/* ------------------------------------------------------------
   Only to make the navbar visible — not part of this lesson
   ------------------------------------------------------------ */
.navbar {
  font-family: Arial, sans-serif;
  background-color: #0F1B3D;
  padding: 14px 20px;
  border-radius: 10px;
}

.logo {
  color: #FFAF04;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}

.links a {
  color: #FFFFFF;
  text-decoration: none;
  padding: 8px 0;                   /* taller links = easier to tap on a phone */
}
