html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.cols {
    display: flex;
    width: 100dvw;
    height: 100dvh;

    /* gap: 10px; */
    flex-direction: row;
}

.col {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 0;
    min-width: 0;
    height: calc(100% - 60px);
    max-height: 100dvh;
    padding: 30px;
    border-left: 1px solid black;
    gap: 20px;
}

.col>.textarea {
    flex-basis: 1;
    flex-grow: 1;
    flex-shrink: 1;
    width: 100%;
    max-height: 100%;
}

.textarea {
    display: flex;
    flex-direction: row;

    font-size: 11pt;
    line-height: 1.2em;
}

.textarea>.linenos {
    flex: 0;
    flex-shrink: 1;
    min-width: fit-content;
    padding-top: 6px;
    padding-right: 5px;
    font-family: monospace;
    max-height: calc(100dvh - 8em);
    overflow-y: hidden;
}

.textarea>textarea {
    flex: 1;

    height: 100%;
    max-height: calc(100dvh - 8em);
    resize: none;
    font-size: 11pt;
    line-height: 1.2em;
    padding: 2.5px;
    font-family: monospace;
    /* padding-right: 5px; */
}


@media (width < 800px) {
    .cols {
        flex-direction: column;
    }
    .col {
        border-left: none;
        width: calc(100% - 60px);
        min-height: 33dvh;
        height: 33dvh;
        max-height: 33dvh;
        border-bottom: 1px solid black;
    }

    .textarea {
        width: calc(100% - 50px);
    }
    .textarea > textarea, .textarea > .linenos {
        max-height: calc(33dvh - 8em);
    }
    html, body {
        overflow-y: scroll;
    }
}