@font-face { font-family: hkg; src: url("/inc/fonts/HKGrotesk-Regular.woff"); } :root { --c1: #fefefe; --c2: #0e0e0e; --c3: #d2b2ec; --c4: #eeaeca; --c5: #e9bd94; --h-header: 8vh; /* + 2 * 2.5vh margin (12.5)*/ --h-info: 67.5vh; /* 100 - 32.5 */ --h-ex: 15vh; /* + 2 * 2.5vh bottom (20.0)*/ --h-ex-thumb: 14.5vh; } * { margin: 0; padding: 0; text-decoration: none; color: var(--c2); font-family: hkg, sans-serif; } html, body { max-width: 100%; height: 100%; max-height: 100%; overflow: hidden; position: relative; } body { background: radial-gradient(ellipse, var(--c3) 0%, var(--c4) 63%, var(--c5) 100%); } header, #bg-box, #exhibition, .flying-text { border-radius: 0.8vh; } /******************* HEADER *******************/ header { box-sizing: border-box; position: relative; height: var(--h-header); font-size: 1.5vmax; width: 60%; margin: 2.5vh auto; text-align: center; background-color: var(--c1); z-index: 1; } nav a { display: inline-block; vertical-align: middle; min-width: 16%; } a:hover { color: var(--c3); } #logo { position: relative; height: 100%; } #logo img { width: calc(var(--h-header) + 3vh); margin-top: -1.5vh; 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; /* because of the transform width and height are switched */ width: var(--h-ex); height: 95vw; left: 97.5vw; bottom: 2.5vh; overflow-y: auto; overflow-x: hidden; } .thumb-box { height: var(--h-ex-thumb); margin-top: calc(var(--h-ex-thumb) * 0.53); /* keep the ~ratio of a photo (spacing should be the same all the time) */ width: calc(var(--h-ex-thumb) * 1.49); transform-origin: bottom left; /* shift the thumbs 1*width to the left */ transform: rotate(90deg) translateX(calc(var(--h-ex-thumb) * -1.49)); } .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 { position: relative; height: var(--h-info); width: 95%; margin: auto; } #bg-box { width: 100%; height: 100%; background-color: var(--c1); overflow: hidden; } #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; } #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: 1.6vw; top: 1.6vw; color: var(--c2); z-index: 1; } #btn-close:hover { color: var(--c3); 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; } /******************* HEADER *******************/ #welcome { position: absolute; height: var(--h-info); width: 100%; top: 12.5vh; } #welcome img { position: relative; height: calc(var(--h-info) * 0.5); left: 50vw; margin-left: calc(var(--h-info) * 0.25 * -0.70); top: 17vh; } .flying-text { position: absolute; display: inline-block; color: black; font-size: 0.01vw; background-color: white; padding: 0.5vw; text-align: center; top: 50%; left: 50%; z-index: -1; }