* {
    outline: none;
}

html {
    height: 100%;
}

body {
    margin: 0 0 0 5px;
    height: 100%;
}

body,
textarea,
button {
    background: #222;
    color: #ccc;
    font-family: 'Consolas', monospace;
}

textarea {
    border: 0;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    resize: none;
}

.green {
    color: rgba(96, 206, 60, 1);
}

.blue {
    color: rgba(141, 166, 206, 1);
}

.red {
    color: rgba(251, 60, 60, 1);
}

.orange {
    color: rgba(251, 222, 45, 1);
}

#incompatible-browser {
    display: none;
    position: absolute;
    width: 80%;
    left: 10%;
    top: -4px;
    border: 4px solid #f00;
    background: rgba(255, 0, 0, .4);
    text-align: center;
    color: #fff;
    padding: 1em 0;
}

/* INPUT */
div#top {
    height: 80px;
    padding: 8px 0;
    text-align: center;
}

#fileupload {
    opacity: 0;
    position: absolute;
    top: -10em;
}

label[for=fileupload] {
    cursor: pointer;
    display: inline-block;
    margin: 0 1em;
    padding: .5em 1em;
    font-size: 1.2em;
    border: 2px dotted transparent;
}

label[for=fileupload]:hover {
    color: #eee;
}

#githublink {
	float: right;
    clear: both;
    margin: 0.5em calc(2.5% + 1em) 0 0;
    font-size: 0.9em;
    color: #ccc;
}

/* HELP */
#help {
    position: absolute;
    right: 3.5%;
    top: 1em;
}

#loadExampleCode {
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 3em;
    width: 130px;
    text-align: center;
    border: none;
    font-size: 1em;
}

#togglehelp {
    border: 3px solid #ccc;
    background: #222;
    cursor: pointer;
    font-size: 1.2em;
    position: absolute;
    top: 0;
    right: 0;
}

#help-inner {
    display: none;
    width: 50%;
    max-height: 600px;
    overflow-y: scroll;
    margin: 5% 25%;
    text-align: left;
    z-index: 100;
    background: #222;
    padding: 1em;
    border: 5px solid #888;
    border-right: 0;
    border-bottom: 0;
    box-shadow: 5px 5px #ccc;
}

#help-inner.show {
    display: block;
}

#help-inner a {
    color: #fff;
    font-weight: bold;
}
/* END HELP */

/* OUTPUT */
div#bottom {
    height: calc(100% - 100px);
    width: 95%;
    margin: 0 auto;
}

div#bottom iframe {
    width: 100%;
    height: 100%;
}

#left-panel,
#right-panel {
    position: relative;
    border: 5px solid #888;
    border-right: 0;
    border-bottom: 0;
    margin: 0 1em 1em 0;
    box-shadow: 5px 5px #ccc;
    background: #222;
}

#left-panel {
    padding: 0.2em;
    width: calc(55% - 1em);
    min-height: calc(90% - 0.4em);
    height: calc(90% - 0.4em);
    float: left;
    overflow: hidden;
}

#tracer {
    float: left;
    width: 100%;
    height: calc(100% - 1em);
    overflow-x: hidden;
    padding-bottom: 1em;
}

#tracer:after {
    color: #ccc;
    position: absolute;
    right: 1.5em;
    top: 0;
    content: attr(id);
    text-transform: capitalize;
    opacity: .6;
}

#tracer:hover:after {
    opacity: 1;
}

#right-panel {
    width: calc(43% - 1em);
    height: 90%;
    float: right;
    overflow: hidden;
}

#right-panel #tabs {
    width: 100%;
    border-bottom: 5px solid #888;
    background: #ccc;
}

#tabs button,
#input button {
    border: 0;
    cursor: pointer;
    background: #ccc;
    line-height: 2em;
    color: #222;
    padding: 0 1em;
}

#tabs button:hover {
    background: #eee;
}

#tabs button.active {
    font-weight: bold;
    background: #eee;
}

#right-panel #input,
#right-panel #vfs,
#right-panel #console {
    position: absolute;
    left: 0;
    top: 30px;
    right: 0;
    bottom: 0;
    z-index: -1;
    display: none;
    padding: 0.2em;
}

#right-panel #input.show,
#right-panel #vfs.show,
#right-panel #console.show {
    display: block;
    z-index: 1;
}

#input button {
    position: absolute;
    top: -30px;
    right: 25px;
    height: 26px;
    line-height: 26px;
    background: #222;
    color: #eee;
    font-size: 1em;
}

#right-panel #vfs {
    overflow-x: auto;
}

#right-panel #vfs > ul {
    margin-top: 0;
}

/* VFS */
#vfs ul {
  display: none;
  padding: 0 0 0 1.1em;
}

#vfs li:not(.fileprop) {
  font-weight: normal;
  cursor: pointer;
  position: relative;
  list-style: none;
  line-height: 1.4em;
}

#vfs li:not(.fileprop):hover {
  font-weight: bold;
}

#vfs li:not(.fileprop):before {
  content: '\25b6';
  position: absolute;
  font-size: .7em;
  left: -1.5em;
  top: .15em;
}

#vfs li.open > ul {
  display: block;
}

#vfs li.open:before {
  content: '\25bc';
}