/* The timeline of the children's tab (public/frise.js, src/frise/enfants.ts): the same as the adults', with the pictures
   of the maps (the eras', the great events' on the line of the story), the children's letter, brighter colours, and a
   pin on the note's scene. In the drawer of the children's tab only, loaded after frise.css. */

.frise-enfants {
  --frise-font: 'Fredoka', var(--rounded);
  --frise-k-line: #b48a5a;
  --frise-scene-mark: #7a5c3a;
  --frise-scene-fill: #7a5c3a;
  --frise-power: #f2c79a;
  --frise-people: #a9d4ff;
  --frise-book: #d9ccff;
  --frise-told: #ffe08a;
  --frise-other: #e6dccb;
  --frise-era-1: #ffe9b8;
  --frise-era-2: #ffd9c2;
  --frise-era-3: #fff0a8;
  --frise-era-4: #ffd6e0;
  --frise-era-5: #ffcfc7;
  --frise-era-6: #cfe6ff;
  --frise-era-7: #d6f2c2;
  --frise-era-8: #ecd6ff;
  --frise-era-9: #e6e2d6;
  --frise-era-10: #ffd1b3;
  --frise-era-11: #def0c8;
}

/* The timeline at night: deep colours, the same bright pictures. */
:root[data-theme='dark'] .frise-enfants {
  --frise-k-line: #8f7a5c;
  --frise-scene-mark: #d9b98a;
  --frise-scene-fill: #d9b98a;
  --frise-power: #6b4f2e;
  --frise-people: #2c4a6e;
  --frise-book: #45397a;
  --frise-told: #5c4a1a;
  --frise-other: #46402f;
  --frise-era-1: #4a3a1e;
  --frise-era-2: #4a2f22;
  --frise-era-3: #4a4218;
  --frise-era-4: #4a2633;
  --frise-era-5: #4f2622;
  --frise-era-6: #1f3552;
  --frise-era-7: #27421f;
  --frise-era-8: #3b2752;
  --frise-era-9: #36332b;
  --frise-era-10: #4f301c;
  --frise-era-11: #2f3d22;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .frise-enfants {
    --frise-k-line: #8f7a5c;
    --frise-scene-mark: #d9b98a;
    --frise-scene-fill: #d9b98a;
    --frise-power: #6b4f2e;
    --frise-people: #2c4a6e;
    --frise-book: #45397a;
    --frise-told: #5c4a1a;
    --frise-other: #46402f;
    --frise-era-1: #4a3a1e;
    --frise-era-2: #4a2f22;
    --frise-era-3: #4a4218;
    --frise-era-4: #4a2633;
    --frise-era-5: #4f2622;
    --frise-era-6: #1f3552;
    --frise-era-7: #27421f;
    --frise-era-8: #3b2752;
    --frise-era-9: #36332b;
    --frise-era-10: #4f301c;
    --frise-era-11: #2f3d22;
  }
}

/* The colours of the eras in full, and the line of the story thick, as a path to follow. */
.frise-enfants .frise-era-bg {
  fill-opacity: 1;
}

.frise-enfants .frise-line {
  stroke: var(--frise-k-line);
  stroke-width: 2.5px;
  stroke-linecap: round;
}

/* The pin of the chips, red as the one on the line. */
.frise-enfants .frise-mark-pin path {
  fill: #e8453c;
}

.frise-enfants .frise-mark-pin circle {
  fill: #fff;
}

/* The note's scene glows under its pin, which hops. */
.frise-enfants .k-glow {
  fill: #ffe066;
  fill-opacity: 0.8;
  stroke: var(--accent);
  stroke-width: 2px;
}

.frise-enfants .k-pin {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: k-hop 1.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .frise-enfants .k-pin {
    animation: none;
  }
}
