html {
    color-scheme: dark;
    font-family: system-ui;
    interpolate-size: allow-keywords;

    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body {
    line-height: 1.6;
    margin: 0;
    color: #EEE;
    background-color: #444;
    padding: 1%;
    min-height: 95vh;
}


#main-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
}

canvas {
    display: table;
    margin-inline-start: auto;
    aspect-ratio: 1 / 1;
    background-color: #000;

    flex-shrink: 1;
    min-width: 10vw;
    flex-grow: 1;
    max-width: 95vh;
}

#controls {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2em;

    background-color: #222;
    padding: 2em 1.2em;
    margin-inline-end: auto;

    & > .row-group {
        display: flex;
        flex-direction: column;
        gap: 0.8em;

        & > label {
            font-size: 1.3rem;
            text-align: center;
        }

        & > div {
            display: flex;
            flex-direction: row;
            justify-content: center;
            gap: 1em;
        }
    }

    & #save-as-png {
        display: flex;
        flex-direction: row;
        gap: 1.2em;
        justify-content: center;
        margin-top: 1em;

        & > div {
            display: flex;
            flex-direction: column;
            gap: 0.2em;

            & > label {
                font-size: 1.2rem;
                text-align: center;
                margin-top: -4px;
            }

            & > input {
                font-size: 1rem;
                width: 120px;
                padding: 6px 10px;
                border-radius: 16px;
            }
        }

        & > button {
            font-size: 1rem;
            padding: 0.4em 1em;
            margin-block: 0.2em;
            border-radius: 8px;
            corner-shape: squircle;
            background-color: #00599F;
            cursor: pointer;

            &:hover {
                background-color: #05C;
            }
        }
    }

    & .slider-input {
        display: flex;
        flex-direction: column;

        & > label {
            text-align: center;
        }

        & > label:first-child {
            font-size: 1.2rem;
        }

        & > input {
            width: 150px;
            margin-inline: auto;
        }
    }
}
