body, html {
    margin: 0;
    font-family: system-ui, sans-serif;
    background-color: #EFEFEF;
    margin-bottom: 1em;
}

h1 {
    text-align: center;
}

@media (min-width: 1080px) {
    main {
        display: flex;
    }

    div#left-column > section {
        margin-left: auto;
        margin-right: 0.5em;
    }

    div#right-column > section {
        margin-left: 0.5em;
        margin-right: auto;
    }
}

div#right-column, div#left-column {
    width: 100%;
    margin: 1em auto;
}

section {
    margin-left: auto;
    margin-right: auto;
    max-width: 480px;
    min-width: 280px;
    background-color: white;
    padding: 1em;
    border-right: 1px solid #DFDFDF;
    border-bottom: 1px solid #DFDFDF;
}

section > h2 {
    margin-top: 0;
    margin-bottom: 6px;
}

section + section {
    margin-top: 1.5em;
}

.horizontal-divider {
    border-top: 1px solid gray;
    width: 100%;
    height: 0.5px;
    margin: 1em 0;
}

textarea.console {
    display: block;
    border: 1px solid #CCC;
    resize: vertical;
    margin: 1em 0;
    min-height: 100px;
    width: calc(100% - 0.5em);
    outline: none;
    font-size: 16px;
    font-family: monospace;
}

textarea, input, button {
    font-size: 16px;
}

input {
    padding: 0.5em;
    width: calc(100% - 1.5em);
    margin-top: 1em;
}

input.custom-data {
    width: calc(50% - 1.5em);
    margin-top: 0;
}

fieldset {
    margin-top: 0.5em;
}

label {
    -webkit-user-select: none;
    margin-right: 0.5em;
    display: inline-block;
}

.radio-row > span:first-child {
    display: inline-block;
    width: 40%;
}

.radio-row > span {
    display: inline-block;
    white-space: nowrap;
}

button {
    border-radius: 4px;
    color: white;
    font-size: 16px;
    padding: 0.5em 0;
    width: 100px;
    cursor: pointer;
}

button.action {
    border: 2px rgb(90, 200, 250) solid;
    background-color: rgb(90, 200, 250);
}

button.clear {
    border: 2px rgb(255, 59, 48) solid;
    background-color: rgb(255, 59, 48);
    margin-left: 4px;
}

input[type=checkbox], input[type=radio] {
    width: auto;
    margin: 0.8em 6px 6px 6px;
}

img.icon {
    width: 20px;
    object-fit: fill;
    vertical-align: text-bottom;
    border: 1px solid lightgray;
    box-sizing: border-box;
    border-radius: 4px;
}

div.item-shelf {
    width: calc(100% - 2em);
    min-height: 84px;
    background-color: #DDD;
    margin: 1em;
    border-radius: 6px;
}

span.item {
    margin: 0.5em;
    padding: 4px;
    -webkit-user-select: none;
    background-color: rgb(59, 131, 238);
    border-radius: 6px;
    box-sizing: border-box;
    cursor: pointer;
    color: white;
    display: inline-block;
}

span.item:hover {
    opacity: 0.75;
}

div.dropzone {
    margin-top: 1em;
    height: 84px;
    background-color: white;
    border: 0.5em #DDD dashed;
    color: #AAA;
}

td {
    padding: 5px;
    border: 1px solid black;
}

td {
    border: black;
    background-color: white;
    color: black;
}

td.table-header {
    border: none;
    color: white;
    background-color: black;
}

td:first-child {
    border: none;
    background-color: white;
}

table {
    margin-top: 0.5em;
}

.table-container {
    display: none;
    max-width: calc(max(50vw, 300px));
    max-height: 320px;
    overflow: scroll;
    position: absolute;
    background-color: white;
    z-index: 1000;
    padding-right: 1em;
    padding-bottom: 1em;
    border: 1px solid gray;
}

.table-container > .close-button {
    position: absolute;
    top: 4px;
    right: 1em;
    text-decoration: none;
}

div.table-container > h3 {
    margin: 0.5em;
    display: inline;
}
