:root{
    --header_height: initial;
}

body {
    overflow-y: hidden;
}

.logo {
	background-color:#dfdfdf;
	width:800px;
	text-align:center;
	font-family:Arial;
	font-size:18pt;
	height:50px;
	color:#3b5999;
	border: #3b5999 2px solid;
	border-bottom-width:0px;
	padding-top:10px;
}

.desktop
{
    width: 800px;
    height: 500px;
    border: #3b5999 2px solid;
    background-color: white;
}

.footer {
	background-color:#dfdfdf;
	width:800px;
	text-align:center;
	font-family:Arial;
	font-size:18pt;
	height:50px;
	color:#3b5999;
	border: #3b5999 2px solid;
	border-top-width:0px;
}

.leftPage
{
    font-size: 16px;
    border: 2px solid #CCCCCC;
    width: 375px;
    height: 400px;
    position: relative;
    float: left;
    margin: 5px 1px 5px 5px;
    padding: 5px 5px 5px 5px;
    background-color: #EAEAEA;
}

.leftPage .ui-tabs-panel
{
    height: 360px;
    overflow: auto;
    padding: 0px 0px 0px 0px;
    width:auto;
}
.leftPage .ui-tabs-nav
{
    padding:0px 0px 0px 0px;
}
.leftPage .ui-tabs-nav li
{
    height:20px;
    padding:0px 0px 0px 0px;
}
.leftPage .ui-tabs-nav li a
{
    height:20px;
    padding:2px 2px 2px 2px;
}
.leftPage li span.ui-icon-close, .leftPage li span.ui-icon-plus
{
    float: left;
    margin:2px 2px 2px 2px;
    cursor: pointer;
}

.rightPage
{
    font-size: 16px;
    border: 2px solid #CCCCCC;
    width: 365px;
    height: 400px;

    margin: 5px 5px 5px 1px;
    padding: 5px 5px 5px 5px;
    background-color: #EAEAEA;
    border-radius: 4px;
    position:relative;
    float:right;
/*
    left: 0px;
    top:0px;
    display: block;*/
}

.rightPage div
{
    font-size: 16px;
}

.sizer{
    width:auto;
    margin:5px 0px 5px 0px;
    padding:0px;
    border:0px;
    position: relative;
    float:left;
}

.sizer button {
    width:10px;
    margin:0px;
    padding:1px;
    border:0px;
    height: 414px;
/*    border-radius: 2px;
    font-size: small;*/
}


#imgTurtle
{
    position: absolute;
    z-index: 10;
    width:37px;
    height:30px;
}


.upArrow, .downArrow
{
    float:none;
}


.selected
{
    background-color: #FF9E7D;
    border: 1px solid #FF9E7D;
}

.group
{
    opacity : 0.5;
}

.procedure .spanName, .function .spanName
{
    font-weight:bold;
}

.DialogMessage
{
    font-size:14px;
}

.DialogMessage div.content
{
    padding:5px 5px 5px 5px;
    font-size:16px;
}

.DialogMessage button
{
    height: 30px;
}

.transparent{
    opacity: 0.05;
}

#sliderSpeed {
    width:200px;
    height:10px;
    margin:5px 40px 5px 10px;
    float:right;
}

#sliderSpeed .ui-slider-handle {
    height:15px;
    top:-0.2em;
}

#checkAuto {
    height:15px;
    float:left;
    clear:left;
}

#labelAuto {
    width:1em;
    height: 1em;
    float:right;
}


/* ********************* New styles from here *******************************/

.line:hover, .blockEnd:hover {
    background-color: rgb(255, 228, 220);
    border: 1px solid #FFCB97;
}

.selectLine {
    background-color: #f9ce83 !important;
    border: 1px solid transparent;
}

.line, .blockEnd, .solutionLine {
    width: 20000px;
    border: 1px solid transparent;
    margin: 0px;
    padding: 0px;
    padding-left: 5px;
    padding-right: 5px;
    height: 20px;
    line-height: 20px;
    max-height: 20px;
    vertical-align: middle;
    font-family: Consolas, Verdana, Arial, monospace, sans-serif;
    font-size: 14px;
    display: inline-block;
    position:relative;
}



.blockEnd {
    padding-left: 5px;
    font-weight: bold;
    color:#0722f9;
}

.blockCommand{
    border: 1px solid transparent;
    display: inline-block;
}


.highlightRunLine {
    background-color: #CCD7FD !important;
    /*background: -moz-linear-gradient(top, #FFFFFF, #CCD7FD);
    background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#CCD7FD));*/
    /*IE 10 */
    /*background: -ms-linear-gradient(top, #FFFFFF, #CCD7FD);*/
    border: 1px solid #A7BAFC;
}

.highlightLine {
    background-color: rgb(255, 228, 220);
    border: 1px solid #FFCB97;
}

/* do not hover color into solution popup */
#popSolutionContent .blockEnd:hover {
    background-color:transparent;
    border: 1px solid transparent;
}

.spanCommand, .spanCommandExtra {
    border: 1px solid transparent;
    margin: 0px;
    padding: 0px 22px 0px 0px;
    font-weight: bold;
    cursor: pointer;
    height: 20px;
    line-height: 20px;
    max-height: 20px;
    vertical-align: middle;
    display: inline-block;
    width: auto;
    color:#0722f9;
}

.spanCommandExtra {
    cursor: default;
}

.spanParameter, .spanParameter2 {
    border: 1px solid transparent;
    margin: 0px;
    padding: 0px 0px 0px 0px;
    height: 20px;
    line-height: 20px;
    max-height: 20px;
    text-align: right;
    vertical-align: middle;
    display: inline-block;
    width: auto;
    position:relative;
}

/*
.addLine, .removeLine, .selectLine, .addBeforeLine, .copyLine, .pasteLine {
    float: right;
}
*/


/*control the height of codePanel through css variable and javascript*/
.codePanel {
    height: calc(100vh - var(--header_height) - 78px);
    min-height: 100px;
    overflow-y: auto;
    overflow-x: auto;
    background-color: #eaeaea;
}


.variableContainer, .arrayContainer {
    position: relative;
    display: inline-block;
    font-family: Consolas, Verdana, Arial, monospace, sans-serif;
    margin-bottom: 10px;
    margin-right: 10px;
    margin-top: 10px;
    padding-left: 20px;
}

    .variableContainer > .label {
        max-width: 150px;
        overflow-x: hidden;
        text-overflow: ellipsis;
        word-wrap: break-word;
        display: inline-block;
        vertical-align: middle;
        margin-right:3px;
    }

.content {
    text-align:center;
    background-color: burlywood;
    border: 3px solid brown;
    padding: 5px;

    white-space: nowrap;
    vertical-align: middle;
    display: inline-block;
    position: relative;
    font-family: Consolas, Verdana, Arial, monospace, sans-serif;
}

.booleanContent {
    background-color: rgba(0,0,0,0);
    border: 0;
    font-family: Consolas, Verdana, Arial, monospace, sans-serif;
    /* display: inline-block; */
}

.numberContent {
    background-color: burlywood;
    border: 3px solid brown;
    font-family: Consolas, Verdana, Arial, monospace, sans-serif;
    /* display: inline-block; */

}

/* .numberContent:before{
    clear: none;
    content: "";
} */


.stringContent {
    border-radius: 4px;
    background-color: #6c67f0;
    border: transparent 1px solid;
    font-family: Consolas, Verdana, Arial, monospace, sans-serif;
    color:white;
    text-shadow:none;
    /*display: inline-block;*/
}
    .stringContent:before {
        border-color: transparent #6c67f0 transparent transparent;
        border-width: 8px 8px 8px 0;
        left: -8px;
        right: auto;
        top: calc(50% - 8px);

        border-style: solid;
        content: '';
        display: block;
        height: 0;
        position: absolute;
        width: 0;
    }

.fixedContent {
    background-color: transparent;
    border: 0;
    font-family: Consolas, Verdana, Arial, monospace, sans-serif;
    /*display: inline-block;*/
}

.arrayContainer {
    display: inline-block;
    float: left;
    clear: both;
}

    .arrayContainer .variableContainer {
        display: inline-block;
        float: left;
        clear: both;
    }
    .arrayContainer > * {
        margin-top: 1px;
        margin-bottom: 1px;
    }
    .arrayContainer > .label  {
        padding-left:30px;
        display: inline-block;
        float:left;
        clear:both;
    }

.variableIndex {
    /*background-image: url(../images/curly_bracket_left.svg);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 10px 100%;*/
    opacity:0.85;
}

    .variableIndex .content {
        background-color: transparent;
        border: 0;
    }

.appMessage {
    padding: 8px;
    padding-right: 10px;
    padding-top: 14px;
    background-color: #01537f;
    text-shadow: none;
    font-size: 15px;
    color: #e5e3e3;
}
    .appMessage.nt-bottom:before {
        border-color: transparent transparent #01537f transparent;
    }
    .appMessage.nt-top:before {
        border-color: #01537f transparent transparent transparent;
    }

    .appMessage i, b {
        font-family: Consolas, Verdana, Arial, monospace, sans-serif;
        color: #ff9d9d;
    }

.closeTip, .enableTip, .disableTip {
    display: inline-block;
    position: absolute;
    top: -4px;
    right: 2px;
    cursor: pointer;
    font-family: Consolas, Verdana, Arial, monospace, sans-serif;
    font-size: 20px;
    opacity: 0.75;
    margin: 0px;
}

    .closeTip:hover, .disableTip:hover, .enableTip:hover {
        opacity: 1;
    }

.disableTip, .enableTip{
    right:25px;
    font-size: 20px;
    top:-3px;
}

.disableTip{
    top:-4px;
}


/*control the height of tabConsole through css variable and javascript*/
#tabConsole{
    font-family: Consolas, Verdana, Arial, monospace, sans-serif;
    height: calc(100vh - var(--header_height) - 35.5px);
    overflow-y:auto;
    overflow-x: auto;
}

#tabConsole pre{
    font-family: Consolas, Verdana, Arial, monospace, sans-serif;
    margin: 0px;
    display: inline;
/*    tab-size: 4;*/
}

.block {
    padding-left: 20px;
    min-height: 24px;
}


.spanHidden {
    /*visibility: hidden;*/
    opacity:0.0;
}

.paramInput, .ddlCommands {
    display: inline-block;
    position: relative;
    height: 20px;
    line-height: 20px;
    max-height: 20px;
    font-family: Consolas, Verdana, Arial, monospace, sans-serif;
    background-color: transparent;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    border: 1px solid #ff8c8c;
    border-radius: 3px;
    outline: none;
    /*padding-left: 3px;*/
    margin-top: auto;
    margin-bottom: auto;
    left: -1px;
    text-align: left;
    pointer-events:all;
}

.ddlCommands{
    color:#0722f9;
}

.ddlCommands, .ddlCallStack, .paramInput {
    border: 1px solid transparent;
    background: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-weight: bold;
    font-family: Consolas, Verdana, Arial, monospace, sans-serif;
}

    .ddlCommands:hover {
        border: 1px solid #ff8c8c;
        box-shadow: 2px 2px rgba(0,0,0,.15);
        background: url(../images/drop-down-arrow.png) 100% / 10px no-repeat transparent;
    }

.paramInput {
    font-weight:normal;
}
    .paramInput:hover {
        border: 1px solid #ff8c8c;
        /*box-shadow: 2px 2px rgba(0,0,0,.15);
        background: url(../images/drop-down-arrow.png) 95% / 10px no-repeat transparent;*/
    }

.ddlCallStack {
    padding-right: 15px;
}

    .ddlCallStack:hover {
        /*border: 1px solid #ff8c8c;
        box-shadow: 2px 2px rgba(0,0,0,.15);*/
        background: url(../images/drop-down-arrow.png) 95% / 10px no-repeat transparent;
    }

.noPadding {
    padding:0;
}

.btnLine {
    line-height: 8px;
    font-size: 20px;
    height: 16px;
    width: 16px;
    display: inline-block;
    position: absolute;
    font-family: Consolas, Verdana, Arial, monospace, sans-serif;
    padding: 0px;
    vertical-align: middle;
    border: 1px solid #ff8c8c;
    box-shadow: none;
    border-radius: 3px;
    outline: none;
/*    background-color: rgb(255, 228, 220);*/
    background-color: #ff4400;
    left:0px;
    top:2px;
    opacity:0.5;
    color: black;
}
    .btnLine:hover {
        box-shadow: 2px 2px rgba(0,0,0,.15);
        opacity: 1;
    }
.btnInfo, .btnTask {
    font-size: 16px;
}
.btnCheck {
    font-size: 12px;
}


.visualPanel {
/*    height: calc(100vh - 92px);*/
/*    height: 100%;*/
    height: calc(100vh - var(--header_height) - 42px);
    overflow-y: scroll;
    overflow-x: auto;
/*    border:1px solid black;*/
    position: relative;
    display: block;
}

.visualBlock {
    border: 1px solid black;
    font-family: Consolas, Verdana, Arial, monospace, sans-serif;
    display: inline-block;
    position: relative;
    border-width: 1px;
    min-width: 100px;
    /*max-width: 100%;*/
    width: calc(100% - 20px);
    min-height: 100px;
    /*clear:left;*/
    /*float: left;*/
    margin: 2px;
    padding-left: 5px;
    padding-right: 5px;
    vertical-align:top;
}
    /*.visualBlock > legend {
        padding-right: 5px;
    }*/

.solution{
    display:block;
    margin-left:auto;
    margin-right:auto;
    border:0px;
}
.solution:after {
    background-size: 14px 14px;
}

.hidden {
    display: none;
}

.btnAddTab {
    position: absolute;
    top: 5px;
    left: 0px;
    z-index: 100;
    height: 1em;
    border-radius: 0;
}
.btnAddTab::after{
    background-size: 40%;
}

.btnAddTabInTip{
    z-index: 100;
    width: 1em;
    height: 1em;
    border-radius: 0;
}
.btnAddTabInTip::after{
    background-size: 40%;
}

.btnRemoveTab {
    position: absolute;
    bottom: 10px;
    right: 6px;
    z-index: 100;
    height: 1em;
}
.btnRemoveTab::after{
    background-size: 40%;
}

.background1 {
    background-color:#ccfb9d;
}
.background2 {
    background-color:#f2ffa2;
}
.background3 {
    background-color:#ffd3d9;
}


/****************** custom select appearence **************************/
    /* CAUTION: IE hackery ahead */
select.ddlCommands::-ms-expand,
select.ddlCallStack::-ms-expand {
    display: none; /* remove default arrow on ie10 and ie11 */
}

/* target Internet Explorer 9 to undo the custom arrow */
@media screen and (min-width:0\0) {
    select.ddlCommands, select.ddlCallStack {
        background: none\9;
        padding: 5px\9;
    }
}
/****************** custom select appearence end **************************/
