* {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helvetica, sans-serif;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-size: 1rem;
}

html, * {
    margin: 0;
    box-sizing: border-box;
    line-height: 1.2;
    font-size: 1rem;
}

html, body, main {
    width: 100%;
    height: 100%;
}

main {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.content-block {
    width: 100%;
    padding-inline: 1rem;
    max-width: 30rem;
    min-width: 15rem;
}

.canvas-block {
    width: 100vw;
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    margin-block: 0.75rem;
    font-size: 2rem;
    font-weight: 500;
}

h1 small {
    margin-top: -.25rem;
    display: block;
    font-size: .75em;
    color: #444444;
}

button, select {
    margin: 0.5rem;
    padding: 0.5rem 0.75rem;
    display: inline-block;
    background: #E2E2E2;
    color: #212121;
    border: .0625rem solid black;
    border-radius: 0.125rem;
    transition: background 0.3s;
    cursor: pointer;
}

button:hover, select:hover {
    background: #DCDCDC;
}

#loader {
    display: flex;
    position: absolute;
    inset: 0;
    margin: auto;
    width: min-content;
    height: min-content;
    background: #E2E2E2;
    border: .0625rem solid black;
    border-radius: 0.125rem;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

#loader.htmx-request {
    opacity: 1;
}

#loader > img {
    margin: 1rem;
}

canvas#content {
    width: 100%;
    height: 65%;
}

#post-content {
    align-items: stretch;
}

.fade-out.htmx-swapping {
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.1s ease-in;
}

.fade-in.htmx-added {
    opacity: 0;
}
