/* ── Global ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background-color: #021b43;
  width: 100%;
}

a { color: #6eb5ff; }

/* ── Intro header ──────────────────────────────────── */
.intro {
  width: 100%;
  background: #ede5ce;
  text-align: center;
  padding: 140px 80px 40px;
}

.intro-title {
  color: #4d4d80;
  font-weight: bold;
  font-size: 50px;
  display: block;
  margin-bottom: 20px;
}

.intro-body {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 20px;
}

.intro-credit {
  color: #4d4d80;
  font-size: 22px;
  margin-top: 16px;
}

.intro-credit img {
  vertical-align: middle;
}

.intro-sub {
  color: #4d4d80;
  font-size: 18px;
  margin-top: 12px;
}

.svg-inline { vertical-align: middle; }

/* ── Scroll indicator (fixed bar) ─────────────────── */
#indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  padding: 6px 0;
  z-index: 100;
  pointer-events: none;
}

/* ── Ocean wave divider ────────────────────────────── */
.wave-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave-divider img {
  display: block;
  width: 100%;
  transform: rotate(180deg);
  margin-top: -1px;
}

/* ── Canvas container ──────────────────────────────── */
.canvas-wrap {
  width: 100%;
  height: 22000px;
  position: relative;
}

#canvas {
  position: absolute;
  z-index: 2;
}

/* ── Ending section ────────────────────────────────── */
.ending {
  width: 100%;
  height: 400px;
  background-image: url(../img/end.jpg);
  background-size: cover;
  text-align: center;
  font-size: 40px;
  color: #fff;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════
   Safety page styles
═══════════════════════════════════════════════════ */
.safety-title {
  margin-top: 50px;
  font-size: 40px;
  text-align: center;
  color: #fff;
}

.safety-back {
  text-align: center;
  margin-bottom: 20px;
}

.safety-main {
  margin-top: 60px;
  position: relative;
  min-height: 2000px;
}

/* Speech bubble (intro text) */
.s-bubble {
  text-align: center;
  margin: 20px auto 0 300px;
  width: 600px;
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  position: absolute;
  font-size: 22px;
  color: #333;
}

.s-bubble::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 40px;
  border-left: 20px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.s-teacher {
  margin: 50px auto 0 1000px;
  position: absolute;
}

/* Tip blocks */
.s-tip {
  position: absolute;
  color: #fff;
  font-size: 24px;
  line-height: 1.6;
}

.s-tip-1  { top: 200px;  left: 200px;  width: 500px; }
.s-tip-2  { top: 800px;  left: 800px;  width: 500px; }
.s-tip-3  { top: 1350px; left: 200px;  width: 500px; }
.s-tip-4  { top: 850px;  left: 700px;  width: 700px; }
.s-tip-4 p { line-height: 40px; }
.s-tip-5  { top: 1450px; left: 600px;  width: 700px; }

/* Images */
.s-boy     { position: absolute; top: 200px;  left: 700px; }
.s-boy1    { position: absolute; top: 620px;  left: 200px; }
.s-car     { position: absolute; top: 1050px; left: 700px; }
.s-distance { position: absolute; top: 800px; left: 200px; }
.s-lamp    { position: absolute; top: 1400px; left: 400px; }
