main {
    max-width: 80vw;
    width: 100%;
    margin: auto;
}

h2 {
    text-align: center;
}

.split {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 1em;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    gap: 0.7em;
    overflow-x: auto;
    max-width: 1800px;
    margin: auto;
}

#preview {
    white-space: pre;
}

#tty-preview {
    padding: 0.5em;
    height: 89%; /* I hate CSS I don't understand how this works??? */
    width: -moz-fit-content;
    width: -webkit-fit-content;
    width: fit-content;
}

#tty-preview *,
#tty-preview {
    font-family: var(--fonts-mono);
    white-space: pre;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#menu-container {
    max-width: 1500px;
    width: 100%;
    margin: auto;
    overflow-x: auto;
}

#menu {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 16px 1fr 16px 1fr 16px 1fr 16px 1fr 16px 1fr 16px 1fr
        16px 1fr;
    grid-template-columns: repeat(8, 1fr);
    -ms-grid-rows: auto 12px auto;
    grid-template-rows: repeat(2, auto);
    gap: 12px 16px;
}

#menu > *:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
}

#menu > *:nth-child(2) {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
}

#menu > *:nth-child(3) {
    -ms-grid-row: 1;
    -ms-grid-column: 5;
}

#menu > *:nth-child(4) {
    -ms-grid-row: 1;
    -ms-grid-column: 7;
}

#menu > *:nth-child(5) {
    -ms-grid-row: 1;
    -ms-grid-column: 9;
}

#menu > *:nth-child(6) {
    -ms-grid-row: 1;
    -ms-grid-column: 11;
}

#menu > *:nth-child(7) {
    -ms-grid-row: 1;
    -ms-grid-column: 13;
}

#menu > *:nth-child(8) {
    -ms-grid-row: 1;
    -ms-grid-column: 15;
}

#menu > *:nth-child(9) {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
}

#menu > *:nth-child(10) {
    -ms-grid-row: 3;
    -ms-grid-column: 3;
}

#menu > *:nth-child(11) {
    -ms-grid-row: 3;
    -ms-grid-column: 5;
}

#menu > *:nth-child(12) {
    -ms-grid-row: 3;
    -ms-grid-column: 7;
}

#menu > *:nth-child(13) {
    -ms-grid-row: 3;
    -ms-grid-column: 9;
}

#menu > *:nth-child(14) {
    -ms-grid-row: 3;
    -ms-grid-column: 11;
}

#menu > *:nth-child(15) {
    -ms-grid-row: 3;
    -ms-grid-column: 13;
}

#menu > *:nth-child(16) {
    -ms-grid-row: 3;
    -ms-grid-column: 15;
}

.color-input {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    background-color: var(--clr-bg-nav);
    width: 9em;
    height: 4em;
}

.color-input > label {
    font-weight: bold;
}

.color-input > input {
    cursor: pointer;
    border: none;
    width: 80%;
    padding: 0;
    margin: 0;
}
