@font-face { font-family: hkg; src: url("/inc/fonts/HKGrotesk-Regular.woff"); } :root { --c1: #030303; --c2: #EEF5F7; --c3: #1E473A; --c4: #8FA441; --c5: #E98017; --c6: #E1BC23; } * { margin: 0; padding: 0; text-decoration: none; color: var(--c1); font-family: hkg, sans-serif; font-size: 30px; } /* counteract the scale of the hexas (x-scrollbar) */ html, body { max-width: 100%; min-height: 100%; height: 100%; max-height: 100%; overflow: hidden; position: relative; } /******************* HEADER *******************/ header { position: relative; width: 100%; height: 10vh; margin: 2.5vh 0; text-align: center; } nav a { display: inline-block; /* font-size: 1.5em; */ margin-right: 40px; vertical-align: middle; } nav a:last-child { margin-right: 0; } a:hover { text-decoration: underline; color: var(--c5); } #logo img { height: 90%; filter: grayscale(1); } #logo img:hover { filter: grayscale(0); } /******************* EXHIBITION *******************/ /* Remove scrollbar in all browsers */ ::-webkit-scrollbar{width:2px;height:2px;} ::-webkit-scrollbar-button{width:2px;height:2px;} #exhibition { scrollbar-width: none; transform-origin: bottom left; transform: rotate(-90deg); background-color: var(--c1); position: absolute; /* bottom: ~15vh; Required in FF (JS)*/ bottom: 0px; right: -20vh; width: 20vh; height: 100vw; overflow-y: auto; overflow-x: hidden; } #exhibition img { height: 19.5vh; margin-top: 10vh; max-width: 15.5vw; filter: blur(2px) grayscale(1); transform-origin: bottom left; transform: rotate(90deg) translateX(-30vh); } #exhibition img:hover { filter: grayscale(0); } #exhibition img:last-child { margin-bottom: 0; } /******************* INFO *******************/ #info-box { box-sizing: border-box; position: relative; height: 65vh; width: 100%; padding-bottom: 2.5vh; } #bg-box { width: 100%; height: 100%; background-color: var(--c1); } #info-box img { height: 100%; max-width: 60%; } #info-box table { /* box-sizing: border-box; */ display: inline-block; position: absolute; height: auto; padding: 5vh; /* Element won't respect the padding of parent >:| So I will make it respect it...*/ top: 0; bottom: 0; margin-bottom: 2.5vh; } #info-box table * { font-size: 1.35vw; color: white; } #info-box th { text-align: left; } .hidden { visibility: hidden; } #btn-close { line-height: 2.0vw; /* I made this a bit smaller to make alignment easier */ font-size: 4.5vw; position: absolute; right: 2vw; top: 1.6vw; color: var(--c2); z-index: 1; } #btn-close:hover { opacity: 0.7; cursor: pointer; }