/* mix blend mode est dépendant du stacking context */ @font-face { font-family: 'Public'; font-style: normal; font-weight: 400; src: url('assets/fonts/PublicSans-Regular.ttf') format('TrueType'); } @font-face { font-family: 'Public'; font-style: normal; font-weight: 300; src: url('assets/fonts/PublicSans-Light.ttf') format('TrueType'); } * { margin: 0; padding: 0; } body { font-family: 'Public', sans-serif; font-weight: 400; } #content { position: fixed; width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; z-index: 1; svg { width: 30%; height: auto; path { cursor: pointer; } } svg#fill { fill: white; mix-blend-mode: overlay; opacity: 0.6; } svg#stroke { position: absolute; fill: none; stroke: black; stroke-width: 1px; } #buttons_container { position: absolute; bottom: 5vh; display: flex; justify-content: center; align-items: center; z-index: 1; .mode { display: flex; align-items: center; justify-content: center; background-color: white; margin: 0px 10px; padding: 7px 15px; padding-left: 10px; border-radius: 50px; cursor: pointer; border: solid 0.8px rgba(0, 0, 0, 0.5); transition: border 0.4s ease-in-out; font-weight: 300; font-size: 1rem; svg { width: 28px; height: auto; margin-right: 10px; .thick { transition: stroke-width 0.2s ease-in-out; stroke-width: 0.8; stroke: black; } .thin { transition: stroke-width 0.2s ease-in-out; stroke-width: 0.5; stroke: black; } } p { height: fit-content; margin-bottom: 3px; } } .mode.active { font-weight: 400; border: solid 1.2px rgba(0, 0, 0, 1); svg .thick { stroke-width: 1.2; stroke: black; } svg .thin { stroke-width: 0.6; stroke: black; } } } #BG_BG_BG { position: absolute; width: 100vw; height: 100vh; background-size: 100% 100%; background-repeat: no-repeat; z-index: -1; opacity: 1; transition: opacity 0.5s ease-in-out; } #BG_BG_BG_tmp { position: absolute; width: 100vw; height: 100vh; background-size: 100% 100%; background-repeat: no-repeat; z-index: -2; opacity: 0; transition: opacity 0.5s ease-in-out; } } #grain-bg { position: absolute !important; width: 100vw; height: 100vh; } #grain-bg > * { position: relative; }