* {cursor: default;
    user-select: none;}

app-container {display: block;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    font-family: sans-serif;
    font-size: 15px;
    color: #eee;
    background: #111;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    overflow: hidden;}

.dialogs {position: absolute;
    pointer-events: none;
    z-index: 3;}

app-ui {display: block;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;}
app-ui > div {display: block;
    position: absolute;
    pointer-events: all;
    background: rgba(40,40,40,0.9);
    overflow: hidden;
    backdrop-filter: blur(10px);}
app-ui > .top {left: 0;
    top: 0;
    width: 100%;
    height: 36px;
    padding: 8px;
    box-shadow: 0 -10px 7px 10px rgba(0,0,0,0.2);}
app-ui > .top h1 {display: inline-block;
    margin: 0;
    padding: 0 0 0 8px;
    line-height: 36px;
    font-size: 24px;
    font-weight: normal;}
app-ui > .top app-settings {position: absolute;
    left: 50%;
    top: 8px;
    height: 36px;
    width: 862px;
    transform: translate3d(-50%, 0, 0);}
app-ui > .top .bg-toggle {display: block;
    position: relative;
    width: 36px;
    height: 36px;
    margin: 0 10px 0 0;
    padding: 0;
    float: right;
    cursor: pointer;}
app-ui > .top .bg-toggle input {position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;}
app-ui > .top .bg-toggle span {left: 0;
    top: 0;
    pointer-events: none;
    z-index: 1;}
app-ui > .left {}
app-ui > .right {right: 0;
    top: calc(50% - 300px);
    width: 400px;
    height: 600px;
    padding: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    border-radius: 3px 0 0 3px;
    z-index: 2;}
app-ui > .right h2 {display: inline-block;
    padding: 0 0 0 8px;
    margin: 0 0 10px 0;
    line-height: 34px;
    font-size: 19px;
    font-weight: normal;}
app-ui > .right > button {margin: 0;
    float: right;}
app-ui > .bottom {left: 0;
    bottom: 0;
    width: 100%;
    height: 13px;
    padding: 3px 4px;
    line-height: 15px;
    font-size: 12px;
    color: #aaa;
    box-shadow: 0 10px 5px 10px rgba(0,0,0,0.2);}

app-renderer {display: block;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 72px 0 20px 0;
    overflow: auto;
    scrollbar-width: none;
    z-index: 1;}
app-renderer::-webkit-scrollbar {width: 0;
    height: 0;}
app-renderer canvas {display: inline-block;

    transform: translate3d(calc(0.5 * (var(--w) - var(--s))), 0, 0);
    backface-visibility: hidden;
    background: transparent;
    border-radius: 100%;}
app-renderer canvas:first-child {background: #fff;}
app-renderer[dark] canvas:first-child {background: #000;}
app-renderer canvas:not(:first-child) {position: absolute;}

app-settings {display: block;
    white-space: nowrap;}

app-layers {display: block;
    height: calc(100% - 44px);
    text-align: right;}
app-layers .view {display: block;
    height: calc(100% - 50px);
    margin: 0 0 10px 0;
    text-align: left;
    overflow: auto;}
app-layers .view .layer {display: block;
    height: 40px;}
app-layers .view .layer .title {display: inline-block;
    position: relative;
    top: 20px;
    min-height: 18px;
    max-height: 36px;
    max-width: calc(100% - 130px);
    padding: 0 5px;
    line-height: 18px;
    transform: translateY(-50%);}
app-layers .view .layer .actions {display: block;
    width: 120px;
    height: 40px;
    text-align: right;
    float: right;}
app-layers .view .layer .actions > div {display: inline-block;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;}
app-layers .view .divider {display: block;
    height: 1px;
    margin: 5px 0;
    background: rgba(255,255,255,0.07);}
app-layers .view .divider:last-child {display: none;}
app-layers .view:empty {text-align: center;
    color: rgba(255,255,255,0.5);}
app-layers .view:empty:after {content: "Keine Ebenen.";}

.layer-selector {display: flex;
    justify-content: space-evenly;}
.layer-selector > div {display: block;
    padding: 10px;
    margin: 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    cursor: pointer;}

app-layer-editor {display: block;
    width: 500px;}

app-dialog {display: block;
    position: fixed;
    left: 50%;
    top: 50%;
    min-width: 300px;
    max-width: 900px;
    height: auto;
    background: rgba(30,30,30,0.9);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    border-radius: 3px;
    transform: translate3d(-50%, -50%, 0);
    backdrop-filter: blur(10px);
    pointer-events: all;}
app-dialog.info {min-width: 300px;
    max-width: 400px;}
app-dialog .content {display: block;
    min-height: 22px;
    padding: 20px 20px 0 20px;}
app-dialog .actions {display: block;
    height: 30px;
    padding: 20px 15px 15px 15px;
    text-align: right;}
app-dialog .actions button {margin: 0 0 0 5px;}
app-dialog .actions button.left {float: left;}

app-slider, app-checkbox, app-select {display: inline-block;
    height: 36px;
    padding: 0 8px;
    line-height: 36px;
    overflow: hidden;}
app-slider label, app-checkbox label, app-select label {display: block;
    margin: 0 8px 0 0;
    line-height: 36px;
    float: left;
    cursor: pointer;}
app-slider input, app-checkbox input, app-select select {display: inline-block;
    margin: 0;
    cursor: pointer;}
app-slider span {display: inline-block;
    min-width: 30px;
    margin: 0 8px 0 0;
    line-height: 36px;}
app-slider input {width: 350px;
    height: 20px;
    margin: 8px 0;
    float: right;}
app-select select {display: inline-block;
    height: 20px;
    padding: 5px;
    font: unset;
    line-height: 20px;
    border: none;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    box-sizing: content-box;
    cursor: pointer;
    outline: none;}
app-select select option {background: #222;}

button, input[type="color"] {display: inline-block;
    height: 20px;
    margin: 5px;
    padding: 5px 20px;
    font: unset;
    line-height: 20px;
    border: none;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    box-sizing: content-box;
    cursor: pointer;
    outline: none;}
input[type="color"] {padding: 5px 7px;}
button.icon {padding: 5px 3px;
    background: transparent;}

input[type="number"], input[type="text"] {display: inline-block;
    height: 20px;
    width: 200px;
    margin: 5px;
    padding: 5px;
    font: unset;
    line-height: 20px;
    border: none;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    box-sizing: content-box;
    cursor: text;
    outline: none;}
input[type="number"] {width: 70px;}

fieldset {display: block;
    margin: 5px;
    padding: 10px;
    border: 1px solid #444;
    overflow: hidden;}
fieldset legend {padding: 0 5px;
    font-size: 17px;}

.icon {font-family: "Material Icons";
    font-size: 24px;}
