body, input, button, textarea, select {
    font-family: Quicksand, Ubuntu, Optima, Segoe, Segoe UI, Candara, Calibri, Arial, sans-serif;
    font-size: 16px;
}

label {
    white-space: nowrap;
}

input::placeholder {
    color: lightgrey;
}

#app {
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    position: absolute;
    margin-top: 4px;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 8px);
}

#header {
    flex: 0 0 auto;
    -webkit-flex: 0 0 auto;
    line-height: 1.3;
}

#panes {
    display: flex;
    display: -webkit-flex;
    flex: 1 1 auto;
    -webkit-flex: 1 1 auto;
}

#graph {
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
}

#options {
    flex: 0 0 auto;
    -webkit-flex: 0 0 auto;
}

#output {
    flex: 1 1 auto;
    -webkit-flex: 1 1 auto;
    position: relative;
    overflow: auto;
}

#editor {
    border-right: 1px solid #ccc;
}

#header {
    background: #eee;
    border-bottom: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

#header b {
    font-size: 18px;
}

#options {
    background: #eee;
    border-bottom: 1px solid #ccc;
    padding: 8px;
}

#options label {
    margin-right: 8px;
}

#output svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#output #text {
    font-size: 12px;
    font-family: monaco, courier, monospace;
    white-space: pre;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

#output img {
    display: block;
    margin: 0 auto;
}

#output.working svg, #output.error svg,
#output.working #text, #output.error #text,
#output.working img, #output.error img {
    opacity: 0.4;
}

#output.error #error {
    display: inherit;
}

#output #error {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    margin-right: 20px;
    background: red;
    color: white;
    z-index: 1;
}

.gutter {
    background-color: #eee;
    background-repeat: no-repeat;
    background-position: 50%;
}

.catalogGroup {
    margin: 12px;
    border: 4px solid lightgrey;
    background: #F9F9F9;
}

.group {
    margin-bottom: 30px;
    border: solid lightgrey 1px;
    padding: 20px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
    border-radius: 3px;
}

.gutter.gutter-horizontal {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
    cursor: ew-resize;
}

.split {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

    overflow-y: auto;
    overflow-x: hidden;
}

.split.split-horizontal, .gutter.gutter-horizontal {
    height: 100%;
    float: left;
}

/* Dropdown Button */
.dropbtn {
    background-color: #303030;
    color: white;
    padding: 8px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropbtn:hover, .dropbtn:focus {
    background-color: #2980B9;
}

.dropdown {
    position: relative;
    display: inline-block;
}

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

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.show {
    display: block;
}