@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; } html, body { max-width: 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: 0px; right: -20vh; width: 20vh; height: 100vw; overflow-y: auto; overflow-x: hidden; } .thumb-box { height: 19.5vh; margin-top: 10vh; /* keep the ~ratio of a photo (spacing should be the same all the time) */ width: calc(19.5vh*1.49); transform-origin: bottom left; transform: rotate(90deg) translateX(-30vh); } .thumb-box:last-child { margin-bottom: 0; } .thumb { width: 100%; height: 100%; filter: blur(2px) grayscale(1); } .thumb:hover { cursor: pointer; filter: grayscale(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 table { /* box-sizing: border-box; */ display: inline-block; position: absolute; height: auto; padding: 5vh; /* Element does not 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 { /* I made this a bit smaller to make alignment easier */ line-height: 2.0vw; 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; } #info-box img { height: 100%; max-width: 100%; } /******************* MAGNIFY *******************/ .magnify { display: inline-block; max-width: 60%; background-position: center; background-repeat: no-repeat; background-size: contain; background-clip: content-box; }