
:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #64748b;
  --brand: #174ea6;
  --brand-dark: #123b7a;
  --accent: #f59e0b;
  --surface: #ffffff;
  --page: #f3f6fb;
  --line: #e2e8f0;
  --good: #15803d;
  --bad: #b91c1c;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(15, 35, 70, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0 18px 36px;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
}
.body { width: min(1180px, 100%); margin: 0 auto; clear: both; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:visited { color: #4b5590; }
a:hover, a:focus-visible { color: var(--brand-dark); text-decoration: underline; }
.mainHeader { padding: 18px 0 0; }
.mainHeader > a { display: inline-block; }
.mainHeader img { width: auto; max-width: min(360px, 80%); max-height: 100px; object-fit: contain; margin: 0 0 16px; }
.mainHeader nav {
  min-height: 54px; height: auto; background: var(--brand-dark);
  border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.mainHeader nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 6px; }
.mainHeader nav ul li { display: block; float: none; }
.mainHeader nav a:link, .mainHeader nav a:visited {
  display: block; min-height: 42px; padding: 9px 16px; border-radius: 9px;
  color: #fff; font-weight: 650;
}
.mainHeader nav a:hover, .mainHeader nav a:focus-visible,
.mainHeader nav .active a:link, .mainHeader nav .active a:visited {
  color: #fff; background: rgba(255,255,255,.16); text-decoration: none;
}
.mainContent { display: flex; align-items: flex-start; gap: 22px; line-height: 1.7; margin-top: 22px; }
.content { width: min(74%, 850px); min-width: 0; float: none; }
.topcontent, .bottomcontent, .facebookcontent, .top-sidebar, .middle-sidebar, .bottom-sidebar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(18px, 3vw, 30px); margin: 0 0 20px;
}
.topcontent header h1, .topcontent header h2, h1, h2 {
  color: var(--ink); line-height: 1.25; letter-spacing: -.025em;
}
h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h2 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); margin: 0 0 12px; }
h3 { font-size: 1.05rem; background: #f1f5f9; padding: 10px 13px; border-radius: 9px; color: var(--ink); }
h4 { color: var(--brand-dark); font-size: 1.08rem; margin: 1.5em 0 .45em; }
p { margin: .65em 0; }
.post-info { color: var(--muted); font-size: .92rem; font-style: normal; }
article { overflow-wrap: anywhere; }
article ul, article ol { padding-left: 1.5rem; }
article li { margin: .35em 0; }
article img { border-radius: 10px; }
.content > article:first-child { margin-top: 0; }
.top-sidebar, .middle-sidebar, .bottom-sidebar { width: 26%; min-width: 220px; float: none; margin: 0 0 20px; }
.top-sidebar h2, .middle-sidebar h2, .bottom-sidebar h2 { font-size: 1.15rem; }
.mainFooter { clear: both; width: 100%; background: #172b4d; border-radius: 12px; margin: 24px 0 0; padding: 12px 18px; }
.mainFooter p { width: 100%; color: #eaf0fa; margin: 8px auto; }
button, input, select, textarea { font: inherit; }
button {
  width: auto; min-height: 44px; padding: 9px 18px; border: 0; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 1rem; font-weight: 650;
  box-shadow: 0 3px 8px rgba(23,78,166,.18); cursor: pointer; text-shadow: none;
}
button:hover { background: var(--brand-dark); color: #fff; }
button:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #fbbf24; outline-offset: 3px; }
.questionText { color: var(--ink); font-size: clamp(1.05rem, 2vw, 1.2rem); font-weight: 650; line-height: 1.5; }
.option {
  display: block; margin: 10px 0; padding: 12px 15px; border: 1px solid #cbd5e1;
  border-radius: 10px; background: #f8fafc; color: var(--ink); font-size: 1rem;
  line-height: 1.5; cursor: pointer; transition: .15s ease;
}
.option:hover { border-color: var(--brand); background: #eff6ff; color: var(--ink); }
.feedback1, .feedback2 { padding: 10px 13px; border-radius: 9px; color: #fff; text-align: center; font-weight: 650; }
.feedback1 { background: var(--good); }
.feedback2 { background: var(--bad); }
#navContent { position: relative; width: 100%; min-height: 300px; height: auto; margin: auto; overflow: hidden; }
#game1, #game2 { position: absolute; right: 0; width: 100%; margin: auto; }
#game2 { right: -100%; }
input[type="text"], input[type="number"], select, textarea {
  max-width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff;
}
table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
td, th { padding: 9px 11px; border: 1px solid var(--line); text-align: left; }
th { background: #eff4fb; }
[align="center"] { text-align: center; }
@media (max-width: 850px) {
  body { padding: 0 12px 24px; }
  .mainContent { display: block; }
  .content { width: 100%; }
  .top-sidebar, .middle-sidebar, .bottom-sidebar { width: 100%; min-width: 0; }
}
@media (max-width: 560px) {
  body { padding: 0 9px 18px; font-size: 15px; }
  .mainHeader { padding-top: 10px; }
  .mainHeader img { max-width: 75%; max-height: 76px; margin-bottom: 10px; }
  .mainHeader nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mainHeader nav ul li { width: 100%; }
  .mainHeader nav a:link, .mainHeader nav a:visited { text-align: center; padding: 9px 8px; }
  .topcontent, .bottomcontent, .facebookcontent, .top-sidebar, .middle-sidebar, .bottom-sidebar { padding: 15px; margin-bottom: 13px; border-radius: 12px; }
  #navContent { min-height: 360px; }
  button { max-width: 100%; }
}
