html, body { margin: 0; height: 100%; overflow:hidden; font-family: "RobotoMono-Regular", monospace; } /* * Dynamic sizes * https://stackoverflow.com/questions/90178/make-a-div-fill-the-height-of-the-remaining-screen-space#answer-24979148 */ .box { display: flex; flex-flow: column; height: 100%; overflow:hidden; } .box .row { border: 1px dotted grey; } .box .row.header { flex: 0 1 auto; /* The above is shorthand for: flex-grow: 0, flex-shrink: 1, flex-basis: auto */ } .box .row.content { flex: 1 1 auto; } /* */ .box { margin: 0.5em; text-align: center; /* Center image in image container */ display: flex; justify-content: center; align-items: center; } #main-image, #image-container, #map { border-radius: 0.4em; } #main-image { position: relative; max-height: 55vh; max-width: 100%; height: auto; /* Prevent image stretching */ /* Zoom script */ cursor: zoom-in; } #image-container { overflow: clip; width: 100%; border: none; min-height: 40vh; /* Allow space for zooming ultrawide photos on vertical phone layout */ /* zoom script */ display: flex; align-items: center; justify-content: center; } #title { margin-top: 0; margin-bottom: 0.25em; } #title > a { text-decoration: none; /* no underline */ color: white; } #map { width: 100%; margin-top: 0.5em; margin-bottom: 1.25em; } /* Image zoom animation */ @keyframes image-zoom-animation { 0% { scale: 800%; } 100% { scale: 100%; } } .image-zoom-animation { /*animation: image-zoom-animation 10s ease-out;*/ } /* Background image */ #background-image { background-image: url("/static/pics/mine/Lithaunsplads - Saxogade.webp"); position: absolute; background-position: center; filter: blur(2vh); /* vh because it's zoom agnostic */ background-size: cover; /* Make it slightly bigger, so there's no white at the edges */ height: 110%; width: 110%; left: -5%; top: -5%; z-index: -10; } /* Overlay */ #overlay{ text-align: center; position: absolute; bottom: 1em; color: white; z-index: 500; pointer-events: none; /* center */ left: 0; right: 0; margin-inline: auto; width: fit-content; /* Display next to each other */ display: flex; gap: 1em; } #overlay-distance > * { margin: 0; } #overlay-distance { background: #0008; pointer-events: none; user-select: none; border-radius: 0.5em; padding: 0.5em; height: 100%; } .bottom-button { padding: 0.5em; background: #1589c1; border: none; font-size: 1.3em; align-items: center; /* Center items */ /* border-color: #d0d0d0; */ color: white; border-radius: 0.5em; pointer-events: all; } .subtle-light { color: #ddd; font-size: 0.6em; }