:root { font-family: monospace; --text: #4c4f69; --surface0: #ccd0da; --surface1: #bcc0cc; --base: #eff1f5; --background-color: #f0f0f0; } @media (prefers-color-scheme: dark) { :root { --text: #cdd6f4; --surface1: #45475a; --base: #1e1e2e; } } html, body { width: 100%; } body { width: calc(100% - 4rem - 1px); height: calc(100vh - 4rem - 1px); padding: 2rem; margin: 0; background-color: var(--base); } h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; } main { display: flex; flex-direction: column; align-items: start; margin: 2rem; } @media (min-width: 768px) { main { margin: 4rem; } } #bg { position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: -10; } .container { position: relative; height: 100%; width: 100%; display: flex; align-items: end; justify-content: start; border: 1px solid var(--text); border-radius: 2px; } .header { font-weight: 800; margin-bottom: 1rem; } .cat { position: absolute; bottom: 0px; right: 2rem; image-rendering: pixelated; height: 30px; } @media (min-width: 1024px) { .cat { right: 4rem; } } .eeping-cat { position: absolute; image-rendering: pixelated; top: -16px; right: 50%; height: 15px; } @media (min-width: 768px) { main { width: 80%; } } @media (min-width: 1024px) { main { width: 50%; } } .button-container { margin-top: 2rem; display: flex; } .button { border: 2px solid var(--text); background: var(--base); position: relative; font-family: monospace; font-weight: 800; padding: 0.5rem 1rem; color: var(--text); } .button:hover { background-color: #f0f0f0; background-size: 10px 10px; background-image: repeating-linear-gradient( 45deg, #c9c9c9 0, #c9c9c9 1px, #f0f0f0 0, #f0f0f0 50% ); } @media (prefers-color-scheme: dark) { .button:hover { background-color: #1e1e2e; opacity: 1; background-size: 10px 10px; background-image: repeating-linear-gradient( 45deg, #585b70 0, #585b70 1px, #1e1e2e 0, #1e1e2e 50% ); } } .button:active { background: var(--text) !important; color: var(--base); transform: translate(4px, 4px); } .button:active::after { content: none; } .button:after { display: block; position: absolute; margin: -2px; width: inherit; top: 1px; left: 1px; right: -1px; bottom: -1px; padding: 0.5rem 1rem; content: ""; background-color: var(--text); z-index: -1; transform: translate(2px, 2px); } @media (prefers-color-scheme: dark) { .button:after { opacity: 0.5; } }