@charset "utf-8";

*, *:before, *:after {
    box-sizing: border-box;
}

/*#flexcanvas{
   width: 100%;
   height: 600px !important;
 }*/
html, body, .flexContainer {
    min-height: 100vh;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
}

body {
    padding: 0;
    margin: 0;
}

h1, h2, h3, h4 {
    font-family: Din Alternate, Helvetica Neue, Helvetica, Arial, sans-serif;
    color: #666;
}

button {
    padding: 10px;
    color: #aaa;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
}

button:hover {
    background: rgba(255, 255, 255, .8);
    color: #000;
}

.editorBox {
    /*-webkit-box-shadow: inset 0 0 3px #000;*/
    /*-moz-box-shadow: inset 0 0 3px #000;*/
    /*box-shadow: inset 0 0 3px #000;*/
}

.flexContainer {
    width: 100%;
    height: 100vh;
}

.flexContainer > * {
    height: 100%;
    padding-top: 32px;
}

.rowParent, .columnParent {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.columnParent {
    -ms-flex-direction: column;
    flex-direction: column;
}

.flexChild {
    -ms-flex: 1;
    flex: 1;
    -ms-flex-item-align: auto;
    align-self: auto;
}

.editorBox, .stackRow {
    -ms-flex: 3;
        flex: 3;
    position: relative;
}

.editorBox {
    background: #202020;
}

.codeColumn {
    -ms-flex: 1.5;
        flex: 1.5;
    margin-right: 10px;
    /*border-right: 2px #ddd solid;*/
}

.editor {
    min-height: 100%;
    width: 100%;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.75;
    display: inline-block;
    white-space: pre;
    padding-left: 45px;
    color: #fff;
    font-family: Monaco, Menlo, 'Ubuntu Mono', Consolas, source-code-pro, monospace;
    font-size: 12px;
    overflow-y: hidden;
    position: relative;
}

.editor:before {
    content: attr(data-lines);
    /*content: "1\a 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 10\A 11\A 12\A 13\A 14\A 15\A 16\A 17\A";*/
    position: absolute;
    top: 0;
    left: 0;
    width: 41px;
    padding-left: 7.5px;
    text-align: center;
    background: #202020;
    height: 100%;
    white-space: pre;
}

.ace-editor-wrapper {
    -ms-flex: 1;
        flex: 1;
}

.ace_editor {
    line-height: 1.75 !important;
}

.html-scratchpad {
    padding: 10px;
    background: #eee;
    overflow: scroll;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
}

.html-scratchpad button {
    border: 1px solid #777;
    padding: 10px 20px;
    color: #000;
}

.webapi {
    padding: 5px;
    border: 2px #ddd solid;
    margin: 5px;
}

.webapi-code {
    font-family: monospace;
    height: 100%;
    vertical-align: middle;
    margin-right: 5px;
}

.webapi-code:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    height: 100%;
}

.webapi-timer > * {
    display: inline-block;
    vertical-align: middle;
    height: 44px;
}

@-webkit-keyframes rota {
    0% {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}

@keyframes rota {
    0% {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}

@-webkit-keyframes fill {
    0% {
        opacity: 0;
    }
    50%, 100% {
        opacity: 1;
    }
}

@keyframes fill {
    0% {
        opacity: 0;
    }
    50%, 100% {
        opacity: 1;
    }
}

@-webkit-keyframes mask {
    0% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes mask {
    0% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@-webkit-keyframes check {
    0% {
        opacity: 0;
    }
    98% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes check {
    0% {
        opacity: 0;
    }
    98% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@-webkit-keyframes background {
    0% {
        background: rgba(148, 255, 148, 0);
    }
    95% {
        background: rgba(148, 255, 148, 0);
    }
    100% {
        background: #333;
    }
}

@keyframes background {
    0% {
        background: rgba(148, 255, 148, 0);
    }
    95% {
        background: rgba(148, 255, 148, 0);
    }
    100% {
        background: #333;
    }
}

.stopwatch-wrapper {
    width: 44px;
    height: 44px;
    position: relative;
    background: #333;
    border-radius: 250px;
    -webkit-animation: background 10s linear;
            animation: background 10s linear;
    overflow: hidden;
}

.stopwatch-wrapper:before {
    position: absolute;
    content: "";
    width: 50%;
    height: 28%;
    top: 35%;
    left: 25.5%;
    border-left: 7px #777 solid;
    border-bottom: 7px #777 solid;
    -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
    z-index: 500;
}

.stopwatch-pie {
    border-radius: 22px;
    width: 50%;
    height: 100%;
    position: absolute;
    border: 3px solid #333;
}

.stopwatch-spinner {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 200;
    border-right: none;
    -webkit-animation: rota 10s linear;
            animation: rota 10s linear;
    -webkit-transform-origin: 100% 50%;
            transform-origin: 100% 50%;
}

.stopwatch-filler {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    z-index: 100;
    border-left: none;
    -webkit-animation: fill 10s steps(1, end);
            animation: fill 10s steps(1, end);
    left: 50%;
    opacity: 1;
}

.stopwatch-mask {
    width: 50%;
    height: 100%;
    position: absolute;
    z-index: 300;
    opacity: 0;
    background: #efefef;
    -webkit-animation: mask 10s steps(1, end);
            animation: mask 10s steps(1, end);
    border-radius: 250px 0 0 250px;
}

.stopwatch-spinner, .stopwatch-filler, .stopwatch-mask, .stopwatch-wrapper {
    -webkit-animation-duration: 3s;
            animation-duration: 3s;
}

.callback-queue {
    margin-bottom: 10px;
    margin-right: 10px;
    /*margin-left: 60px;*/
    overflow-y: scroll;
}

.callback-queue.render-queue {
    margin-bottom: 5px;
}

.callback {
    font-family: monospace;
    padding: 10px;
    display: inline-block;
    margin-right: 10px;
    border: 2px #ddd solid;
    width: 200px;
    overflow: scroll;
}

.callback-active {
    background: rgb(220, 224, 255);
}

.stackBox {
    position: relative;
    margin-right: 10px;
}

.stack-wrapper {
    /*background: #AA3939;*/
    width: 244px;
    padding: 20px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.stack-wrapper, .callback-queue, .webapis {
    border: 2px #ddd solid;
    background: #efefef;
    position: relative;
    padding: 25px 10px 10px 10px;
}

.stack-wrapper:before,
.callback-queue:before,
.webapis:before {
    font-family: Helvetica Neue, Arial, sans-serif;
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 5px;
    color: rgba(0, 0, 0, .3);
}

.webapis {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
}

.webapis:before {
    content: "事件表";
}

.stack-wrapper:before {
    content: "栈";
}

.callback-queue:before {
    content: "回调队列";
}

.callback-queue.render-queue:before {
    content: "渲染队列";
}

.stack {
    position: absolute;
    bottom: 0px;
    left: 0;
    padding-left: 10px;
}

.stackBox > .spinner-wrapper {
    position: absolute;
    bottom: -28px;
    left: -45px;
    z-index: 1;
}

.stack-item {
    background: #fff;
    font-family: monospace;
    padding: 10px;
    margin: 5px;
    border: 2px #ddd solid;
    width: 220px;
    margin: 10px auto;
}

.spinner-wrapper {
    height: 60px;
    width: 60px;
    position: relative;
    padding: 9px;
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
    margin-left: 10px;
}

.spinner-wrapper-transition {
    -webkit-transform: rotate(180deg);
            transform: rotate(180deg);
    transition: -webkit-transform 0.5s linear;
    transition: transform 0.5s linear;
}

.spinner-circle {
    height: 100%;
    width: 100%;
    border-radius: 30px;
    border: 3px #555 solid;
    background: #fff;
    box-shadow: 0 0 0 12px #FFF;
}

.spinner-arrow {
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 0px 12px 12px 16px;
    border-color: transparent transparent white transparent;
    position: absolute;
}

.spinner-arrow:after {
    content: "";
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent #555 transparent;
    position: absolute;
}

.spinner-arrow-left:after {
    left: -11px;
    top: 4px;
}

.spinner-arrow-left {
    left: -2.5px;
    top: calc(50% - 9px);
}

.spinner-arrow-right {
    right: -2px;
    top: calc(50% - 6px);
    border-width: 12px 15px 0px 15px;
    border-color: white transparent transparent transparent;
}

.spinner-arrow-right:after {
    border-width: 8px 8px 0px 8px;
    border-color: #555 transparent transparent transparent;

    left: -7px;
    bottom: 4px;
}

.code-node {
    transition: all .5s;
    padding: 2px;
}

.code-node:empty {
    display: none;
}

.code-node.running {
    background: #e0592e;
    border-radius: 2px;
}

/*********************************/
.tr-webapis-enter {
    background: rgb(255, 255, 200);
    transition: background 0.2s linear;
}

.tr-webapis-enter.tr-webapis-enter-active {
    background: white;
}

.tr-webapis-leave {
    background: white;
    transition: background 0.01s linear;
}

.tr-webapis-leave.tr-webapis-leave-active {
    background: white;
}

.tr-webapi-spawn {
    background: white;
    transition: background 0.1s linear;
}

.tr-webapi-spawn.tr-webapi-spawn-active {
    background: rgb(255, 175, 146);
}

/*********************************/
.tr-queue-enter {
    background: rgb(255, 255, 194);
    transition: background 0.2s linear;
}

.tr-queue-enter.tr-queue-enter-active {
    background: white;
}

.tr-queue-leave {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
    opacity: 1;
    transition: all 0.25s linear;
}

.tr-queue-leave.tr-queue-leave-active {
    -webkit-transform: translate(0, -100px);
            transform: translate(0, -100px);
    opacity: 0.01;
}

/*********************************/
.tr-stack-enter {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
    opacity: 0.01;
    transition: all 0.1s linear;
}

.tr-stack-enter.stack-item-callback {
    -webkit-transform: translate(0, 100px);
            transform: translate(0, 100px);
    transition: all 0.25s linear;
}

.tr-stack-enter.tr-stack-enter-active {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
    opacity: 1;
}

.tr-stack-leave {
    opacity: 1;
    transition: all 0.1s linear;
}

.tr-stack-leave.tr-stack-leave-active {
    opacity: 0.01;
    transition: all 0.1s linear;
}

.htmlEditorBox {
    position: relative;
}

.editor-switch {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 9999;
}

.render-queue .callback-queued {
    background: white;
}

.render-queue .callback-delayed {
    background: rgba(255, 0, 0, 0.5);
    transition: background 0.2s linear;
}

.render-queue .callback-rendered {
    background: rgba(0, 255, 0, 0.5);
    transition: background 0.4s linear;
}

/*
.tr-render-queue-enter {
  background: white;
  transition: background 0.5s linear;
}

.tr-render-queue-enter.tr-render-queue-enter-active {
  background: red;
}

.tr-render-queue-leave {
  background: green;
  opacity: 1;
  transition: all 0.2s linear;
}

.tr-render-queue-leave.tr-render-queue-leave-active {
  background: white;
  opacity: 0.01;
  transition: all 0.2s linear;
}*/
/************************/

.top-nav {
    background: #333;
    padding: 5px;
    height: 32px;
    position: absolute;
    width: 100%;
    color: #eee;
    padding-left: 10px;
}

.top-nav .nav-item {
    display: inline-block;
    position: relative;
    top: 3px;
}

/*.top-nav h1 {*/
/*!*font-size: 20px;*!*/
/*display: inline;*/
/*position: relative;*/
/*top: -2px;*/
/*color: #eee;*/
/*}*/

.top-nav .settings-button {
    vertical-align: middle;
    display: inline-block;
    border: none;
    background: none;
    color: #eee;
    font-size: 15px;
    line-height: 15px;
    margin: 0;
    padding: 0;
    margin-right: 10px;
    margin-top: -7px;
}

.settingsColumn {
    box-sizing: border-box;
    -ms-flex: none;
        flex: none;
    width: 200px;
    transition: width 0.15s linear;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    background: #ddd;
    color: #666;
}

.settingsColumn .setting {
    margin: 10px;
}

.settingsColumn.hidden {
    width: 0;
    overflow: hidden;
}

.ReactModal__Overlay {
    z-index: 20000;
    background: rgba(0, 0, 0, 0.4);
}

.ReactModal__Content {
    left: 20%;
    right: 20%;
    border: none;
    font-size: 14px;
}

.ReactModal__Content * {
    color: #888;
}

.ReactModal__Content h1 {
    margin-top: 0;
}

.ReactModal__Content h1 + h2 {
    margin-top: 20px;
}

.ReactModal__Content h2 {
    margin-top: 40px;
    margin-bottom: 10px;
}

.ReactModal__Content a {
    color: #DF8900;
}

.ReactModal__Content li {
    margin-bottom: 5px;
}

.ReactModal__Content iframe {
    margin: 40px auto;
    max-width: 100%;
    display: block;
    border: none;
}

.modal-button {
    float: right;
}

.modal-button:hover {
    cursor: pointer;
    text-decoration: underline;
}

p.info {
    text-align: center;
    margin-top: 40px;
}

a.modalClose {
    position: absolute;
    top: 15px;
    right: 15px;
}

a:hover {
    cursor: pointer;
}
