/* Nanni's navigation menu, built in HTML / CSS and animated with GSAP (js/nanniNav.js).
   Everything is sized in cqw (a percent of the phone's width), so it scales to whatever width its box has.
   The box is the bottom of a phone: its width is the phone's width, and it is 55% as tall. */
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi/Satoshi-Variable.ttf") format("truetype"); font-weight: 300 900; font-style: normal; font-display: swap; }

.nnNav {
  --nn-ink: #001224;       /* the bezel, the floating button and the active tab */
  --nn-gray: #718093;      /* tabs that aren't active */
  --nn-purple: #821AAF;    /* the Translate tab */
  --nn-screen: #F9F8F2;
  --nn-band: #E0DAE1;
  container-type: inline-size;
  position: relative; width: 100%; max-width: 480px; aspect-ratio: 100 / 55; clip-path: inset(0 -25cqw -25cqw -25cqw);
  font-family: "Satoshi", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
.nnPhone { position: absolute; left: 0; right: 0; top: -12cqw; bottom: 0; box-sizing: border-box; border: 1.05cqw solid var(--nn-ink); border-top: 0; border-radius: 0 0 11.5cqw 11.5cqw; background: var(--nn-screen); overflow: hidden; filter: drop-shadow(0 4cqw 6cqw rgba(0,18,36,.18)) drop-shadow(0 1cqw 2cqw rgba(0,18,36,.12)); }

/* the bar: a full-width band along the bottom first, then a floating pill */
.nnBand { position: absolute; left: 0; right: 0; bottom: 0; height: 29.6cqw; background: var(--nn-band); }
.nnPill { position: absolute; left: 3cqw; right: 3cqw; bottom: 5.2cqw; height: 18.6cqw; border-radius: 99cqw; background: var(--nn-screen); box-shadow: 0 1cqw 3cqw rgba(0, 18, 36, 0.13), 0 0 0 0.2cqw rgba(0, 18, 36, 0.05); opacity: 0; }

/* the tabs share the width equally (flex-grow 1 each); the spacers either side let three tabs sit in the middle at the same width */
.nnTabs { position: absolute; left: 0; right: 0; bottom: 7.6cqw; height: 14cqw; display: flex; align-items: center; }
.nnSp { flex: 0 1 0; min-width: 0; }
.nnTab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1cqw; color: var(--nn-gray); }
.nnIcon { display: block; overflow: visible; flex: none; }
.nnIco { display: grid; place-items: center; width: 100%; height: 7.8cqw; }
.nnTab[data-id="translate"] { color: var(--nn-purple); }
.nnTab[data-id="logs"] .nnIcon .pen { fill: rgba(0, 18, 36, 0); }

/* a label is two stacked words, so one can roll up and the other roll in (Logs -> Journal) */
.nnLbl { position: relative; display: block; width: 100%; height: 4.4cqw; overflow: hidden; font-size: 3.3cqw; line-height: 4.4cqw; font-weight: 500; letter-spacing: -0.005em; text-align: center; white-space: nowrap; }
.nnLbl span { position: absolute; left: 0; right: 0; top: 0; }
.nnLbl .b { opacity: 0; }

/* the floating translate button, top right of the bar */
.nnFab { position: absolute; right: 7.7cqw; bottom: 31cqw; width: 14.5cqw; height: 14.5cqw; box-sizing: border-box; display: grid; place-items: center; border-radius: 50%; background: var(--nn-ink); border: 0.6cqw solid #FDFDFD; box-shadow: 0 1.6cqw 3.6cqw rgba(0, 18, 36, 0.32), 0 0.4cqw 1cqw rgba(0, 18, 36, 0.2); opacity: 0; }
.nnFab svg { width: 6.6cqw; height: 6.6cqw; fill: #FDFDFD; }

/* Journal's list: skeleton cards (no copy), under the bar */
.nnList { position: absolute; left: 4.5cqw; right: 4.5cqw; top: 6cqw; height: 130cqw; display: flex; flex-direction: column; gap: 3.2cqw; }
.nnCard { position: relative; flex: none; height: 17.5cqw; border-radius: 3.2cqw; background: #fff; box-shadow: 0 0.4cqw 1.6cqw rgba(0, 18, 36, 0.08); }
.nnCard b { position: absolute; left: 3.2cqw; top: 3.2cqw; width: 11cqw; height: 11cqw; border-radius: 2.4cqw; background: #E4E2DA; }
.nnCard u { position: absolute; left: 17.5cqw; top: 4.6cqw; right: 8cqw; height: 2.6cqw; border-radius: 1.3cqw; background: #E4E2DA; }
.nnCard u.s { top: 9.6cqw; right: 22cqw; }
