@layer base, components, utilities; @layer base { *, *::before, *::after { font-family: inherit; margin: 0; box-sizing: border-box; } html { height: 100%; } html, body { min-height: 100%; @media (width < 70rem) { overflow-x: hidden; } } img { display: block; } h1, h2, h3, h4 { font-weight: 600; margin: 0; color: #444; line-height: 1.25; } a { color: royalblue; text-decoration: underline dotted; &:hover { text-decoration: underline; } } textarea, input[type='text'] { font-size: 16px; background: #fff; border: 1px solid #888; min-height: 1.75rem; padding: 0 0.25rem; border-radius: 0.25rem; box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1); } textarea { resize: vertical; padding: 0.5rem; font-family: 'JetBrains Mono', monospace; font-weight: 400; color: #333; } button, select { font-family: 'Open Sans', sans-serif; font-size: 16px; font-weight: 400; color: #333; box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1); background: #f0f0f0; border: 1px solid #888; padding: 0 0.5rem; border-radius: 0.25rem; min-height: 1.75rem; cursor: pointer; &:hover { background: #e0e0e0; } } p { line-height: 1.75; } pre, code { font-family: 'JetBrains Mono', monospace; font-weight: 400; color: #333; } strong { font-weight: 700; color: #444; } small { font-size: 0.5em; font-weight: 400; } } @layer components { body { font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 1.75; color: #333; padding: 6rem 1rem; > * { display: block; width: 900px; max-width: 100%; margin: 1rem auto; } } canvas { display: grid; width: 100%; aspect-ratio: 1 / 1; border: 1px solid #ddd; box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1); border-radius: 1rem; } .steps { display: grid; grid-auto-flow: row; justify-items: center; grid-template-columns: 1fr auto; border: 1px solid #ddd; box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1); border-radius: 1rem; padding: 2rem; margin: 2rem auto; width: 100%; max-width: fit-content; > .title { grid-column: span 2; text-align: center; padding-bottom: 1rem; @media (width < 70rem) { grid-column: span 1; } } > .step { grid-column: span 2; display: grid; grid-template-columns: subgrid; justify-items: center; /* align-items: center; */ gap: 0; @media (width < 70rem) { grid-column: span 1; grid-template-columns: 1fr; } > .algebraic-step { justify-self: stretch; /* border: 1px solid #ddd; */ /* box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1); */ border-radius: 1rem; padding: 0 1rem; > * { max-width: 100%; } > * + * { margin-top: 1rem; } } > .geometric-step { display: grid; canvas { width: 25rem; height: 25rem; @media (width < 70rem) { width: calc(100vw - 4rem); height: calc(100vw - 4rem); max-width: 25rem; max-height: 25rem; } } @media (width < 70rem) { padding: 0 1rem; } } > * { min-width: 25rem; } padding: 2rem 0; &:not(:nth-child(1), :nth-child(2)) { border-top: 1px solid #ddd; } @media (width < 70rem) { max-width: 100%; gap: 1rem; padding: 1rem 0; > * { min-width: 0; } } } @media (width < 70rem) { grid-template-columns: 1fr; padding: 1rem 0 0 0; max-width: 100%; } } } @layer utilities { .v-stack { display: grid; gap: 0.5rem; align-content: start; justify-items: start; } .h-stack { display: grid; gap: 0.5rem; grid-auto-flow: column; align-items: center; } .scrollable { display: grid; > .scroll-content { display: grid; } @media (width < 70rem) { position: relative; > .scroll-content { overflow-x: auto; padding: 1rem; } &::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 0.5rem; background: linear-gradient(to left, #0003, #0000); border-radius: 0.25rem; } } } .flex-row { display: flex; flex-direction: row; align-items: center; gap: 0.5rem; > .spacer { flex-grow: 1; } @media (width < 70rem) { flex-wrap: wrap; } } .text-center { text-align: center; } } .katex-display { margin: 0 !important; }