*, *::after, *::before { box-sizing: border-box; } :root { font-size: 12px; --color-text: rgb(140, 146, 164); --color-bg: #000; --color-link: rgb(140, 146, 164); --color-link-hover: #fff; } html, body { width: 100vw; height: 100%; overflow: hidden; } body { margin: 0; color: var(--color-text); background-color: var(--color-bg); font-family: ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* Page Loader */ .js .loading::before, .js .loading::after { content: ''; position: fixed; z-index: 1000; } .js .loading::before { top: 0; left: 0; width: 100%; height: 100%; background: var(--color-bg); } .js .loading::after { top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; opacity: 0.4; background: var(--color-link); animation: loaderAnim 0.7s linear infinite alternate forwards; } @keyframes loaderAnim { to { opacity: 1; transform: scale3d(0.7,0.7,1); } } a { text-decoration: underline; color: var(--color-link); outline: none; cursor: pointer; } a:hover { color: var(--color-link-hover); outline: none; text-decoration: none; } /* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */ a:focus { /* Provide a fallback style for browsers that don't support :focus-visible */ outline: none; } a:focus-visible { /* Draw a very noticeable focus style for keyboard-focus on browsers that do support :focus-visible */ outline: 2px solid red; } .unbutton { background: none; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer; } .unbutton:focus { outline: none; } #root{ width: 100vw; height: 100vh; } .frame { position: relative; z-index: 1000; padding: 2rem; display: grid; grid-template-columns: auto; grid-template-areas: 'title' 'prev' 'back' 'sub' 'sponsor'; grid-row-gap: 1rem; grid-column-gap: 2rem; pointer-events: none; align-items: start; justify-content: start; } .frame a { pointer-events: auto; } .frame__title { grid-area: title; font-size: inherit; margin: 0; } .frame__back { grid-area: back; } .frame__prev { grid-area: prev; } .frame__sub { grid-area: sub; } @media screen and (min-width: 53em) { .frame { position: fixed; z-index: 1000; top: 0; left: 0; width: 100%; height: 100%; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto 1fr; grid-template-areas: 'title title title' 'prev back back' 'sub sponsor sponsor'; } .frame__sub { align-self: end; } body #cdawrap { align-self: end; justify-self: end; } }