:root {
    color-scheme: light dark;
}

body {
    font-family: sans-serif;
    margin: 40px;
    max-width: 1200px;
}

#instructions {
    margin-bottom: 2em;
}

.toolbar {
    margin-bottom: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.toolbar input,
.toolbar select,
.toolbar button {
    min-width: 100px;
}

.panes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.panes > div {
    flex: 1;
    min-width: 0;
}

textarea {
    width: 100%;
    height: 300px;
    font-family: monospace;
    box-sizing: border-box;
}

button {
    display: block;
    width: 100%;
    max-width: 200px;
}

/* Medium screens and up: side-by-side layout */
@media (min-width: 768px) {

    .panes {
        flex-direction: row;
    }

    textarea {
        height: 500px;
    }

    button {
        width: auto;
    }
}
