@font-face {
font-family: 'fantasque';
src: url('/fonts/fantasque.woff');
}
:root {
--content-padding: 2rem;
--border-radius: 10px;
--font: 'fantasque';
--font-fallback: monospace;
}
/* */
* {
color: var(--foreground);
font-family: var(--font), var(--font-fallback);
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* */
/* */
html {
display: flex;
justify-content: center;
min-height: 100vh;
padding: var(--content-padding);
background-image: url('/img/background.jpg');
background-repeat: repeat;
}
body {
display: grid;
grid-template-rows: auto 1fr auto;
padding: var(--content-padding);
padding-left: auto;
border-radius: var(--border-radius);
min-height: calc(100vh - 2 * var(--content-padding));
width: 100%;
max-width: 1200px;
background-color: var(--background-body);
backdrop-filter: blur(16px);
}
main {
height: 100%;
overflow-y: scroll;
}
/* */
/* */
h1 {
font-size: 3rem;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 1.45rem;
}
hr {
margin: 1rem;
border: 0;
height: 1px;
background-image: linear-gradient(
to right,
rgba(0, 0, 0, 0.1),
var(--foreground),
rgba(0, 0, 0, 0.1)
);
}
a {
color: var(--regular6);
}
/* */
/* */
/*
*/
/* */
.maybe-visible {
transition: opacity 0.5s;
}
.visible {
opacity: 1;
}
.invisible {
opacity: 0;
}
/* */
/* */
button {
background: none;
display: block;
border: 3px solid var(--regular3);
border-radius: 4px;
width: 100%;
padding: 8px;
}
button:hover {
border: 3px solid var(--regular6);
transition: border-color 0.2s ease-in-out;
}
button:disabled,
button[disabled] {
}
/* */
/* */
.grid {
border: 3px solid var(--regular4);
padding: 1rem;
font-size: 1.5rem;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
line-height: 1;
white-space: pre;
border-radius: 4px;
overflow-x: auto;
font-feature-settings:
'tnum',
'kern' 0;
font-variant-numeric: tabular-nums;
}
.grid-row {
display: flex;
}
.grid-cell {
display: inline-block;
min-width: 1ch;
width: 1ch;
max-width: 1ch;
text-align: center;
overflow: hidden;
vertical-align: top;
transition: background-color 0.1s ease-in-out;
box-sizing: border-box;
white-space: nowrap;
}
.grid-cell:hover {
background-color: var(--background-body);
}
/* */