* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Comic Sans MS", "Trebuchet MS", sans-serif;
  background: #fff9df;
  color: #18324a;
  line-height: 1.6;
}

header {
  background: #46b7e9;
  border-bottom: 8px solid #18324a;
  text-align: center;
  padding: 22px 15px 18px;
  position: relative;
}

header h1 {
  font-size: clamp(2rem, 6vw, 4.2rem);
  margin: 5px 0;
  color: #fff;
  text-shadow: 4px 4px 0 #18324a;
  transform: rotate(-1deg);
}

.subtitle {
  background: #fff;
  display: inline-block;
  padding: 7px 15px;
  border: 3px solid #18324a;
  border-radius: 15px;
  box-shadow: 5px 5px 0 #18324a;
}

.sun {
  position: absolute;
  right: 7%;
  top: 15px;
  font-size: 3rem;
}

nav {
  margin-top: 22px;
}

nav a {
  display: inline-block;
  margin: 5px;
  padding: 8px 12px;
  background: #ffdc4a;
  color: #18324a;
  border: 3px solid #18324a;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  transform: rotate(2deg) scale(1.05);
}

main {
  width: min(1050px, 92%);
  margin: 25px auto;
}

section {
  margin: 25px 0;
  padding: 25px;
  background: white;
  border: 4px solid #18324a;
  border-radius: 22px;
  box-shadow: 8px 8px 0 #18324a;
}

h2 {
  color: #e65353;
  font-size: 2rem;
  margin-top: 0;
}

.welcome {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
}

.big-emoji {
  font-size: 6rem;
  text-align: center;
}

.cards, .effects-grid, .us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card, .effect, .zone {
  padding: 18px;
  border: 3px dashed #18324a;
  border-radius: 18px;
}

.card h3 {
  margin-top: 0;
}

.blue { background: #c9f0ff; }
.yellow { background: #fff1a8; }
.pink { background: #ffd2e1; }

.machine {
  background: #d8f7df;
}

.diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.box {
  background: #fff;
  border: 4px solid #18324a;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  min-width: 170px;
}

.arrow {
  font-size: 2rem;
}

.fun-fact {
  background: #ffdc4a;
  padding: 15px;
  border: 3px solid #18324a;
  border-radius: 15px;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.numbers div {
  background: #18324a;
  color: white;
  padding: 18px 10px;
  text-align: center;
  border-radius: 15px;
  border: 4px solid #e65353;
}

.numbers strong, .numbers span {
  display: block;
}

.numbers strong {
  font-size: 2.2rem;
}

.note {
  background: #fff4c2;
  padding: 14px;
  border-left: 7px solid #e6ad18;
}

.effect {
  background: #e8f6ff;
  font-size: 1.05rem;
}

.wet { background: #bdeaff; }
.dry { background: #fff0a7; }
.middle { background: #e9d5ff; }

.prepare {
  background: #d7ffd9;
}

.prepare li {
  margin: 10px 0;
  font-size: 1.1rem;
}

.timeline-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.timeline-row div {
  padding: 18px;
  background: #ffdc4a;
  border: 3px solid #18324a;
  border-radius: 15px;
  text-align: center;
}

.quiz {
  background: #ffd6a8;
  text-align: center;
}

.answers button {
  display: block;
  width: 90%;
  max-width: 600px;
  margin: 10px auto;
  padding: 13px;
  font: inherit;
  font-weight: bold;
  background: white;
  border: 3px solid #18324a;
  border-radius: 14px;
  cursor: pointer;
}

.answers button:hover {
  background: #ffdc4a;
}

#result {
  font-size: 1.3rem;
  font-weight: bold;
}

.pacific-story {
  background: #bfefff;
}

footer {
  background: #18324a;
  color: white;
  text-align: center;
  padding: 25px;
}

.small {
  font-size: 0.8rem;
  opacity: 0.85;
  max-width: 850px;
  margin: auto;
}

@media (max-width: 750px) {
  .cards, .effects-grid, .us-grid, .numbers, .timeline-row {
    grid-template-columns: 1fr;
  }

  .welcome {
    flex-direction: column;
  }

  .sun {
    position: static;
  }

  .arrow {
    transform: rotate(90deg);
  }
}


.video-section {
  background: #d9f3ff;
  text-align: center;
}

.video-frame {
  background: #18324a;
  padding: 10px;
  border: 5px solid #e65353;
  border-radius: 18px;
  max-width: 900px;
  margin: 20px auto;
  box-shadow: 6px 6px 0 #18324a;
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: 520px;
  border-radius: 10px;
}

.watch-status {
  display: inline-block;
  padding: 12px 18px;
  background: #fff1a8;
  border: 3px dashed #18324a;
  border-radius: 15px;
  font-weight: bold;
}

.watch-status.finished {
  background: #c8f7c5;
}

.revision {
  background: #ffe0f0;
}

.question-instruction {
  font-size: 1.1rem;
}

.revision-lock {
  padding: 20px;
  background: #eeeeee;
  border: 3px dashed #777;
  border-radius: 15px;
  text-align: center;
  font-weight: bold;
}

.revision-question {
  background: white;
  padding: 20px;
  border: 4px solid #18324a;
  border-radius: 18px;
}

.revision-question h3 {
  color: #e65353;
  font-size: 1.5rem;
}

.revision-question textarea {
  width: 100%;
  resize: vertical;
  padding: 12px;
  border: 3px solid #18324a;
  border-radius: 12px;
  font: inherit;
  margin: 10px 0;
}

.revision-question button {
  padding: 12px 20px;
  font: inherit;
  font-weight: bold;
  background: #ffdc4a;
  border: 3px solid #18324a;
  border-radius: 12px;
  cursor: pointer;
}

.revision-question button:hover {
  transform: rotate(-1deg) scale(1.03);
}
