:root {
    /* --ui-font: 'Wledig UI Sans', 'Rubisco Color Emoji', system-ui; */
    --ui-font: system-ui;
    --ui-font-symbols: 'IntelliWeb Symbols';
    --ui-btn: #212121;
    --ui-btn-hover: #3474f0;
    --ui-text: #ffffff;
    --header: #000000;
    --gutter: #000000;
    --preview: #ffffff;
}

html, body {
    font-family: var(--ui-font);
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* .andorra-editor {
    --andorra-monospace-font: 'IntelliWeb Mono', "SF Mono", Andorra, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace !important;
} */

.andorra-inputbox>.ibwrapper>.input {
    font-family: var(--ui-font) !important;
}

#logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    z-index: 1;
}

#editor-container {
    flex: 1;
    display: flex;
    height: 100%;
    flex-direction: row;
}

#editor {
    width: 50%;
    overflow: none;
}

.gutter {
    background-color: var(--gutter);
    cursor: w-resize;
    width: 8px;
    transition: 0.6s background-color;
}

.gutter:hover {
    background-color: var(--ui-btn-hover);
    cursor: w-resize;
    width: 8px;
}

#preview {
    flex: 1;
    overflow: auto;
    background-color: var(--preview);
}

.button-container {
    display: flex;
    justify-content: flex-end;
    padding: 8px;
    background-color: var(--header);
}

button {
    font-family: var(--ui-font-symbols);
    margin-right: 8px;
    padding: 2px 6px;
    font-size: 18px;
    cursor: pointer;
    background-color: var(--ui-btn);
    color: var(--ui-text);
    border: none;
    border-radius: 4px;
}

button:hover {
    color: var(--ui-text);
    background-color: var(--ui-btn-hover);
}

select {
    font-family: var(--ui-font-symbols);
    font-size: 18px;
    color: var(--ui-text);
    background-color: var(--ui-btn);
    border: none;
    margin-right: 8px;
    padding: 2px 6px;
    border-radius: 4px;
}

#logo {
    margin-left: 10px;
    padding-top: 8px;
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 30px;
    z-index: 1;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    #logo {
        position: relative;
        left: auto;
        top: auto;
        margin: 0 auto 16px auto;
        display: block;
        height: 30px;
        z-index: 0;
    }

    .button-container {
        justify-content: center;
        flex-wrap: wrap;
        padding-top: 0;
        padding-bottom: 12px;
    }

    body {
        background-color: var(--header);
        overflow: auto;
    }

    #editor-container {
        flex-direction: column;
    }

    #editor {
        width: 100% !important;
        height: 50%;
    }

    #preview {
        width: 100% !important;
        height: 50%;
        border: none;
    }
}
