/* dive.css
 *
 * The scroll-driven dive between the day beach and the underwater scene
 * (js/dive/dive-scroll.js and dive-overlay.js).
 */

/* One screen of scrolling, through which the dive plays: the underwater
   scene below it rises up the screen as it scrolls past. (The screen's
   height with a phone's toolbars showing, as they are at the top of the
   page: the underwater scene then starts just below the screen.) */
.dive-zone {
  height: 100vh;
  height: 100svh;
}

/* While the dive plays: the surface's glint and the rising bubbles (a
   canvas), and the eyes adjusting (a layer that softens and cools
   everything behind it). Over both scenes, under the controls (the sound
   toggle and the résumé link, z-index 4); clicks pass through. */
.dive-overlay,
.dive-eyes {
  position: fixed;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.dive-overlay {
  display: block;
}
