html,
body {
    margin: 0;

    width: 100%;
    height: 100%;
    vertical-align: top;
    background-color: grey;
    white-space: nowrap;
    display: flex;
    overflow: hidden;
    flex-direction: row-reverse;
    font-family: Arial, Helvetica, sans-serif;
}

.lil-gui {
    --name-width: 20%;
    --slider-input-width: 50%;
}

input {}

#viewCanvas {
    width: calc(100% - 600px);
    height: 100%;
}


.add-button {
    position: absolute;

    padding: 1px;
    right: 0px;
    z-index: 100;
    margin: 2px;
    margin-top: 5px;
    display: none;
}

div#text {
    margin-top: 48px;
    text-align: center;
}

div#dropzone {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999999999;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: visibility 175ms, opacity 175ms;
    display: table;
    text-shadow: 1px 1px 2px #000;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    font: bold 42px Oswald, DejaVu Sans, Tahoma, sans-serif;
}

div#textnode {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    transition: font-size 175ms;
}

.toolbar-container {
    position: absolute;
    left: 0px;
    display: flex;
    width: calc(100% - 300px);
    flex-wrap: wrap;
}

.toolbar {
    align-items: center;
    background-color: darkgray;
    display: flex;
    margin: 5px;
    margin-bottom: 0;
    box-sizing: content-box;
    padding: 2px 4px;
    border-radius: 3px;
    user-select: none;
}

.button,
.toolbar-select {
    height: 32px;
    display: flex;
    background-color: grey;
    margin: 4px 2px;
    box-sizing: content-box;
    border-radius: 3px;
}

.button {
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.5);
    -webkit-user-drag: none;
}

.button:active {
    box-shadow: inset 0px 0px 5px 2px rgba(0, 0, 0, 0.5);
}

.button img {
    height: 100%;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.button .icon {
    font-size: 24px;
    color: white;
}

.spacer {
    width: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

body svg {
    position: absolute;

}

.sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 300px;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    background-color: #202020;
}

.toolbar-select {
    width: 300px;
    outline: none;
}

.prefab-select {
    width: 100px;
}

.actor-list,
.property-list,
.extra-list {
    background-color: #404040;

    min-height: 50px;
    margin: 5px;
    border-radius: 5px;
    border: 1px solid #404040;
    display: flex;
    flex-direction: column;
}

.property-list {
    flex: 1;
    margin-top: 0;
}

.actor-list-title {
    padding: 2px;
    font-size: 10px;
    border-bottom: 1px solid #202020;
    color: #a0a0a0;
    display: flex;
}

.actor-list-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow-y: auto;
    font-size: 12px;
}

.actor-list-line {
    display: flex;
    color: #a0a0a0;
    padding: 0 5px;
}

.actor-list-line:nth-child(even) {
    background-color: #303030;
}

.actor-list-line:hover {
    background-color: #606060;
}

.actor-list-label {
    display: flex;
    padding: 2px;
}

.actor-list-buttons {
    display: flex;
    justify-content: flex-end;
    flex: 1;
    height: 18px;
}

.actor-list-buttons img {
    cursor: pointer;
}

.lil-gui {
    --width: 100%;
    border-radius: 5px;
    ;
}

.lil-gui .title {
    border-radius: 5px 5px 0 0;
}

#uiElement {
    display: flex;
    flex: 1;
}

.hide {
    display: none;
}

.light {
    bottom: 5px;

}

.error {
    bottom: 5px;
    flex-direction: row-reverse;
    pointer-events: none;
}

.error .button {
    height: 48px;
    pointer-events: all;
}

.extra-list {
    flex: 0;
    margin-top: 0;
    min-height: initial;
}

.actor-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.json-view{
    height: 100%;
    width: 600px;
    display: flex;
    flex-direction: row;
}

.json-view textarea{
    flex: 1;
    margin-right: 0;
    margin-left: 0;
    color: #a0a0a0;
    outline: none;
    resize: none;
}

.json-view .bars{
    color: #a0a0a0;
    display: flex;
    align-items: center;
    width: 5px;
    justify-content: center;
    cursor: ew-resize;
}

.hide {
    display: none;;
}