@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap');


body {
    color: white;
    background-color: #111111;
}
body, button, input {
    font-family: 'Roboto', sans-serif;
}
@font-face {
    font-family: codicon;
    font-display: block;
    src: url("/node_modules/monaco-editor/min/vs/base/browser/ui/codicons/codicon/codicon.ttf") format("truetype")
}

html, body {
    padding: 0;
    margin: 0;
    overflow: hidden;
}
html, body, .content {
    height: 100%;
    width: 100%;
}






.editor {
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}
:root {
    --input-scroll-y: 0;
    --input-scroll-x: 0;
}

#stdout {
    font-family: 'JetBrains Mono', monospace;
}

.horizotalPanel {
    display: flex;
    flex-direction: column;
}

.editor {
    flex: 1;
}
.verticalPanel {
    display: flex;
    flex-direction: column;
}
.verticalPanel .top {
    flex-basis: 0;
    flex-grow: 10;
    flex-shrink: 1;
    min-height: 0;
}


.options {
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    width: 100%;
    overflow-x: auto;
}
.options > * {
    flex-shrink: 0;
}

#status {
    border-radius: 50%;
    background-color: transparent;
    width: 15px;
    height: 15px;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    --secondColor: transparent;
    animation-name: spin;
    animation-duration: 0.7s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
    border: 2px solid #535353;
    transition: background-color 0.1s linear;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
#status[data-status="connecting"], #status[data-status="compiling"] {
    --secondColor: #3d3d3d;
}
#status[data-status="idle"] {
    background-color: #3d3d3d;
}
#status[data-status="connecting"], #status[data-status="connected"] {
    background-color: #FFDC00;
}
#status[data-status="compiling"], #status[data-status="downloading"] {
    background-color: #0074D9;
}
#status[data-status="running"] {
    background-color: #2ECC40;
}
#status[data-status="exited"] {
    background-color: #85144b;
}
#status span {
    width: 50%;
    height: 50%;
    display: block;
    margin: 0;
}
#status span:nth-child(2), #status span:nth-child(3) {
    background-color: var(--secondColor);
}

.output {
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    flex: 1;
}
#terminal-wrap {
    flex: 1;
    overflow: hidden;
    border: 2px solid #535353;
    background-color: #3d3d3d;
    padding: 10px;
    border-radius: 8px;
    box-sizing: border-box;
}

#stdout {
    background-color: #3d3d3d;
    width: 100%;
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #535353;
    box-sizing: border-box;
    overflow-y: auto;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
    outline: none;
    color: white;
    resize: none;
}
#stdout:focus {
    border-color: #7c7c7c;
}

.right {
    display: none;
}

#ast {
    padding: 10px;
    box-sizing: border-box;
    overflow: auto;
    height: 100%;
}
#ast * {
    width: max-content;
}
.props {
}
.header {
    color: #7FDBFF;
}

.key {
    color: #bbb01f;
}
.value {
    color: rgb(146, 146, 146);
}
.level .children {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgb(48, 48, 48);
}
.nav {
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.nav, #editor {
    border-bottom: 2px solid #535353;
}
.nav .space {
    flex: 1;
}
.nav .icon {
    margin-right: 10px;
    filter: brightness(1.4);
}
.nav .title {
    font-weight: bold;
    font-size: 18px;
}
.nav .links {
    margin-left: 10px;
}
.nav .links a {
    color: #b3b3b3;
    text-decoration: none;
    display: inline-block;
    margin-right: 5px;
}
.nav .links a:hover {
    text-decoration: underline;
}
.nav .links a:active {
    opacity: 0.7;
}

.button.disabled {
    background-color: #585858;
    border-color: #585858;
    color: rgba(212, 212, 212, 0.685);
}
.button, select {
    color: rgb(212, 212, 212);
    padding: 5px 8px;
    background-color: #3d3d3d;
    border-radius: 8px;
    border: 2px solid #535353;
    outline: none;
    font-family: Arial, Helvetica, sans-serif;
    transition: all 0.2s;
}
.button:hover, select:hover {
    background-color: #5f5f5f;
    border-color: #5f5f5f;
    transition: all 0.2s;
}
.button:active, select:active {
    border-color: #b3b3b3;
    transition: all 0.2s;
}
#examples {
    width: 100px;
}

.screen-too-small {
    display: none;
}

#monaco {
    width: 100%;
    height: 100%;
}
.hide-editor #editor {
    display: none;
}
#editor-overlay {
    display: none;
}
#editor-overlay::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}
#readonly-banner {
    text-align: center;
    font-size: 13px;
    font-style: italic;
    color: #c28b26;
    display: none;
}
#mobile-scroll {

}



@media
screen and (max-width: 600px),
screen and (max-height: 600px) 
{
    .output {
        min-height: 0px;
        padding: 0;
    }
    .options {
        padding: 8px;
        box-sizing: border-box;
    }
    .hide-editor .options {
        margin-bottom: 0;
    }
    .show-editor .output {
        flex: unset;
    }
    .hide-editor #terminal-wrap {
        margin: 8px;
        box-sizing: border-box;
        margin-top: 0;
    }
    .show-editor .output .options {
        margin: 0;
    }
    .show-editor #terminal-wrap {
        display: none;
    }
}

/* smartphones, touchscreens */
@media (pointer: coarse) {
    #editor-overlay {
        display: block;
        z-index: 1;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: auto;
    }
    #readonly-banner {
        display: block;
    }
    
}

@media (pointer: fine){
    ::-webkit-scrollbar {
        width: 14px;
        height: 14px;
    }
      
    /* Track */
    ::-webkit-scrollbar-track {
        background: transparent;
    }
    
    /* Handle */
    ::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 8px;
        background-clip: padding-box;
        border: 3px solid transparent;
    }
    
    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
        background-clip: padding-box;
    }
    ::-webkit-scrollbar-corner {
        background: transparent;
    }
}