@import url("/fonts/import.css");

:root {
    --max-width: 640px;
    --font-size: 16px;
    --line-height: 1.4em;
    --border-radius: .5rem;
    --spacing: 2rem;

    --noto-emoji: "Noto Emoji Color", "Noto Emoji", "Noto Symbols", "Noto Symbols Extended";
}

/* --- GENERAL --- */

body {
    margin: 0;
}

#div {
    max-width: var(--max-width);
    width: 100%;
    margin: var(--spacing) 0;
    padding: 0 var(--spacing);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.2);
}

#div > header {
    border-bottom: 1px solid;
}

#div > *:first-child {
    padding-top: var(--spacing);
}

#div > *:last-child {
    padding-bottom: var(--spacing);
}

a, a:visited {
    text-decoration: none;
}

a:has(> img) {
    display: block;
    line-height: 0;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

main {
    line-height: var(--line-height);
}

div:has(> table) {
    width: 100%;
    overflow-x: scroll;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

div table {
    width: 100%;
    font-size: .8em;
    white-space: nowrap;
    background-color: white;
}

div table tr:nth-child(odd) {
    background-color: whitesmoke;
}

main > p {
    text-indent: 2ch;
}

p:has(img) {
    text-align: center;
    text-indent: 0;
}

p img {
    max-height: calc(var(--max-width) * 0.8);
    max-width: 100%;
    height: auto;
    width: max-content;
}

img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

main hr {
    width: 3rem;
    border: 0;
    border-bottom: 0.5rem dotted rgba(0,0,0,0.2);
}

main pre:has(> code) {
    max-height: calc(var(--max-width) / 2);
    padding: 1rem;
    border-radius: 0.5rem;
    line-height: 1.2rem;
    font-size: .9rem;
    overflow: scroll;
}

@media only screen and (max-width: 640px) {
    #div {
        margin: 0;
        padding: 0 .5rem;
        box-shadow: none;
    }

    main pre:has(> code) {
        border-radius: 0;
    }
}

/* --- DIMENSIONS --- */

.width-100 { width: 100%; }

/* --- TEXT --- */

.size-200, h1 { font-size: 200%; }
.size-175, h2 { font-size: 175%; }
.size-150, h3 { font-size: 150%; }
.size-125, h4 { font-size: 125%; }
.size-100, h5 { font-size: var(--font-size); }
.size-90 { font-size: 90%; }
.size-80 { font-size: 80%; }

.bold { font-weight: bold; }
.light { font-weight: light; }
.italic { font-style: italic; }

p.center {
    text-indent: 0;
    text-align: center;
}

/* --- FLEX --- */

.flex { display: flex; }
.flex-1 { flex: 1; }

.flex.wrap { flex-wrap: wrap; }

.flex.shrink { flex-shrink: 0; }
.flex.grow { flex-grow: 1; }

.flex.gap-0\.5 { gap: 0.5rem; }
.flex.gap-1 { gap: 1rem; }

.flex.space-between { justify-content: space-between; }
.flex.space-around { justify-content: space-around; }
.flex.space-evenly { justify-content: space-evenly; }

/* --- FLEX ROW --- */

.flex.row { flex-direction: row; }
.flex.row.reverse { flex-direction: row-reverse; }

.flex.row.left { justify-content: start; }
.flex.row.right { justify-content: end; }
.flex.row.center { justify-content: center; }

.flex.row.top { align-items: start; }
.flex.row.bottom { align-items: end; }
.flex.row.middle { align-items: center; }

/* --- FLEX COLUMN --- */

.flex.column { flex-direction: column; }
.flex.column.reverse { flex-direction: column-reverse; }

.flex.column.left { align-items: start; }
.flex.column.right { align-items: end; }
.flex.column.center { align-items: center; }

.flex.column.top { justify-content: start; }
.flex.column.bottom { justify-content: end; }
.flex.column.middle { justify-content: center; }

/* --- NOTO FONTS --- */

.noto-sans { font-family: "Noto Sans", var(--noto-emoji), sans-serif; }
.noto-sans-display { font-family: "Noto Sans Display", var(--noto-emoji), sans-serif; }
.noto-serif { font-family: "Noto Serif", var(--noto-emoji), serif; }
.noto-serif-display { font-family: "Noto Serif Display", var(--noto-emoji), serif; }
.noto-mono, code, pre { font-family: "Noto Mono", var(--noto-emoji), monospace; }
.sharpie { font-family: "Sharpie", sans-serif; }
.sharpie-scribbles { font-family: "Sharpie Scribbles"; }