:root {
    --toolbar-button-height: 1.4em;
}

#desktop-main {
    display: grid;
    grid-template-rows: auto 1fr;
/*    height: 100vh;
    height: 100dvh;*/
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
}

#split-host {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    margin: 0;
    padding: 0;
}

input {
    background-color: var(--primary-bg-color);
    color: var(--secondary-text-color);
    font-size: 20px;
    font-weight: var(--label-weight);
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

#output { 
    color: var(--primary-text-color);
    background-color: var(--primary-bg-color);
    font-family: monospace;
    width: 100%;
    padding: 4px;
    margin: 0px;
    font-size: 20px;
    resize: vertical;
    height: 250px;
    flex: 1;
    resize: none;
    width: 100%;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-y: auto;
}

button {
    height: var(--toolbar-button-height);
    box-sizing: border-box;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    /*align-items: flex-start*/
    align-items: stretch;
}

.left-buttons,
.right-buttons {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    height: 100%;
    align-items: stretch;
}

.left-buttons {
    flex: 1;
}

.right-buttons {
    flex: 1;
    align-items: stretch;
    /*height: 100%;*/
    justify-content: flex-end;
}

.dropdown {
    font-size: 20px;
    font-weight: var(--label-weight);
    margin: 4px;
    color: var(--secondary-text-color);
    background-color: var(--primary-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0px 8px;
    box-sizing: border-box;
    height: var(--toolbar-button-height);
    /*height: auto;*/
}

.dropdown:hover {
    background-color: var(--tertiary-bg-color);
}

#workspace {
    border: 0px solid green;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    width: 100%;
    flex: 1 1 0%;
    min-height: 0;
}

#editor-wrapper {
    border: 0px solid yellow;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

#output-div {
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 0%;
    overflow: hidden;
    border-radius: 10px;
}

#split-divider {
    color: var(--secondary-text-color);
    cursor: row-resize;
    display: inline-flex;
    align-items: center;
    font-size: 20px;
    line-height: 1;
    /*letter-spacing: 4px;*/
    text-align: center;
    margin-right: 4px;
    background-color: var(--primary-bg-color);
    border-radius: 5px;
    padding: 0px 8px;
    margin: 4px;
    font-family: sans-serif;
    font-weight: var(--label-weight);
    border: 1px solid var(--border-color);
}
