@font-face {
    font-family: dosvga;
    src: url(qbjs.woff2);
}   
body { 
    background-color: rgb(0, 0, 39); 
    font-family: dosvga, Arial, Helvetica, sans-serif;
    /* letter-spacing: -1px; */
    color: #999;
    overflow: hidden;
}
a, a:link, a:visited {
    text-decoration: none;
    color: #ccc;
    margin-right: 5px;
}
a:hover { color: #fff;  }
a:before { content: "< "; }
a:after { content: " >"; }
#output-content a, #output-content a:link, #output-content a:visited { color: #999 }
#output-content a:before { content: ""; }
#output-content a:after { content: ""; }

#code-container {
    position: absolute;
    left: 5px;
    top: 33px;
}
#code, .code {
    margin-bottom: 5px;
    border: 1px solid #666;
}
#code-slide-left, #code-slide-right {
    font-family: dosvga;
    font-size: 16px;
    display: inline-block;
    cursor: pointer;
    padding: 0px 3px;
}
#code-slide-left:hover, #code-slide-right:hover {
    color: #fff;
}
#game-container {
    position: absolute;
    left: 620px;
    top: 33px;
}
#gx-container {
    border: 1px solid #666;
    text-align: center; 
    background-color: #000;
    overflow: auto;
}
#gx-canvas {
    border: 1px solid #222; 
    background-color: #000;
    font-family: dosvga;
}
#output-container {
    position: absolute;
    color: #ccc;
    display: none;
}
#output-content {
    border: 1px solid #666;
    overflow: hidden; /*auto;*/
    height: 250px;
}
#js-code {
    white-space: pre;
    /*padding: 5px;*/
    color: #999;
}
#show-js-container {
    color: #666;
    position: absolute;
    padding-top: 3px;
}
#warning-container {
    white-space: pre-wrap;
    font-family: dosvga;
    color: #999;
    padding: 5px;
}
#warning-container .selected {
    background-color: #333;
}

#edit-button {
    float: left;
}
#share-button {
    float: right;
}
#share-button, #toggle-console {
    margin-right: 0;
}
#slider {
    position: absolute;
    top: 33px;
    color: #666;
    cursor: col-resize;
    width: 8px;
}
#vslider {
    height: 8px;
    cursor: row-resize;
}
.slider-button {
    padding-top: 2px;
}
.slider-button:hover {
    color: #ccc;
    cursor: pointer;
}

.modal {
    display: none;
}
.modal.is-open {
    display: block;
}

#tabs, #method-tabs, .tabs {
    margin-bottom: -1px;
}
#code-tabs {
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden !important;
    display: none;
}
#code-tab-container {
    display: inline-block;
    white-space: nowrap;
    overflow-x: scroll;
    scrollbar-width: none;
    vertical-align: bottom;
    border: 1px solid transparent;
    margin-bottom: -1px;
}
.tab {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #666;
    border-bottom: 0px;
    margin-right: 2px;
    color: #999;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
#code-tabs .tab {
    padding-right: 5px;
}
#code-tabs #mainbas {
    padding-right: 10px;
}
.tab-close {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('img/delete.svg');
    background-repeat: no-repeat;
    margin-left: 5px;
    margin-right: 0;
    vertical-align: bottom;
}
.tab-close:hover {
    background-image: url('img/delete-hover.svg');
}
#code-tab-menu {
    white-space: nowrap;
    padding-left: 1px;
    padding-right: 1px !important;
    padding-bottom: 6px !important;
    text-align: center;
}
#code-tab-menu:hover {
    background-color: transparent;
    color: #999;
}
#method-tabs .tab {
    color: #333;
    border-color: #333;
}
.tab:hover {
    color: #fff;
    background-color: rgb(0, 49, 78);
}
#method-tabs .tab:hover {
    color: #000;
    background-color: #aaa;
}
#tabs .active, .tabs .active {
    border-bottom: 1px solid rgb(0, 0, 39);
    color: #ccc;
}
#method-tabs .active {
    border-bottom: 1px solid #ddd;
}
#tabs .active:hover, .tabs .active:hover {
    background-color: transparent;
    color: #ccc;
}
#method-tabs .active:hover {
    background-color: transparent;
}
#gx-load-screen {
    display: none;
    text-align: center;
    margin: auto;
    width: 600px;
    height: 360px;
    font-size: 24px;
    color: #ccc;
    border: 1px solid #000;
    text-decoration: none;
    background-position: center center;
    background-image: url('play.png');
    background-repeat: no-repeat;
    background-color: #444;
}
#gx-load-screen:hover {
    background-color: #555;
}
#gx-load-screen:before { content: ""; }
#gx-load-screen:after { content: ""; }

#gx-container a, #gx-container a:link, #gx-container a:visited {
    color: rgb(69, 118, 147);
}
#gx-container a:hover { 
    color: rgb(69, 118, 147);
    text-decoration: underline;
}
#gx-container a:before { content: ""; }
#gx-container a:after { content: ""; }

#gx-container, #gx-container table {
    font-family: arial, helvetica, sans-serif;
    font-size: 14px;
}

#options-dialog select {
    width: 100%;
}
dialog {
    background-color:#ddd;
    min-width: 250px;
}
dialog textarea, 
#prog-sel-dialog select {
    font-family: dosvga;
    font-size: 1em;
    background-color: #efefef;
    padding: 5px;
}
dialog a { color: #333 !important; }
dialog a:hover { color: #000 !important; }
dialog a.disabled, dialog a.disabled:hover { color: #999 !important; }
dialog pre { font-family: dosvga; }

.methods { 
    overflow-y: auto;     
    min-height: 100px;
    max-height: 600px;
    border: 1px solid #000;
}
.methods table { border-collapse: collapse; width: 100%; }
.methods thead tr { position: sticky; top: 0; background-color: #ddd; box-shadow: 0px 1px 1px #000; }
.methods th { font-weight: normal; text-align: left; padding-left: 5px; padding-right: 5px; padding-top: 5px; padding-bottom: 2px; }
.methods td { padding-left: 5px; padding-right: 10px; padding-top: 1px; padding-bottom: 1px; vertical-align: top; }
.methods tbody tr:hover { background-color: #333; color: #fff; cursor: pointer; }
.methods tbody tr:hover .method-type, .methods tbody tr:hover .method-arg-type { color: #ccc; }

.method-type, .method-arg-type {
    color: #666;
}

#logo {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    opacity: 0.75;
}
#logo:hover { opacity: 1.0; }

#warning-container, #js-code, #fs-contents {
    overflow-y: auto;
    position: absolute;
    top: 32px;
    left: 3px;
    bottom: 3px;
    right: 3px;
}
#js-code {
    overflow: hidden;
    top: 30px;
}

#fs-contents {
    display: grid;
    grid-template-columns: auto 1.5em 1.5em;
    grid-auto-rows: 25px; 
    top: 65px;
    left: 0px;
}

#fs-path {
    padding: 8px;
    border-bottom: 1px solid #333;
}
#fs-refresh, #fs-new-folder, #fs-upload, #fs-new-file {
    float: right;
    margin-top: -3px;
    cursor: pointer;
    height: 20px;
    width: 20px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
}
#fs-refresh {
    margin-right: 5px;
    background-image: url('img/refresh.svg');
}
#fs-refresh:hover {
    background-image: url('img/refresh-hover.svg');
}
#fs-new-folder {
    margin-right: 5px;
    background-image: url('img/new-folder.svg');
}
#fs-new-folder:hover {
    background-image: url('img/new-folder-hover.svg');
}
#fs-upload {
    margin-right: 5px;
    background-image: url('img/upload.svg');
}
#fs-upload:hover {
    background-image: url('img/upload-hover.svg');
}
#fs-new-file {
    background-size: 18px 18px;
    background-position: 0px 1px;
    margin-right: 5px;
    background-image: url('img/new-file.svg');
}
#fs-new-file:hover {
    background-image: url('img/new-file-hover.svg');
}

.fs-file, .fs-dir, .fs-delete, .fs-download {
    display: block;
    margin: 0px 5px;
    padding: 5px;
    padding-left: 25px;
    text-decoration: none;
    cursor: pointer;
}


.fs-file:hover, .fs-dir:hover {
    background-color: rgb(255, 255, 255, .1);
}
.fs-delete:hover {
    background-image: url('img/delete-hover.svg');
}

.fs-file {
    background-image: url('img/file.png');
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: 1px 1px;
}

.fs-dir {
    background-image: url('img/folder.png');
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: 1px 2px;
}

.fs-download {
    background-image: url('img/download.svg');
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding: 0;
    width: 100%;
    margin: 0;
}
.fs-download:hover {
    background-image: url('img/download-hover.svg');
}
.fs-delete {
    background-image: url('img/delete.svg');
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding: 0;
    width: 100%;
    margin: 0;
}

#toolbar {
    border: 1px solid #666;
    padding: 3px 5px 0px;
    position: absolute;
    left: 5px;
    top: 5px;
    right: 5px;
}
.toolbar-button {
    display: inline-block;
    background-size: 1.25em 1.25em;
    width: 1.25em;
    height: 1.25em;
    background-repeat: no-repeat;
    margin: 0 !important;
}
.toolbar-button:before { content: ""; }
.toolbar-button:after { content: ""; }

#toolbar-button-new { background-image: url('img/new-project.svg'); background-size: 1.1em, 1.1em; background-position: .06em .05em; }
#toolbar-button-open { background-image: url('img/open.svg'); }
#toolbar-button-save { background-image: url('img/save.svg');  background-size: 1.08em, 1.08em; background-position: .05em .05em; }
#toolbar-button-run { background-image: url('img/run.svg'); }
#toolbar-button-stop { background-image: url('img/stop.svg'); }
#toolbar-button-share { background-image: url('img/share.svg'); }
#toolbar-button-settings { background-image: url('img/settings.svg'); }
#toolbar-button-methods { background-image: url('img/methods.svg'); }
#toolbar-button-console-show { background-image: url('img/console-show.svg'); float: right; margin-right: 4px !important; }
#toolbar-button-console-hide { background-image: url('img/console-hide.svg'); float: right; margin-right: 4px !important; }
#toolbar-button-about { background-image: url('img/about.svg'); float: right; margin-left: 4px !important; }
#toolbar-button-slide-right { background-image: url('img/slide-right.svg'); float: right; margin-right: 4px !important; }
#toolbar-button-slide-left { background-image: url('img/slide-left.svg'); float: right; margin-right: 4px !important; }

#toolbar-button-new:hover { background-image: url('img/new-project-hover.svg'); }
#toolbar-button-open:hover { background-image: url('img/open-hover.svg'); }
#toolbar-button-save:hover { background-image: url('img/save-hover.svg'); }
#toolbar-button-run:hover { background-image: url('img/run-hover.svg'); }
#toolbar-button-stop:hover { background-image: url('img/stop-hover.svg'); }
#toolbar-button-console-show:hover { background-image: url('img/console-show-hover.svg'); }
#toolbar-button-console-hide:hover { background-image: url('img/console-hide-hover.svg'); }
#toolbar-button-share:hover { background-image: url('img/share-hover.svg'); }
#toolbar-button-about:hover { background-image: url('img/about-hover.svg'); }
#toolbar-button-settings:hover { background-image: url('img/settings-hover.svg'); }
#toolbar-button-methods:hover { background-image: url('img/methods-hover.svg'); }
#toolbar-button-slide-left:hover { background-image: url('img/slide-left-hover.svg'); }
#toolbar-button-slide-right:hover { background-image: url('img/slide-right-hover.svg'); }

#toolbar .spacer {
    display: inline-block;
    height: 1.25em;
    border-left: 1px solid rgba(102,102,102,.6);
    margin: 0 2px;
}

#help {
    overflow: hidden;
}
#help-container {
    position: absolute;
    display: grid;
    grid-template-columns: max-content auto;
    width: 100%;
}
.help, .help table { 
    font-family: -apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans',Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
    letter-spacing: normal;
    font-size: 15px;
}
.help table { border-collapse: collapse }
.help th, .help td { border: 1px solid #444; border-spacing: 0; padding: 4px }
.help a:hover { text-decoration: underline; }
.help a { color: #4E91E6 !important; }
.help code { 
    display: inline-block; 
    border: 1px solid #444;
    padding: 2px;
    border-radius: 5px;
    background-color: rgba(50, 50, 50, .5);
    font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
}
.help pre code { padding: 15px; display: block; }
.help tr:nth-child(even) { background: rgba(50, 50, 50, .5) }
.help h1, .help h2 { border-bottom: 1px solid #444; padding-bottom: 5px }
.help h2, .help h3, .help h4, .help h5 { color: #4E91E6; font-weight: 600 }
.help h1 { font-weight: normal; }
.help blockquote { border-left: 4px solid #666; color: #666; margin-left: 5px; padding-left: 20px; }
.help-sidebar { 
    border-right: 1px solid #444;
    padding-left: 10px;
    padding-right: 10px
}
.help-page {
    padding: 20px;
    overflow: auto;
}

.help-nav {
    border-bottom: 1px solid #444;
    padding-left: 15px;
    padding-bottom: 8px;
    padding-top: 8px;
}
.help-nav a {
    margin-right: 10px;
}
.hexview, .audioview, .imgview {
    position: relative;
    background-color: rgb(0, 0, 39);
}
.hexview {
    font-family: dosvga;
    font-size: 16px;
    padding: 10px;
    white-space: pre;
}
