html {
    font-size: 14px;
    font-family: monospace;
}
@media only screen and (orientation: portrait) {
    html { font-size: 30px; }
}

main { display: flex; }
main > div:nth-child(1) { flex: 1; }
main > div:nth-child(2) { flex: 2; }
main > div:nth-child(3) { flex: 1; }
@media only screen and (orientation: portrait) {
    main > div:nth-child(1) { flex: 0; }
    main > div:nth-child(2) { flex: 1; }
    main > div:nth-child(3) { flex: 0; }
}

img {
    display: block;
}

table {
    border-collapse: collapse;
}
th > button {
    width: 100%;
    height: 100%;
}
thead, tr, td {
    height: 100%;
}

button, input, textarea, select {
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
}
textarea {
    resize: vertical;
}

.hidden {
    display: none;
}
.width-100 {
    width: 100%;
}
.height-100 {
    height: 100%;
}

.flex {
    display: flex;
}
.split {
    display: flex;
    justify-content: space-between;
}
.flex-valign-center {
    display: flex;
    align-items: center;
}
.flex-stretch-center {
    display: flex;
    align-items: stretch;
}
.flex-stretch-center > * {
    align-content: center;
}
.flex-gaps {
    display: flex;
}

.halign-center { text-align: center; }
.halign-right  { text-align: right; }
.valign-center { vertical-align: center; }
.valign-top    { vertical-align: top; }

.fakebutton:hover { background-color: ButtonFace; }

.numbered-table {
    counter-reset: rowNumber;
}
.numbered-table tr::before {
    display: table-cell;
    counter-increment: rowNumber;
    content: counter(rowNumber) ".";
    padding-right: 0.3em;
    text-align: right;
}

#hx-errors {
    color: red;
}
