@font-face {
    font-family: "Pokemon RS";
    src: url("fonts/pokemon-rs.otf.woff2") format("woff2");
}

@font-face {
    font-family: "Pokemon FRLG";
    src: url("fonts/pokemon-frlg.otf.woff2") format("woff2");
}

@font-face {
    font-family: "Pokemon Emerald";
    src: url("fonts/pokemon-emerald.otf.woff2") format("woff2");
}

body {
    display: flex;
    flex-flow: column;
    margin: 1em 1em;
    gap: 1em;
}

main {
    display: flex;
    flex-flow: column;
    gap: 1em;
}

#parameters-area {
    display: grid;
    grid-template-columns: max-content auto;
    row-gap: 0.25em;
    column-gap: 1em;
    max-width: 20em;
}

#parameters-area label::after {
    content: ":";
}

#editor {
    display: flex;
    flex-flow: row wrap;
    gap: 1em;
}

#box-name-inputs-container {
    flex-grow: 1;
}

#box-name-inputs {
    display: grid;
    grid-template-columns: max-content auto;
    row-gap: 0.25em;
    column-gap: 1em;
}

#box-name-inputs label::after {
    content: ":";
}

#box-name-inputs > input {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Consolas,
        'Liberation Mono',
        Menlo,
        monospace,
        monospace; /* 1 */
    font-size: 1em; /* 2 */
}

.tabs-block {
    flex-grow: 1;
    padding: 0.5em;
    display: flex;
    flex-flow: column nowrap;
    overflow: hidden;
    .tabs {
        margin: -0.5em -0.5em 0.5em;
        padding-left: 0;
        list-style-type: none;
        display: flex;
        flex-flow: row nowrap;
        border-bottom: 1px solid #e0e0e0;
        > li > button {
            background-color: inherit;
            border: none;
            padding: 0.5em;
            color: grey;
            font-weight: 600;
            &:hover, &.active {
                color: black;
            }
            &.active {
                border-bottom: 2px solid black;
            }
        }
    }
}

.tab-content-container {
    display: flex;
    flex: 1 1 auto;
}

.tab-content {
    display: flex;
    width: stretch;
    width: -webkit-fill-available;
    width: -moz-available;
    flex: 1 1 auto;
    flex-flow: column nowrap;
    gap: 0.25em;
}

.tab-content textarea {
    width: stretch;
    width: -webkit-fill-available;
    width: -moz-available;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Consolas,
        'Liberation Mono',
        Menlo,
        monospace,
        monospace; /* 1 */
    font-size: 1em; /* 2 */
    flex: 1 1 auto;
    min-height: calc(9lh + 8px);
}

#box-name-byte-view,
#paste-view {
    height: calc(14lh + 8px);
}

#uint-view-params-panel {
    flex: 0 0 auto;
}

#paste-view-params-panel {
    flex: 0 0 auto;
}

#uint-view-params-panel fieldset,
#paste-view-params-panel {
    display: grid;
    grid-template-columns: 1em max-content;
    row-gap: 0.25em;
    column-gap: 1em;
}

#copy-permalink-button {
    grid-column: 1 / span 2;
}


