/* Sizes that adapt by screen */
:root {
  --nav-h: 56px;
  --btn-h: 34px;   /* button height default */
}

@media (max-width: 480px) {
  :root {
    --nav-h: 48px;
    --btn-h: 30px; /* slightly shorter buttons on small screens */
  }
}
@font-face { 
    font-family: sans-serif; 
    src: url('/static/fonts/KingHwa_OldSong.woff2') format('woff2'); 
    font-weight: 400; 
    font-style: normal; 
    font-display: swap; 
    } 
body { 
        font-family: 'KingHwa_OldSong', sans-serif; 
        min-height: 100dvh;
        line-height: 1.6; 
        background: linear-gradient(117deg, rgba(235,192,191,0.00) 0%, rgba(210,155,174,0.50) 73.46%), 
                    linear-gradient(180deg, #EEC29D 0%, #EFDAC8 20%, #EFDAC8 79.81%, #EEC29D 100%),#FFF; 
}


/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-h);
  background: rgba(168,222,224,0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid #A8DEE0; box-shadow: 0 2px 6px rgba(0,0,0,0.05); z-index: 1000;
}
.nav-container { max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; }
.nav-left a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: #0A0A0A; font-size: 20px; font-weight: 600; }
.nav-right { display: flex; gap: 10px; align-items: center; }
.nav-btn { 
  display: inline-flex;          /* was inline-block */
  align-items: center;           /* vertical center */
  justify-content: center;       /* horizontal center */
  height: var(--btn-h);
  box-sizing: border-box;                  /* pick a comfy height */
  padding: 6px 14px;               /* no top/bottom padding now */
  line-height: 1;                /* avoids baseline offset */
  border-radius: 8px;
  background: #D28CF5;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.nav-btn:hover { background: #b36ee2; }
.logo { height: 42px; width: auto; }

/* Lang switch */
.lang-switch { display: inline-flex; align-items: center; gap: 0; border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.6); backdrop-filter: blur(4px); }
.lang-option { display: inline-flex; align-items:center; justify-content: center; height: var(--btn-h); padding: 6px 14px; font-size: 14px; text-decoration: none; color: #333;
  line-height: 1; transition: background .2s ease, color .2s ease; box-sizing: border-box; }
.lang-option:hover { background: rgba(0,0,0,0.06); }
.lang-option.active { background: #333; color: #fff; }

/* Footer */
.footer { width: 100%; max-width: 760px; margin: 16px auto 0; padding-top: 12px;
  border-top: 1px solid #e6e6e6; text-align: center; font-size: 14px; color: #666; }
.footer a { color: #666; text-decoration: none; margin: 0 6px; }
.footer a:hover { color: #333; text-decoration: underline; }
/* robust centering for all pages */
.page-wrap {
    box-sizing: border-box;
    max-width: 100%;
    width: 620px;           /* adjust as you like */
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;         /* keep some side padding */
    padding-right: 16px;
    align-self: center;
  }

/* Base page padding so content is below fixed nav */
body { margin: 0; padding: calc(24px + var(--nav-h)) 16px 12px; }

@media (max-width: 420px) {
  .nav-left a { font-size: 15px; }
  .nav-btn { font-size: 13px; padding: 6px 12px; }
}
@media (max-width: 480px) {
  .nav-btn,
  .lang-option { padding: 6px 12px; font-size: 13px; }
}
.footer .copyright {
  margin-top: 6px;
  font-size: 12px;
  color: #888;
}
