﻿:root {
    --FH-background-color: black;
    --FH-foreground-color: LightGray;
}

[draggable=true] {
    cursor: move;
}

.editor {
    border: 1px solid black;    
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
    margin-left: 10px;
}

.editor-area {
    display: flex;
}

.editor-tree {
    width: 300px;
    border: 1px solid #77773c;
    background-color: #476b6b;
}

.list-tree {
    padding-left: 30px;
}

    .list-tree li {
        list-style-type: none;
        color: #fff;
        position: relative;
        margin-left: -15px;
    }

        .list-tree li label {
            padding-left: 37px;
            cursor: pointer;
            background: url("https://www.thecssninja.com/demo/css_tree/folder-horizontal.png") no-repeat 15px 2px;
            display: block;
        }

        .list-tree li input {
            width: 1em;
            height: 1em;
            position: absolute;
            left: -0.5em;
            top: 0;
            opacity: 0;
            cursor: pointer;
        }

            .list-tree li input + ol {
                height: 1em;
                margin: -16px 0 0 -44px;
                background: url("https://www.thecssninja.com/demo/css_tree/toggle-small-expand.png") no-repeat 40px 0;
            }

                .list-tree li input + ol > li {
                    display: none;
                    margin-left: -14px !important;
                    padding-left: 1px
                }

        .list-tree li.file {
            margin-left: -1px !important;
        }

            .list-tree li.file a {
                display: inline-block;
                padding-left: 21px;
                color: #fff;
                text-decoration: none;
                background: url("https://www.thecssninja.com/demo/css_tree/document.png") no-repeat 0 0;
            }

        .list-tree li input:checked + ol {
            height: auto;
            margin: -21px 0 0 -44px;
            padding: 25px 0 0 80px;
            background: url("https://www.thecssninja.com/demo/css_tree/toggle-small.png") no-repeat 40px 5px;
        }

            .list-tree li input:checked + ol > li {
                display: block;
                margin: 0 0 0.063em;
            }

                .list-tree li input:checked + ol > li:first-child {
                    margin: 0 0 0.125em;
                }

.editor-work {
    width: 100%;
    text-align: center;
    vertical-align: middle;
}

.editor-title {
    height: 20px;
    line-height: 20px;
    border: 1px solid #444422;
    background-color: #444422;
}

.editor-content {
    height: 100%;
    border-width: 2px;
    padding-top: 20px;
    padding-bottom: 50px;
    line-height: 0;
}

.editor-navbar {
    overflow: hidden;
    background-color: #333;
}

    .editor-navbar a {
        float: left;
        font-size: 16px;
        color: white;
        text-align: center;
        padding: 14px 16px;
        text-decoration: none;
    }

.editor-toolbar {
    text-align: left;
    background-color: #bfbfbf;
}

    .editor-toolbar button {
        color: black;
        border: 1px solid LightGray;
    }

    .editor-toolbar img {
        margin-top: 5px;
        margin-bottom: 5px;
        margin-right: 3px;
        margin-left: 3px;
        width: 40px;
        height: 40px;
    }

        .editor-toolbar img:hover {
            background-color: PaleGreen;
        }

.editor-dropdown {
    float: left;
    overflow: hidden;
}

    .editor-dropdown .dropbtn {
        font-size: 16px;
        border: none;
        outline: none;
        color: white;
        padding: 14px 16px;
        background-color: inherit;
        font-family: inherit;
        margin: 0;
    }

    .editor-navbar a:hover, .editor-dropdown:hover .dropbtn {
        background-color: gray;
    }

.editor-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    .editor-dropdown-content hr.separator {
        border: 1px solid LightGray;
    }

    .editor-dropdown-content a {
        float: none;
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
    }

        .editor-dropdown-content a:hover {
            background-color: #ddd;
        }

.editor-dropdown:hover .editor-dropdown-content {
    display: block;
}

.rung {
    display: flex;
}

.rung-index {
    width: 60px;
    position: absolute;
    left: 20px;
    padding-top: 90px;
}

.rung-border {
    width: calc(100% - 80px);
    border-left: 5px solid LightGray;
    border-right: 2px solid LightGray;
    margin-left: 60px;
}

.rung-insert {
    height: 10px;
    position: absolute;
    width: 60px;
    left: 30px;
    z-index:100;
}

.h-container {
    display: flex;
    position: relative;
}

.v-container {
    width: 100%;
    display: block;
}

.v-container-branch, .v-container-block-branch {
    height: 100%;
    position: relative;
}

.element, .element-block, .element-double-block {
    float: left;
    display: flex;
    z-index: 1;
}

.element {
    width: 100px;
    height: 80px;
}

.element-block {
    width: 200px;
    min-height: 80px;
}

.element-double-block {
    width: 400px;
    min-height: 80px;
}

.wire, .wire-block {
    width: 100%;
    height: 4px;
    border-top-style: solid;
}

.wire {
    margin-top: 28px;
}

.wire-block {
    margin-top: 25%;
}

.flex-wire, .short-wire {
    float: left;
    height: 4px;
    margin-top: 48px;
    border-top-style: solid;
}

.flex-wire {
    width: 100%;
}

.short-wire {
    width: 12px;
}

.contact {
    float: left;
    width: 16px;
    height: 32px;
    margin-top: 14px;
    border-left-style: solid;
    border-right-style: solid;
}

.branch {
    position: absolute;
    border-left-style: solid;
    width: 0;
    height: 100%;
    top: 51px;
}

.circle {
    width: 64px;
    height: 32px;
    line-height: 32px;
    margin-top: 14px;
    border-radius: 50%;
    border-style: solid;
}

.negate {
    width: 36px;
    height: 10px;
    transform: rotate(-66deg);
    transform-origin: 15px 25px;
    position: absolute;
    border-bottom-style: solid;
}

.label {
    padding-top: 20px;
}

.comment {
    padding-top: 20px;
    padding-bottom: 20px;
}

.logic {
    display: block;
}

.block {
    display: block;
    width: 4000px;
    margin-top: 20px;
    padding-top: 10px;
    padding-bottom: 30px;
    border-style: solid;
}

.block-label {
    line-height: 25px;
    margin-bottom: 10px;
    height: 25px;
}

.parameter {
    line-height: 25px;
    display: flex;
    height: 25px;
}

.parameter-name {
    width: 35%;
}

.parameter-value {
    width: 60%;
    border-color: black;
    border-style: solid;
    border-width: 1px;
    background-color: #ffff99;
    color: black;
}

.energize {
    border-color: #00ff00;
    color: #00ff00;
}

.power-active {
    border-left-color: #00ff00;
    border-right-color: #00ff00;
}


.draggable {
    cursor: grab;
}

    .draggable:active {
        cursor: grabbing;
    }

.dragging {
    cursor: grabbing;
}

.dropzone {
    
}

.no-drop {
    background-color: none;
}

.can-drop {
    background-color: #00ff00;
}

.hover {
    outline: 2px dashed #00ff00;
    position: relative;
}