html, body { height: 100%; width: 100%; padding: 0; margin: 0; } #controls { opacity: 0.8; animation: 2s linear forwards fade; position: relative; z-index: 300; } @keyframes fade { to { opacity: 0; } } .tap { background: #000000; position: fixed; display: flex; justify-content: center; align-items: center; } #tap-left, #tap-right { bottom: 0px; width: 30vw; height: 100vh; } #tap-left svg, #tap-right svg { width: min(90%, 100px); } #tap-left { left: 0px; } #tap-right { right: 0px; } #tap-back, #tap-restart { left: 30vw; width: 40vw; height: 20vh; } #tap-back svg { height: min(51%, 100px); } #tap-restart svg { height: min(90%, 175px); } #tap-back { top: 0px; } #tap-restart { bottom: 0px; } .image-container img { position: fixed; left: 0; top: 0; height: 100vh; width: 100vw; object-fit: contain; object-position: 50% 50%; background-color: #111; } #current-image img { z-index: 100; } #preload-images img { z-index: 0; } #page-num, #duration { position: fixed; z-index: 200; font-size: 14pt; top: 10px; font-weight: bold; opacity: 0.75; text-shadow: /* Duplicate the same shadow to make it very strong */ 0 0 2px #222, 0 0 2px #222, 0 0 2px #222; } #page-num { left: 10px; text-align: center; } #page-num table { border-spacing: 0; } #current-page { border-bottom: 2px solid; } #duration { right: 10px; } #progress { background-color: #4488ffcc; height: 5px; width: 0; position: fixed; top: 0; left: 0; z-index: 400; }