/* fallback */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/materialicons/v142/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}

icon {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    letter-spacing: normal;
    text-align: center;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -moz-font-feature-settings: 'liga';
    -moz-osx-font-smoothing: grayscale;
}

input {
    width: auto;
}

select {
    width: auto;
}

textarea {
    width: auto;
    resize: vertical;
}

button {
    cursor: pointer;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    border-radius: 1rem;
    line-height: 1;
    position: relative;
    padding: 0px !important;
    min-width: 2rem;
    max-width: 2rem;
    min-height: 1rem;
    max-height: 1rem;
}

input[type="checkbox"]::after {
    background-color: black;
    content: '';
    display: block;
    border-radius: 1rem;
    position: absolute;
    left: 2px;
    top: 2px;
    width: calc(1rem - 4px);
    height: calc(1rem - 4px);
    opacity: 0.5;
    transition: 0.1s left, 0.1s opacity;
}

input[type="checkbox"]:checked {}

input[type="checkbox"]:checked::after {
    left: calc(1rem + 2px);
    opacity: 1;
}

column {
    display: flex;
    flex-direction: column;
}

editable {
    display: block;
    flex-grow: 1;
}

form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

grid {
    display: grid;
}

hr {
    border-top: 1px solid var(--hrColor);
    display: block;
    flex-grow: 1;
}

img {
    object-fit: contain;
    object-position: center;
    display: block;
    width: 100%;
    max-width: 100%;
}

label {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

layout {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

a {
    cursor: pointer;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

ul,
ol {
    padding-left: 1rem;
}

@keyframes spin {
    0% {
        transform: translateX(-50%) translateY(-50%) rotateZ(0deg);
    }

    100% {
        transform: translateX(-50%) translateY(-50%) rotateZ(360deg);
    }
}

loading {
    border-radius: 100%;
    border: 0.125rem solid var(--app-main);
    border-top-color: transparent;
    border-radius: 100%;
    display: block;
    aspect-ratio: 1;
    position: relative;
    user-select: none;

    &::before,
    &::after {
        content: "";
        display: block;
        border: 0.125rem solid var(--app-main);
        border-top-color: transparent;
        border-radius: 100%;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
        z-index: 100;
    }

    &::before {
        width: calc(100% - 0.5rem);
        height: calc(100% - 0.5rem);
        animation: spin 1s infinite ease-in-out reverse;
    }

    &::after {
        width: calc(100% - 1rem);
        height: calc(100% - 1rem);
        animation: spin 1s infinite ease-in-out;
    }
}

navigator {
    display: block;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: auto;
    pointer-events: none !important;
    z-index: 9999;

    &>* {
        pointer-events: all;
    }
}

output {
    text-align: center;
    flex-grow: 1;
}

page {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: auto;
    z-index: 1;
}

page>main {
    display: flex;
    flex-direction: column;
    width: 100%;
}

row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

table {
    table-layout: fixed;
    width: 100%;
}

text {
    display: block;
}

th {
    text-align: center;
    font-size: 0.6em;
}

view {
    display: block;
}

[disabled="true"] {
    user-select: none;
    pointer-events: none;
    opacity: 0.5;
}