@font-face {
   font-family: "OCR-A";
   src: url("../fonts/ocr-a/OCR-ABT.ttf");
   //src: url("../fonts/ocr-a/OCR-A.ttf");
}

html, body {
   font-family: Ubuntu, Sans, Helvetica;
   margin: 0;
   padding: 0;
   overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
   font-family: OCR-A;
}

a, a:active, a:hover {
   text-decoration: none;
}

#viewport {
}

#side {     
   background: rgba(255,255,255,0.95);
   padding: 0.2em 0.8em;
   font-size: 0.8em;
   color: #888;
   box-shadow: 0 0 1.5em 0.2em #426;
}

#side ul {
   margin: 0 0.5em;
   padding: 0em 2em;
}

.sliding.left {
   top: 0;
   left: -30%;
   position: absolute;
   z-index: 30;
   width: 30%;
   height: 100%;
   //border-right: 1px solid #ccc;
   transition: all 0.4s;
   box-sizing: border-box;
}

.sliding.left:hover, .sliding.left:focus .sliding.left:active  ~ .sliding.left .handle:hover, .sliding.left .handle:focus, .sliding.left .handle:active {
   left: 0;
}

.sliding.left .handle {
   position: absolute;
   top: 45%;
   right: -25px;
}

#about {
   position: absolute;
   z-index: 40;
   top: 20%;
   left: 30%;
   width: 40%;
   box-shadow: 0.2em 0.05em 3em #638;
   padding: 2em 4em;
   text-align: center;
   font-size: 0.9em;
   color: #444;
   border-radius: 1em;
   border: 2px solid #84c;
   background: white;
}
#about .header {
   font-size: 3em;
   font-family: OCR-A;
   margin-bottom: 0.5em;
}
#about ul {
   text-align: left;
}

#logo {
   top: 0.5em;
   left: 2em;
   position: fixed;
   opacity: 0.9;
   z-index: 31;
}

#version {
   font-size: 0.9em;
   padding-left: 10em;
}

.window {
   box-shadow: 0.1em 0.05em 0.5em #638;
   z-index: 10;
   position: absolute;
   padding: 0;
}

.window_header {
   background: #a8c;
   color: #fff;
   padding: 0.2em 0.5em;
   font-size: 0.8em;
   cursor: grab;
   //font-family: "OCR-A";
}
.window_header:active {
   cursor: move;
}
.window_header .action {
   height: 1em;
   bottom: -0.1em;
   position: relative;
   margin: 0 0.1em;
   padding: 0;
}
.window_header .icon {
   height: 1em;
   bottom: -0.1em;
   position: relative;
   margin: 0 0.1em;
   padding: 0;
   background: rgba(100,100,100,0.5);
}
.window_content {
   background: rgba(255,255,255,0.8);
   padding: 0.5em 1em;
}
.window_control {
   float: right;
   cursor: pointer;
   display: inline-block;
   font-size: 0.8em;
}
.window_control span {
   margin: 0.1em 0.2em;
   padding: 0.1em 0.2em;
   background: #888;
   color: white;
   border: 1px solid rgba(255,255,255,0.5);
}

#root_settings {
   position: fixed;
   z-index: 10;
   right: 0;
   bottom: 0;
   margin-bottom: 0.3em;
   margin-right: 0.5em;
}

#root_settings #root_actions {
   margin-right: 1em;
}

#root_settings img {
   height: 1.6em;
   padding: 0;
   background: #a8c;
   color: white;
   border: 2px solid #888;
   border-radius: 0.2em;
}
#root_settings img.disabled {
   opacity: 0.3;
}

#root_settings #reset_view_status_:active {
   background: #648;
}
#root_settings #reset_view_status img {
   background: none;
   border: 2px solid #888;
   border-radius: 0.2em;
}

#source, #native {
   display: block;
   position: absolute;
   top: 5em;
   left: 3em;
   z-index: 22;
   box-sizing: border-box;
   border: 1px solid #888;
   //width: 30%;                    // enable for 'ace' editor
}

#native {
   top: 7em;
   left: 4em;
}

#source_content, #native_content {
   color: #444;
   background: rgba(255,255,255,0.8);
   font-family: monospace;
   white-space: pre;
   padding: 0.5em;
   height: 40em;
   font-size: 0.9em;
}

#native_content {
   color: #999;
   background: rgba(255,255,255,0.9);
}

#source_content .ace_selection { 
   background: #aaa;
   color: white;
}

#treeview {
   display: block;
   position: absolute;
   top: 1em;
   right: 1em;
   z-index: 20;
   box-sizing: border-box;
   color: #444;
   border: 1px solid #888;
   width: 30%;
   background: rgba(255,255,255,0.8);
}

#treeview_content {
   font-size: 0.8em;
   line-height: 1.4em;
   max-height: 30em;
   overflow: auto;
}

#treeview_content li:hover {
   background: #ccc;
}
#treeview_content li.more:hover {
   background: #aac;
}

#extra {
   display: block;
   position: absolute;
   top: 90%;
   left: 3em;
   width: 30%;
   z-index: 20;
}

#extra_header {
}

#extra_content {
   padding: 0.5em 1em;
   background: white;
}

#exporting.disabled {
   opacity: 0.3;
}

.button, #export_button {
   color: white;
   background: #648;
   border: 4px solid;
   padding: 0.2em 0.8em;
   border-radius: 0.2em;
   border: 1px solid #648;
}

#export_hint {
   font-size: 0.9em;
   color: #444;
   padding: 0.4em 0.8em;
}

.export_link {
   background: #aaa;
   border-radius: 0.2em;
   color: white;
   padding: 0.1em 0.5em;
   font-size: 0.8em;
}

#console {
   //right: 1em;        // doesn't like right/bottom aligned ... #treeview works though
   //bottom: 3em;
   left: 55%;
   top: 70%;
   position: absolute;
   display: block;
}

#console_content {
   background: rgba(0,0,0,0.7);
   color: #ccc;
   padding: 0.2em 0.4em;
   font-family: monospace;
}

#console_input {
   background: #887;
   color: #fff;
}

#params {
   position: absolute;
   left: 50%;
   top: 10%;
   background: rgba(255,255,255,0.7);
}

.params.container {
   padding: 0.5em 0;
   margin: 0.2em 0.5em;
   font-size: 0.7em;
}
.params.title {
   font-weight: bold;
   background: #aaa;
   color: white;
   padding: 0.2em 0.5em;
}
.params.content {
}
.params.content input {
   margin: 0.2em 0;
   padding: 0.1em 0.2em;
   background: #efa;
   border: 1px solid #ab8;
   border-radius: 0.2em;
}
.params.content form .input {
   margin: 0.2em 0;
}
.params.content form .input .key {
   width: 4em;
   margin-right: 0.2em;
   text-align: right;
   display: inline-block;
}

.params.content .buttons {
   text-align: left;
}
.params.content .update_button {
   margin: 0.2em 0em;
   padding: 0.2em 0.5em;
   border: 2px solid #888;
   border-radius: 0.2em;
   display: inline-block;
   background: white;
}
.params.content .update_button:hover {
   background: #eee;
}

#footer {
   position: absolute;
   right: 1em;
   bottom: 1em;
   opacity: 0.6;
   font-size: 0.8em;
   text-align: right;
   z-index: 1;
}

.hint {
   opacity: 0.5;
   font-size: 0.8em;
   margin: 0 1em;
   font-family: Ubuntu, Sans, Helvetica;
}

textarea::selection, .marked {
   background: #648;
   color: white;
}

#documentation ul {
   padding-left: 1em;
}

#examples ul {
   padding-left: 0.5em;
}

#documentation ul li {
   cursor: pointer;
   line-height: 1.4em;
}

#examples ul li, #recent li {
   color: #00f;
   //text-decoration: underline;
   cursor: pointer;
   line-height: 1.4em;
}

#examples ul li:after {
}

/* #documentation ul li:hover, */
#examples ul li:hover {
   background: #c0c0f0;
}
