﻿html, body {
    margin: 0;
    background: #246d8b;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#top-bar {
    background: #000;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    box-sizing: border-box;
    border-bottom: 1px solid #7a7a7a;
    line-height: 50px;
    vertical-align: central;
    padding: 0 10px;
}

    #top-bar input {
        line-height: 30px;
        width: 300px;
    }

#left-panel {
    background: #70a7b9;
    position: absolute;
    left: 0;
    top: 50px;
    bottom: 0;
    width: 350px;
    border-right: 1px solid #fff;
    padding: 5px;
    box-sizing: border-box;
    overflow: auto;
}

#right-panel {
    background: #70a7b9;
    position: absolute;
    right: 0;
    top: 50px;
    bottom: 0;
    width: 400px;
    border-left: 1px solid #fff;
    padding: 5px;
    box-sizing: border-box;
    overflow: auto;
}

    #right-panel h3 {
        color: #fff;
        font-size: 1.25rem;
        border-bottom: 1px solid;
    }

#canvas {
    position: absolute;
    left: 350px;
    top: 50px;
    bottom: 0;
    right: 400px;
    padding: 5px 20px 5px 20px;
    overflow: auto;
}

.canvas-context-menu {
    position: absolute;
    z-index: 999;
    display: none;
    border: 1px solid #979797;
    background: #fff;
    -webkit-box-shadow: 3px 3px 5px 0px rgba(71,71,71,1);
    -moz-box-shadow: 3px 3px 5px 0px rgba(71,71,71,1);
    box-shadow: 3px 3px 5px 0px rgba(71,71,71,1);
}

    .canvas-context-menu ul {
        list-style: none;
        padding: 2px;
        margin: 0;
    }

        .canvas-context-menu ul li.separator {
            display: block;
            border-bottom: 1px solid #979797;
        }

    .canvas-context-menu.group-context ul li.group-context {
        display: block;
    }

    .canvas-context-menu.question-context ul li.question-context {
        display: block;
    }

        .canvas-context-menu ul li {
            display: none;
            padding: 4px 20px 4px 4px;
        }


            .canvas-context-menu ul li:hover {
                background: #60aefb;
            }

.dialog-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.dialog {
    width: 400px;
    height: 75px;
    background: #fff;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 5px;
    padding: 5px 10px;
}

    .dialog .title {
        border-bottom: 1px solid #979797;
        margin-bottom: 5px;
    }

    .dialog button {
        float: right;
        margin-left: 10px;
    }

.open-dialog {
    width: 500px;
    height: 500px;
}
    .open-dialog .title {
        border-bottom: 1px solid #979797;
    }

    .open-dialog button.delete-btn {
        float: left;
        margin: 0;
    }

    .open-dialog ul {
        list-style: none;
        padding: 0;
        height: 412px;
        background: #70a7b9;
        overflow: auto;
    }

    .open-dialog li {
        cursor: pointer;
        padding: 3px 5px;
        margin: 2px;
        background: #fff;
        border-radius: 2px;
    }

        .open-dialog li.selected {
            background: #80bffb;
        }

.item {
    background: #fff;
    padding: 3px 5px;
    margin-bottom: 2px;
    cursor: pointer;
    border-radius: 2px;
}

    .item.selected {
        background: #80bffb;
    }

.condition {
    background: #fff;
    padding: 3px 5px;
    margin-bottom: 2px;
    border-radius: 2px;
}

    .condition div {
        border-bottom: 1px solid #7a7a7a;
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

        .condition div button {
            float: right;
            font-size: 10px;
            padding: 0px 3px;
        }

.button {
    display: inline;
    background: #246d8b;
    color: #fff;
    border: 1px solid #ccc;
    padding: 5px;
    cursor: pointer;
}

.question {
    display: block;
    background: #fff;
    border-radius: 2px;
    padding: 5px;
    width: 400px;
    margin-bottom: 10px;
    cursor: pointer;
}
    .question.selected {
        background: #80bffb;
    }
    .question input[type=checkbox] {
        float: right;
    }

    .question:last-child {
        margin-bottom: 0;
    }

    .question textarea {
        width: 373px;
        height: 30px;
    }

    .question div.multi-select {
        color: #333;
        font-size: 12px;
        line-height: 12px;
        display: inline-block;
    }

        .question div.multi-select input[type=checkbox] {
            float: left;
            margin-right: 5px;
        }

.group {
    display: table;
    background: #70a7b9;
    border-radius: 2px;
    padding: 5px;
    min-width: 410px;
    margin-bottom: 10px;
    border: 1px solid #fff;
}

    .group:after {
        content: "";
        clear: both;
    }

    .group.selected {
        background: #80bffb;
    }

    .group > input[type=text] {
        margin-bottom: 5px;
    }

    .group > input[type=number] {
        width: 50px;
    }

    .group > input[type=checkbox] {
        float: right;
    }
