﻿/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 23.02.2016, 14:56:37
    Author     : Tim Wettstein <wettstein@helliwood.com>
*/

body {
    height: calc(100%);
    width: 100%;
    font-family: Calibri, Helvetica Neue, Helvetica, Arial, sans-serif;
}

.ui-draggable-dragging {
    z-index: 100000 !important;
}

.texture {
    background-image: url(../img/texture.png);
    background-repeat: no-repeat;
}

#container {
    height: 100%;
    overflow: hidden;
}

.header {
    padding-top: 4px;
    background-color: #323232;
    margin-bottom: 15px;
    position: relative;
}
.header::before {
    content: " ";
    display: block;
    height: 3px;
    background-color: #ba0098;
    border-bottom: 1px solid #FFF;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
}

.header .logo {
    height: 30px; 
}

.header .buttonbar {
    margin: 14px 0 8px 0;
}

.header .buttonbar.right {
    text-align: right;
}

.header .buttonbar .button {
    display: inline-block;
    vertical-align: top;
    position: relative;
}

.header .buttonbar.right .button:last-child .icon {
    padding-right: 0px;
}

.header .buttonbar .button .icon {
    display: block;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.header .buttonbar .button .icon::before {
    content: " ";
    height: 42px;
    position: absolute;
    left: 0px;
    border-left: 1px solid #FFF;
}
.header .buttonbar .button:first-child .icon::before {
    border-left: none;
}

.header .buttonbar .button .icon .texture {
    display: inline-block;
    width: 42px;
    height: 42px;
    /*-webkit-transition: transform 0.2s;
    -moz-transition: transform 0.2s;
    transition: transform 0.2s;*/
}

.header .buttonbar .button:active .texture,
.header .buttonbar .button:hover .texture {
    /*transform: scale(1.1);*/
}

.header .buttonbar .button .icon.start .texture {
    background-position: -5px -5px;
}

.header .buttonbar .button .icon.play .texture {
    background-position: -53px -5px;
}
.header .buttonbar .button .icon.play .label:before {
    content: "Ausführen";
    display: inline;
}

.header .buttonbar .button .icon.stop .texture {
    background-position: -100px -5px;
}
.header .buttonbar .button .icon.stop .label:before {
    content: "Stop";
    display: inline;
}

.header .buttonbar .button .icon.expand  .texture{
    background-position: -149px -5px;
}

.header .buttonbar .button .icon.collapse .texture {
    background-position: -198px -5px;
}

.header .buttonbar .button .icon.mirobot .texture {
    background-position: -248px -5px;
}

.header .buttonbar .button .icon.mirobot.ok .texture {
    background-position: -298px -5px;
}

.header .buttonbar .button .icon.mirobot.error .texture {
    background-position: -349px -5px;
}

.header .buttonbar .button .icon .bootstrap-switch {
    margin-top: 6px;
    margin-bottom: 4px;
    /*
    -webkit-transition: transform 0.2s;
    -moz-transition: transform 0.2s;
    transition: transform 0.2s;*/
}
.header .buttonbar .button .icon .bootstrap-switch:hover {
    /*transform: scale(1.1);*/
}

.header .buttonbar .button .mirobot_input {
    position: absolute;
    opacity: 0;
    right: 60px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}
.header .buttonbar .button .mirobot_input.visible {
    opacity: 1;
    right: 80px;
}
.header .buttonbar .button .mirobot_input input {
    width: 100px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}
.header .buttonbar .button .mirobot_input.visible input {
    width: 200px;
}

.header .buttonbar .button .label {
    font-weight: normal;
    color: #FFF;
    display: block;
    margin-top: 10px;
    padding: 0px;
}

.controls {
    padding: 3px;
    background-color: #fff;
}


input.error {
    color: red;
}

input.connect {
    color: green;
    background-color: greenyellow;
}

#turtlePaint {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    /*background-image: url(../img/mili.png);
    background-position: center;*/

}

footer {
    margin-top: 15px;
    height: 25px;
    padding: 5px 0px;
    color: #999;
    background-color: #333;
    font-size: 12px;
}

.main {
    height: calc(100%);
}

.main.start {
    background-image: url('../img/bg_structure.png');
}
.main.start .start {
    display: block;
    background-image: url('../img/bg_structure.png');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

.main.start .editor {
    display: none;
}

.main.start .start .store {
    height: calc(100%);
    overflow-x: hidden;
    overflow-y: auto;
}
.main.start .start .image {
    height: 100%;
    overflow: hidden;
    padding: 15px;
}
.main.start .start .image img {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
}


.main.start .start .item,
.main.start .start .add {
    background-color: #323232;
    margin-bottom: 30px;
    padding: 15px;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s;
    height: 100px;
    cursor: pointer;
    position: relative;
}
.main.start .start .item:active,
.main.start .start .item:hover,
.main.start .start .add:active,
.main.start .start .add:hover {
    background-color: #ba0098;
    transform: scale(1.02);
}
.main.start .start .item:active .title,
.main.start .start .item:hover .title {
    color: #323232;
}

.main.start .start .item .title {
    font-size: 24px;
    color: #ba0098;
    overflow: hidden;
    text-overflow: ellipsis;
}
.main.start .start .item .date {
    color: #FFF;
}

.main.start .start .item .closer {
    position: absolute;
    font-size: 20px;
    top: 15px;
    right: 15px;
    color: #efefef;
}
.main.start .start .item .closer:hover,
.main.start .start .item .closer:active {
    color: #FFF;
}

.main.editor .start {
    display: none;
}
.main.editor .editor {
    display: block;
}


.stage.right,
.stage.left {
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: width 300ms;
}

.coder {
    position: relative;
    display:inline-block;
    width: 100%;
    height: 100%;
    background-color: #fff;
    padding: 10px;
    text-align: left;
    overflow-y: scroll;
    overflow-x: hidden;
}

.coder div.name {
    padding: 10px;
    background-color: #68B415;
    color:#fff;
}

.coder .cNode {
    position: relative;
    transform: scale(1);
    -webkit-transition: transform ease-in-out 100ms;
    -moz-transition: transform ease-in-out 100ms;
    transition: transform ease-in-out 100ms;
    z-index: 1;
    touch-action:none !important;
    -ms-touch-action:none !important;
}
.coder .cNode.block {
    touch-action: initial !important;
    -ms-touch-action:initial !important;
}

.coder .cNode.currentAction {
    transform: scale(1.1);
    box-shadow: 0px 0px 10px 0px #cccccc;
    -webkit-transition: transform ease-in-out 100ms;
    -moz-transition: transform ease-in-out 100ms;
    transition: transform ease-in-out 100ms;
    border: 1px solid #fff;
    z-index: 500;
}

.coder .cNode.currentAction:after {
    content: " ";
    display:block;
    position: absolute;
    top:calc(50% - 10px);
    right: -20px;
    width: 0px;
    height: 0px;
    border: 10px solid transparent;
    border-right-color: #ccc;
}

.coder .cNode.ui-draggable-dragging {
    cursor: move;
}

.coder .cNode.state-hover {
    transition: all 200ms;
}

.coder .cNode.state-hover {
    margin-bottom: 20px !important;
}

.coder .cNode .title.state-hover:before,
.coder .cNode.state-hover:before {
    content: " ";
    display:block;
    width: 1px;
    height: 1px;
    border: 5px solid transparent;
    border-right-color: #000;
    position: absolute;
    left: 0px;
    bottom: -15px;
}

.coder .cNode .title.state-hover:after,
.coder .cNode.state-hover:after {
    content: " ";
    display:block;
    width: 250%;
    height: 2px;
    background: linear-gradient(to left, white 0%, #000 50%);
    position: absolute;
    left: 10px;
    bottom: -11px;
}

.coder .cNode .title.state-hover {
    margin-bottom: 20px;
    position: relative;
}

.coder .cNode .title.state-hover:before {
    left: 20px;
}
.coder .cNode .title.state-hover:after {
    left: 30px;
}
.coder .cNode .title.state-hover .cValue:before {
    content: " ";
    display: block;
    position: absolute;
    left: -10px;
    bottom: -30px;
    height: 20px;
    z-index: 20;
    width: 15px;
}


.coder .cNode.block.error,
.coder .cNode.line.error {
    margin-top:28px;
}
.coder .cNode.error .error-msg {
    position: absolute;
    top:-25px;
    left: 0px;
    min-width: 100px;
    height: 25px;
    line-height: 25px;
    background-color: #f19999;
    color: #780000;
    padding: 0px 10px;
    white-space: nowrap;
}

.coder .block {
    margin: 3px 0px 0px 3px;
    color:#fff;
}

.coder .inline { display:inline-block; }

.coder .cNode.block.func-main,
.coder .cNode.block.word {
    margin-bottom: 15px;
}

.coder .block .title {
    background-color: #68B415;
    padding: 10px;
    position: relative;
}

.coder .block .body {
    border-left: 15px solid #68B415;
}

.coder .scriptLabel {
    display: inline-block;
    background-color: #68B415;
    padding: 15px 30px 15px 10px;
    margin:3px 3px 10px 3px;
    min-width: 150px;
    color: #fff;
    font-size: 20px;
}

.coder .scriptLabel > span {
    font-weight: bold; 
    padding-right: 10px;
}
.coder .scriptLabel > span.lb {
    font-weight: lighter;
}

.coder .block .line {
    background-color: #68B415;
    padding: 10px 30px 10px 10px;
    margin:3px 3px 0px 3px;
}

.coder .block .line.comment {
    background-color: #cccccc;
    color: #999;
}

.coder .block .end {
    background-color: #68B415;
    padding: 10px;
    margin-top:3px;
    position: relative;
}
.coder .block .end:before {
    content: " ";
    display:block;
    position: absolute;
    top:-3px;
    left: 0px;
    width: 15px;
    height: 3px;
    background-color: #68B415;
}

.coder .block .line span,
.coder .block .title span,
.coder .block .end span {
    opacity: 0.5
}

.coder .block.func-main .title.state-hover .cValue:before,
.coder .block.func-main > .title,
.coder .block.func-main > .end,
.coder .block.func-main > .end:before {
    background-color: #AE2775;
}
.coder .block.func-main > .body {
    border-color: #AE2775;
}

.coder .block.func-main.custom .title.state-hover .cValue:before,
.coder .block.func-main.custom > .title,
.coder .block.func-main.custom > .end,
.coder .block.func-main.custom > .end:before {
    background-color: #ec008c;
}
.coder .block.func-main.custom > .body {
    border-color: #ec008c;
}

.coder .block.for .title.state-hover .cValue:before,
.coder .block.for > .title,
.coder .block.for > .end,
.coder .block.for > .end:before {
    background-color: #3F84BE;
}
.coder .block.for > .body {
    border-color: #3F84BE;
}

.coder .block.while .title.state-hover .cValue:before,
.coder .block.while > .title,
.coder .block.while > .end,
.coder .block.while > .end:before {
    background-color: #3F84BE;
}
.coder .block.while > .body {
    border-color: #3F84BE;
}

.coder .block.word .title.state-hover .cValue:before,
.coder .block.word > .title,
.coder .block.word > .end,
.coder .block.word > .end:before {
    background-color: #008272;
}
.coder .block.word > .body {
    border-color: #008272;
}

.coder .block.if .else, 
.coder .block.if .title.state-hover .cValue:before,
.coder .block.if > .title,
.coder .block.if > .end,
.coder .block.if > .end:before {
    background-color: #CE5933;
}
.coder .block.if >.body {
    border-color: #CE5933;
}
.coder .block.if .else {
    margin-left: -15px;
}


.coder .cNode.ineditBlock {
    z-index: 10;
}

.coder .block .inedit {
    min-width: 300px;
    z-index: 2;
}

.coder .cNode.line.inedit {
    min-width: auto;
    z-index: 2;
}

.coder .block .cValue {
    position: relative;
    white-space: nowrap;
}

.coder .block .cValue input.editCtrl:focus,
.coder .block .cValue input.editCtrl {
    color: #000;
    width: 100px;
    min-width: 75px;
    max-width: 700px;
    text-align: center;
    background: transparent;
    border: 1px solid #fff !important; 
    border-radius: 5px;
    box-shadow: none !important;
    outline: none !important;
    color: #fff;
    line-height: 25px;
}

.coder .block .cValue ::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color:    #fff;
    opacity:  0.8;
}
.coder .block .cValue :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
   color:    #fff;
   opacity:  0.8;
}
.coder .block .cValue ::-moz-placeholder { /* Mozilla Firefox 19+ */
   color:    #fff;
   opacity:  0.8;
}
.coder .block .cValue :-ms-input-placeholder { /* Internet Explorer 10-11 */
   color:    #fff;
   opacity:  0.8;
}
.coder .block .cValue :placeholder-shown { /* Standard (https://drafts.csswg.org/selectors-4/#placeholder) */
  color:    #fff;
  opacity:  0.8;
}

.coder .editCtrl.button {
    position: absolute;   
    width: 40px;
    height: 40px;
    border-radius: 25px;
    background-color: #fff;
    z-index:10;
    /*box-shadow: 0px 0px 8px 0px #000;*/
    cursor: pointer;
    border: 1px solid #4D464E;
}
.coder .editCtrl.button:hover {
    background-color: #ff8100;
}

.coder .block .del {
    top:5px;
    right: -20px;
    background-image: url(../img/del.svg);
    background-position: 1px 0px;
}

.coder .block .else .del {
    top:1px;
}

.coder .block.word .del,
.coder .block.func-main .del {
    right: -33px;
}


.coder .cNode.line .del {
    right: -20px;
    left: inherit;
}

.coder .block .add {
    left: -15px;
    background-image: url(../img/add.svg);
    z-index: 100;
}
.coder .block.word > .add.top,
.coder .block.word > .add,
.coder .block.func-main > .add.top,
.coder .block.func-main > .add {
    left: -10px;
}

.coder .block .add.top {
    top:-38px;
}

.coder .block .add.bottom {
    bottom:-38px;
}

.coder .list {
    position: absolute;
    top:0px;
    right: -400px;
    opacity: 0;
    width: 350px;;
    height: 100%;
    background-color: #efefef;
    transition: right ease-in-out 200ms, opacity ease-in-out 400ms;
    z-index: 100;
}

.coder .list .closer {
    display: block;
    width: 40px;
    height: 40px;
    padding: 9px 0px;
    cursor: pointer;
    background-color: #fff;
    color: #000;
    position: absolute;
    top:10px;
    left: -32px;
    text-align: center;
    line-height: 20px;
    border-radius: 20px;
    border: 1px solid #000;
    font-size: 20px;
}
.coder .list .closer:hover {
    background-color: #ff8100;
}


.coder .list.show {
    right:0px;
    opacity: 1;
}

.coder .list .list-group {
    margin: 10px 0px 0px 10px;
}

.coder .list .list-group-item:hover {
    background-color: #efefef;
}

.coder .list .list-group-item {
    padding-left: 40px;
    cursor: pointer;
}

.coder .list .list-group-item i.fa {
    position: absolute;
    top:13px;
    left: 13px;
    color: #337ab7;
    font-weight: bold;
}

.promo { 
    display:none;
    position: absolute;
    top:1px;
    left: 0px;
    width: 100%;
    height: calc(100% - 1px);
    padding: 0px 50px;
    background-color: #fff;
    z-index: 200;
}
.promo:after {
    content: "";
    background-image: url('../img/bg_structure.png');
    background-color: #fff;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.2;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1; 
}

.popover .newMain span {
    color: #3F84BE;
}

.popover .newMain {
    cursor: pointer;
}

.popover .newMain:hover {
    background-color: #efefef;
}

#txteditor {
    position: absolute;
    top: 1px;
    left: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 1px);
    z-index: 1000;
    display:none;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 10px;
}

#editor1 {
    width: 100%;
    height: 100%;
    border: 1px dotted #ccc;
}