html {
    height: 100%;
}

body {
    font-family: sans-serif;
    height: 100%;
    padding: 0px;
    margin: 0px;
    background: #444;
    overflow: hidden;
}

.window {
    position: absolute;
    width: 400px;
    height: 300px;
    background-color: #CCC;
    border: solid 1px #000;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.5);
    border-radius: 4px;
    box-sizing: border-box;
}

.window-title {
    height: 25px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(90deg, #888, #AAA, #888);
    color: #FFF;
    overflow:hidden;
    white-space: nowrap;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 0px;
    padding-top: 4px;
    cursor: move;
}

.window:last-child > .window-title {
    background: linear-gradient(90deg, #008, #00C, #008);
    text-shadow: 1px 1px 2px #000;
}

.window-close-button {
    box-shadow: inset 0px 0px 0px 0.5px #FFF;
    color: #AAA;
    font-weight: bold;
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 19px;
    text-align: center;
    height: 24px;
    width: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.window-close-button:hover {
    background: #A00;
    color: #FFF;
    text-shadow: 1px 1px 0px #000;
}

.window-size-left {
    position: absolute;
    left: 0px;
    width: 4px;
    top:0px;
    bottom: 0px;
    cursor: ew-resize;
}

.window-size-right {
    position: absolute;
    right: 0px;
    width: 4px;
    top:0px;
    bottom: 0px;
    cursor: ew-resize;
}

.window-size-bottom {
    position: absolute;
    right: 0px;
    left: 0px;
    bottom: 0px;
    height: 4px;
    cursor: ns-resize;
}

.window-size-bottom-right {
    position: absolute;
    right: 0px;
    bottom: 0px;
    width: 8px;
    height: 8px;
    cursor: nwse-resize;
}

.window-client {
    position: absolute;
    top: 33px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    padding: 4px;
    overflow: auto;
    background-color: #EEE;
}

.widget {
    position: absolute;
    xbox-shadow: 0px 0px 0px 1px #F00;
}

.label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    position: absolute;
    left: -3px;
    top: -18px;
    font-size: 13px;
    color: #888;
    font-weight: bold;
    font-family: sans-serif;
    padding-left: 4px;
    padding-right: 4px;
}

.text-input {
    padding: 0px 4px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    outline: none;
    box-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

input, select {
    width: 100%;
    height: 100%;
    background: #FFF;
}

textarea {
    width: 100%;
    height: 100%;
    background: #FFF;
    resize: none;
}

input:focus, select:focus, textarea:focus {
                               box-shadow: 0px 0px 2px 2px #F00;
                           }

.button {
    padding: 4px 16px;
    font-weight: bold;
    border-radius: 8px;
    font-size: 18px;
    border: none;
    xbox-shadow: 2px 2px 2px rgba(0,0,0,0.5);
    outline: none;
    box-shadow: 1px 1px 0px rgba(0,0,0,0.25),
    inset 1px 1px 1px rgba(255,255,255,0.5),
    inset -1px -1px 1px rgba(0,0,0,0.5);
    background: linear-gradient(-45deg, rgba(0,0,0,0), rgba(0,0,0,0.5)), #ABC;
    color: #FFF;
    text-shadow: 1px 1px 0px #000;
    box-sizing: border-box;
}

.button:active {
    background: #F00;
}

.sep {
    margin: 8px;
    background-color: #CCC;
    min-height: 1px;
    max-height: 1px;
}

.form-row {
}

.H, .V {
    xbox-shadow: 0px 0px 1px #00F;
}

canvas {
    position: absolute;
}