body.voter { padding-bottom: env(safe-area-inset-bottom); } body.voter h1 { font-size: 1.6rem; margin-bottom: 18px; } .center { text-align: center; } #v-enroll .card { padding: 28px 20px 20px; text-align: center; } .dots { display: grid; place-items: center; margin-bottom: 14px; } .cam { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--ink); aspect-ratio: 1; margin: 6px 0 12px; } .cam video { width: 100%; height: 100%; object-fit: cover; display: block; } .scan-msg { text-align: center; min-height: 1.4em; font-size: .9rem; margin: 0 0 12px; } .scan-msg:empty { display: none; } .scan-msg.bad { color: var(--bad); } .scan-msg.ok { color: var(--ok); } #code, #rescue-code { font: 700 1.5rem var(--round); text-align: center; letter-spacing: .12em; text-transform: uppercase; } button.link { display: block; margin: 12px auto 0; border: none; background: none; color: var(--ink-3); font-weight: 500; text-decoration: underline; padding: 6px; } #presence { text-align: center; } #presence .cam { margin-top: 0; } #presence .actions button { flex: 1; } .enrolled-chip { margin: -8px 0 8px; } .vq { background: var(--surface); border-radius: var(--r-card); padding: 20px; margin: 14px 0; border: 1.5px solid transparent; } .vq.open { border-color: var(--ink); } .vq .q-text { font: 700 1.25rem/1.3 var(--round); margin: 0 0 14px; } .choice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: 600 1.05rem var(--round); padding: 14px 16px; margin: 8px 0; min-height: 56px; border-radius: 16px; border: 1.5px solid var(--line); justify-content: flex-start; user-select: none; -webkit-user-select: none; } .choice:active { transform: scale(.985); } .choice .mark { flex: none; width: 24px; height: 24px; border: 2px solid var(--ink-3); border-radius: 50%; display: grid; place-items: center; transition: border-color .15s; } .choice.multi .mark { border-radius: 7px; } .choice[aria-checked="true"] { background: var(--mark); border-color: var(--mark); } .choice[aria-checked="true"] .mark { border-color: var(--ink); background: var(--ink); } .choice[aria-checked="true"] .mark::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mark); } .choice.multi[aria-checked="true"] .mark::after { border-radius: 2px; } .choice.blank { color: var(--ink-2); border-style: dashed; } .choice.blank[aria-checked="true"] { background: var(--bg); border-color: var(--ink-3); color: var(--ink); } .vq .go { margin-top: 10px; padding: 14px; font-size: 1.05rem; } .voted { display: flex; gap: 10px; align-items: center; font: 600 1rem var(--round); margin: 0; color: var(--ink-2); } .voted-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mark); color: var(--ink); } .waiting { text-align: center; padding: 36px 0; color: var(--ink-3); } dialog { border: none; border-radius: 24px; padding: 24px; width: min(92vw, 400px); background: var(--surface); color: var(--ink); } /* dialogs focus their title on open, no ring on a button nobody chose */ dialog h2:focus { outline: none; } dialog::backdrop { background: rgba(28, 32, 54, .45); backdrop-filter: blur(2px); } dialog[open] { animation: rise .2s ease-out; } #confirm-choices { list-style: none; padding: 0; margin: 0 0 8px; } #confirm-choices li { font: 700 1.2rem var(--round); background: var(--mark); border-radius: 12px; padding: 10px 14px; margin: 6px 0; } dialog .actions button { flex: 1; } /* confirmation after enrolling or voting: the projector's mark, its check drawing in */ .celebrate { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 18px; background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--ink); animation: cel-in .3s ease both; } .celebrate svg { width: 132px; height: 132px; animation: cel-pop .5s cubic-bezier(.2, .9, .3, 1.25) both; } .celebrate .tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cel-tick .45s .25s cubic-bezier(.3, .7, .2, 1) forwards; } .celebrate p { margin: 0; font: 700 1.3rem var(--round); animation: cel-in .4s .35s ease both; } .celebrate.out { animation: cel-out .4s ease forwards; } @keyframes cel-in { from { opacity: 0; } } @keyframes cel-out { to { opacity: 0; } } @keyframes cel-pop { from { transform: scale(.6) rotate(-40deg); opacity: 0; } } @keyframes cel-tick { to { stroke-dashoffset: 0; } } @media (prefers-reduced-motion: reduce) { .celebrate, .celebrate svg, .celebrate p { animation: none; } .celebrate .tick { animation: none; stroke-dashoffset: 0; } } /* next camera: some phones hand over the selfie lens or the ultra wide */ .cam-switch { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; border: 0; color: #fff; background: rgba(20, 22, 36, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); } .cam-switch:hover { border: 0; background: rgba(20, 22, 36, .75); }