:root {
    color-scheme: light dark;
}

html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100%;

    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    margin: 0;
    overflow: hidden;
}

hr {
    border: 0;
    border-top: 1px solid #ccc;
}

button {
    position: relative;
}

input {
    vertical-align: middle;
}

textarea {
    tab-size: 4;
    white-space: pre;
    word-wrap: normal;
}

textarea.success {
    border-color: #8b8 !important;
}

textarea.fail {
    border-color: #f00 !important;
}

textarea,
input {
    outline: none;
}

/* osx */
.Panel {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    /* No support for these yet */
    -o-user-select: none;
    user-select: none;
}

/* outliner for THREE.js scene object list (on the right) */
#outliner .opener {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: top;
    text-align: center;
}

#outliner .opener.open:after {
    content: '−';
}

#outliner .opener.closed:after {
    content: '+';
}

#outliner .option {
    border: 1px solid transparent;
}

#outliner .option.drag {
    border: 1px dashed #999;
}

#outliner .option.dragTop {
    border-top: 1px dashed #999;
}

#outliner .option.dragBottom {
    border-bottom: 1px dashed #999;
}

#outliner .type {
    display: inline-block;
    width: 14px;
    height: 14px;
    color: #ddd;
    text-align: center;
}

#outliner .type:after {
    content: '●';
}

/* */
#outliner .Scene {
    color: #8888dd;
}

#outliner .Camera {
    color: #dd8888;
}

#outliner .Light {
    color: #dddd88;
}

/* */
#outliner .Object3D {
    color: #aaaaee;
}

#outliner .Mesh {
    color: #8888ee;
}

#outliner .Line {
    color: #88ee88;
}

#outliner .LineSegments {
    color: #88ee88;
}

#outliner .Points {
    color: #ee8888;
}

/* */
#outliner .Geometry {
    color: #aaeeaa;
}

#outliner .Material {
    color: #eeaaee;
}

/* */
#outliner .Script:after {
    content: '◎;

}

/* */
button {
    color: #555;
    background-color: #ddd;
    border: 0px;
    margin: 0px;
    /* GNOME Web */
    padding: 5px 8px;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
}

input,
textarea {
    border: 1px solid transparent;
    color: #444;
}

input.Number {
    font-size: 12px;
    border: 0px;
    padding: 2px;
}

select {
    color: #666;
    background-color: #ddd;
    border: 0px;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
}

select:hover {
    background-color: #fff;
}

/* UI */
#resizer {
    position: absolute;
    top: 32px;
    right: 320px;
    width: 5px;
    bottom: 0px;
    z-index: 24;
    /* background-color: rgba(255,0,0,0.5); */
    cursor: col-resize;
}

#viewport {
    position: absolute;
    top: 88px;
    left: 0;
    right: 320px;
    bottom: 0;
}

#viewport .Text {
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

#tabs {
    background-color: #ddd;
    border-top: 1px solid #ccc;
}

#tabs span {
    color: #aaa;
    border-right: 1px solid #ccc;
    padding: 10px;
}

#tabs span.selected {
    color: #888;
    background-color: #eee;
}

#toolbar {
    position: absolute;
    left: 10px;
    top: 100px;
    width: 32px;
    background: #eee;
    text-align: center;
}

#toolbar button,
#toolbar input {
    height: 32px;
}

#toolbar button img {
    width: 16px;
    opacity: 0.5;
}

.Panel {
    color: #888;
}

/* */
@media all and (max-width: 600px) {
    #resizer {
        display: none;
    }

    #viewport {
        left: 0;
        right: 0;
        top: 32px;
        height: calc(100% - 352px);
    }
}

/* Temporary Chrome fix (#24794) */
[draggable="true"] {
    transform: translate(0, 0);
    z-index: 0;
}

.selectBox {
    position: fixed;

    border: 1px solid #55aaff;
    background-color: rgba(75, 160, 255, 0.3);
}