/*  Copyright (c) 2019 Shellyl_N and Authors
 *  license: ISC
 *  https://github.com/shellyln
 */

body {
    /* font-family: 'Ubuntu Mono', monospace; */
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

div.AppMainMenuWrap {
    padding: 4px;
    display: flex;
    align-items: center;
    font-size: 14px;
    height: 50px;
}

.AppMainMenu .AppMainMenuIcon {
    font-size: 22.4px;
}

div.switch {
    margin: 0 13px 0 13px;
}

div.switch label {
    font-size: 11.6px;
}

.AppMainContentWrap {
    display: flex;
    flex-wrap: nowrap;
}

.AceEditorOuterWrap {
    width: calc(50% - 10px);
    min-width: 400px;
    margin: 8px 0px 4px 4px;
}
.AceEditorOuterWrap.stretched {
    margin: 8px 4px 4px 4px;
    width: 100%;
}
.AceEditorOuterWrap.collapsed {
    display: none;
}
.AceEditorDiv {
    width: 100%;
    height: calc(100vh - 70px);
    min-height: 300px;
    font-size: 12pt;
}

.OutputIframe {
    background-color: white;
    flex-grow: 2;
    height: calc(100vh - 70px);
    min-height: 300px;
    margin: 8px 4px 4px 0px;
    overflow: auto;
    border: 0;
}
.OutputIframe.stretched {
    width: 100%;
}
.OutputIframe.collapsed {
    display: none;
}

.AppIndicatorBar {
    color: #9e9e9e;
    position: absolute;
    overflow: hidden;
    right: 20px;
    bottom: 0.1px;
    margin: 0;
    padding: 0;
    font-size: 6.8pt;
}

.Splitter {
    width: 11px;
    height: calc(100vh - 70px);
    cursor: col-resize;
    margin: 8px 0px 4px 0px;
    user-select: none;
}
.Splitter.collapsed {
    display: none;
}

.AceEditorPlaceholder {
    background-color: #272822;
    width: calc(50% - 10px);
    min-width: 400px;
    margin: 8px 0px 4px 4px;
    user-select: none;
}
.AceEditorPlaceholder.collapsed {
    display: none;
}

.OutputIframePlaceholder {
    background-color: #272822;
    flex-grow: 2;
    height: calc(100vh - 70px);
    min-height: 300px;
    margin: 8px 4px 4px 0px;
    user-select: none;
}
.OutputIframePlaceholder.collapsed {
    display: none;
}

@media only screen and (max-width: 1200px) {
    .AppMainContentWrap {
        flex-wrap: wrap;
    }
    .AceEditorOuterWrap {
        width: 100% !important;
        margin: 8px 4px 4px 4px;
    }
    .AceEditorDiv {
        height: calc(100vh - 70px);
    }
    .OutputIframe {
        width: 100% !important;
        margin: 8px 4px 4px 4px;
        height: calc(100vh - 10px);
    }
    .Splitter {
        display: none;
    }
}

@media print {
    .AceEditorOuterWrap {
        width: 100%;
    }
    .OutputIframe {
        width: 100%;
    }
}

dialog {
    padding: 5px;
    border: 0;
    border-radius: 0.2rem;
    box-shadow: 0 0 1em black;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

div.command-box-input-outer {
    margin-bottom: 0;
    margin-right: -3rem;
}
div.command-box-input-outer:focus-within {
    margin-left: auto;
    margin-right: auto;
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    width: 40rem;
    z-index: 100;
    background: darkslategray;
    padding: 0.7rem 2rem;
    border-radius: 0 0 10px 10px;
}

div.input-field.command-box-input-inner {
    margin: -10px 0 0 0;
    padding: 0 10.5px 0 10.5px;
}

div.input-field.command-box-input-inner input.CommandBoxInput.command-box-input {
    margin: 0;
    color: darkturquoise;
    font-weight: normal;
    font-size: 14px;
    height: 42px;
}
div.input-field.command-box-input-inner input.CommandBoxInput.command-box-input:focus {
    width: 35rem;
    margin-bottom: 8px;
}
div.input-field.command-box-input-inner input.CommandBoxInput.command-box-input::placeholder {
    opacity: 0.5;
}

@media only screen and (max-width: 729px) {
    .hide-on-smallest {
        display: none !important;
    }
    div.command-box-input-outer:focus-within {
        width: calc(100vw - 0rem);
    }
    div.input-field.command-box-input-inner input.CommandBoxInput.command-box-input:focus {
        width: calc(100vw - 5.5rem);
    }
}

::-webkit-scrollbar {
    width: 13px;
    height: 13px;
}
::-webkit-scrollbar-track {
    border-style: solid;
    border-width: 1px;
    border-color: rgb(88, 88, 88);
    background-color: rgb(56, 56, 56);
}
::-webkit-scrollbar-thumb {
    border-style: solid;
    border-width: 1px;
    border-color: rgb(88, 88, 88);
    background-color: rgb(102, 102, 102);
}
