﻿body {
    margin: 0;
    background-color: #e6ffe6;
    overflow: hidden;
    user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    font-family: Arial, sans-serif;
}

/* Flexbox resizer */
flex {
    display: flex;
    overflow: hidden;
}

flex.h {
    flex-direction: row;
}

flex.v {
    flex-direction: column;
}

flex-item {
    overflow: auto;
}

flex > flex-resizer {
    flex: 0 0 8px;
    background-color: #333;
    background-repeat: no-repeat;
    background-position: center;
}

flex.h > flex-resizer {
    cursor: ew-resize;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='30'><path d='M2 0 v30 M5 0 v30 M8 0 v30' fill='none' stroke='gray'/></svg>");
}

flex.v > flex-resizer {
    cursor: ns-resize;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='10'><path d='M0 2 h30 M0 5 h30 M0 8 h30' fill='none' stroke='gray'/></svg>");
}

#appBox {
    height: 100%;
    width: 100%;
    position: absolute;
    box-sizing: border-box;
}

/* Top navigation menu */
#topNav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
    width: 100%;
}

.topNavElement {
    float: left;
}

li span, .dropbtn {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 8px 16px;
    text-decoration: none;
}

li span:hover, .dropdown:hover .dropbtn {
    background-color: #111;
    cursor: pointer;
}

li.dropdown {
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content span {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content span:hover {
    background-color: #262626;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.slidecontainer {
    color: white;
}

.no_checkbox > i.jstree-checkbox {
    display: none
}

#tabsBar {
    min-height: 28px;
    background-color: #333333;
    display: none;
    overflow: hidden;
}

.tablinks {
    background-color: inherit;
    float: left;
    text-align: left;
    border: none;
    outline: none;
    min-width: 80px;
    padding: 0px 8px;
    padding-top: 8px;
    padding-bottom: 5px;
    font-size: 14px;
    color: white;
}

.tablinks:hover {
    background-color: #ba4545;
}

.tablinks.active {
    background-color: brown;
}

.tablinksClose {
    background-color: inherit;
    float: right;
    border: none;
    outline: none;
    margin-left: 10px;
    color: white;
}

.tablinksClose:hover {
    background-color: #cc5c5c;
}

.tablinks.active .tablinksClose:hover {
    background-color: #ba4545;
}

.tablinksClose:active:hover {
    background-color: brown;
}

.tablinks.active .tablinksClose:active:hover {
    background-color: #911717;
}

#contentWindow {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #737373;
}

.tabWindowEditor {
    background-color: #333333;
    color: lightgray;
    height: 100%;
    width: 100%;
}

.editorBlockTitle {
    background-color: #3d3d3d;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 12px;
    font-size: 16px;
}

.editorBlockContent {
    background-color: #333333;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 16px;
    font-size: 16px;
}

.editorBlockParamLine {
    padding-top: 4px;
    padding-bottom: 4px;
    flex-direction: row;
    display: flex;
}

.editorBlockParamName {
    padding-left: 22px;
    min-width: 8%;
}

.editorBlockParamSecondary {
    padding-top: 3px;
    padding-left: 14px;
    padding-right: 12px;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.editorBlockParamLine button,
input,
select,
textarea {
    color: lightgray;
    vertical-align: baseline;
    border-radius: 5px;
    border-color: #555555;
    border-width: 1px;
    outline: 0;
    background-color: #242424;
    font-size: 15px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.editorBlockParamLine input[type="checkbox"] {
    filter: invert(100%) hue-rotate(-38deg) brightness(4);
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(1,1,1); /* Fallback color */
    background-color: rgba(255,255,255,0.2); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #333;
    color: white;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 20%;
    text-align: center;
}

#topBarContainer {
    display: flex;
    flex-direction: row;
}

#toolBar {
    background-color: #333;
    float: right;
    width: 160px;
    height: 100%;
    display: none;
    align-items: center;
    padding-right: 16px;
}

#toolBar button {
    background-color: #444;
    color: white;
    border-radius: 3px;
    border: 1px solid #525252;
    margin: auto;
    font-size: 16px;
    padding: 3px;
}

#toolBar button:hover {
    background-color: #666;
}

canvas {
    image-rendering: optimizeSpeed; /* Older versions of FF          */
    image-rendering: -moz-crisp-edges; /* FF 6.0+                       */
    image-rendering: -webkit-optimize-contrast; /* Safari                        */
    image-rendering: -o-crisp-edges; /* OS X & Windows Opera (12.02+) */
    image-rendering: pixelated; /* Awesome future-browsers       */
    -ms-interpolation-mode: nearest-neighbor; /* IE                            */
}