/* =========================
   Reset / Base
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background-color: #1c1c20;
  color: #d9d9d9;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  padding: clamp(16px, 4vw, 50px);
  font-size: clamp(16px, 2vw, 20px);
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   Navbar
========================= */

#nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 12px;
  padding: 12px 16px;

  background-color: #1c1c20;
  /*border-bottom: 2px solid #ff9800;*/
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================
   Buttons
========================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  min-width: 120px;
  height: 48px;
  padding-inline: 20px;

  font-size: 16px;
  font-weight: 400;

  color: #ff9800;
  background-color: transparent;
  border: 2px solid #ff9800;
  border-radius: 8px;

  cursor: pointer;
  transition: all 0.3s ease;
}

.button:hover {
  color: #fff;
  background-color: #ff9800;
}

/* =========================
   Layout
========================= */

.page {
  display: flex;
  gap: 20px;
  margin-top: 100px; /* navbar space */
}

/* =========================
   Aside
========================= */

#aside-pipe {
  width: 250px;
  min-height: 100vh;

  border: 2px solid #ff9800;
  border-radius: 12px;

  padding: 12px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.aside-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* =========================
   Group Links
========================= */

.group {
  display: flex;
  flex-direction: column;
  padding: 10px;
  width: 100%;
  gap: 6px;
}

.group > a {
  display: flex;
  align-items: center;
  gap: 8px;

  min-height: 48px;
  padding: 12px 16px;

  font-size: 16px;
  line-height: 1.4;

  color: #ff9800;
  border-radius: 8px;

  transition: background-color 0.2s ease, color 0.2s ease;
}

.group > a:hover {
  background-color: rgba(255, 152, 0, 0.12);
}

.group > a:active {
  background-color: rgba(255, 152, 0, 0.2);
}


/* =========================
   Main Content
========================= */

main {
  flex: 1;
  border: 2px solid #ff9800;
  border-radius: 12px;
  padding: clamp(20px, 4vw, 50px);
}

section {
  border: 2px solid #ff9800;
  border-radius: 8px;
  padding: clamp(12px, 3vw, 20px);
  margin-bottom: 20px;
}

/* =========================
   .../notes/ 區隔樣式
========================= */

/* spacing */
.spacer-sm {
    height: 5px;
}

.spacer-md {
    height: 20px;
}

.spacer-lg {
    height: 50px;
}

/* =========================
   Footer
========================= */

footer {
  margin-top: 40px;
  padding: clamp(40px, 8vw, 100px);
  text-align: center;
  /*border-top: 2px solid #ff9800;*/
}

/* =========================
   RWD - Tablet & Mobile
========================= */

@media (max-width: 768px) {
  #nav-bar {
    position: sticky;
  }

  .page {
    flex-direction: column;
    margin-top: 80px;
  }

  #aside-pipe {
    display: none;
  }

  .nav-buttons {
    width: 100%;
    justify-content: center;
  }

  .button {
    min-width: auto;
    width: auto;
    padding-inline: 16px;
    font-size: 14px;
    height: 44px;
  }

  main {
    padding: 20px;
  }
}

/* =========================
   Small Mobile
========================= */

@media (max-width: 480px) {
  .button {
    width: 100%;
  }

  .nav-buttons {
    gap: 8px;
  }
}

