html, body {
    width: 100%;
    height: 100%;
    padding: 0px;
    margin: 0px;
    color: #eee;
    background-color: #222;
    font-family: 'Gill Sans', 'Gill Sans MT', 'Calibri', 'Trebuchet MS', sans-serif;
    overflow: hidden;
}

#outer {
    display: flex;
    flex-direction: row;
    height: 100%;
}

#drag-scrim {
    position: absolute;
    top: 0px;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
}

#drag-modal {
    width: 90%;
    height: 90%;
    background-color: #55f;
    border: 5px dotted #00f;
    border-radius: 3em;
    text-align: center;
    /* margin: auto; */
}

#tab-bar {
    background-color: #555;
    padding: 5px;
    display: flex;
    flex-direction: column;
}

#tab-bar a {
    margin: 5px;
    width: 40px;
    height: 40px;
    border-radius: 25%;
    border: 1px solid transparent;
    text-align: center;
    background-color: #222;
}

#tab-bar a.selected-tab {
    border-color: #fff;
}

#tab-bar a:hover, #tab-bar a:focus {
    border-color: #f70;
}

#tab-bar a:active {
    border-color: #f70;
    background-color: #f70;
}

#editor {
    border-style: solid;
    border-color: #aaa;
    border-width: 0px 0.5px;
    flex-grow: 2;
    background-color: #222;
    /* padding: 20px; */
    display: flex;
    flex-direction: column;
}

#inspector {
    background-color: #555;
    padding: 10px 0px;
    min-width: 300px;
}

#top-bar > h1 {
    margin: 0px;
    padding: 5px;
    color: #fff;
    font-size: 18pt;
    font-weight: normal;
    text-transform: uppercase;
    text-align: center;
}

#top-bar {
    border-bottom: 0.5px solid #aaa;
}

#bottom-bar {
    border-top: 0.5px solid #aaa;
}

input {
    border: 1px solid transparent;
    border-radius: 1ex;
    /* padding: 5pt; */
    background-color: #222;
    color: #fff;
}

input:hover, input:focus {
    border-color: #f70;
}

input:disabled {
    border-color: transparent;
}

input.read-only-text {
    border-color: transparent !important;
    background-color: #555 !important;
}

select {
    border: 1px solid #aaa;
    border-radius: 1ex;
    background: url(select_arrow.svg) no-repeat right #555;
    color: #fff;
    -webkit-appearance: none;
}

select:after {
    content: '\f078';
}

select:hover, select:focus {
    border-color: #f70;
}

.invalid-text {
    background-color: #900;
}

fieldset {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-gap: 1ch; gap: 1ch;
    border: none; border-top: 1px solid #aaa;
    padding: 10px;
}

fieldset:hover {
    border-top-color: #f70;
}

fieldset:disabled {
    color: #aaa;
    border-top-color: #888;
}

fieldset > legend {
    color: #fff;
    font-variant: small-caps;
}

fieldset:disabled > legend {
    color: #aaa;
}

#central-editor {
    flex-grow: 2;
    padding: 0px;
    flex-basis: 100px;
    max-height: 100%;
    overflow: hidden;
}

.center-both {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.placeholder-text {
    color: #555;
}

.advice {
    margin: auto;
    text-align: center;
    font-weight: normal;
    color: #555;
}

#central-editor h1 {
    text-align: center;
    font-variant: small-caps;
}

/*
#central-editor svg {
    width: 100%;
    height: 100%;
}
*/

#svg-click-wrapper {
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0px;
    padding: 0px;
    border-width: 0px;
    overflow: hidden;
    background: repeating-linear-gradient(
        45deg,
        #222,
        #222 9px,
        #707 10px,
        #707 12px,
        #222 13px
    );
}

#svg-click-wrapper svg {
    min-height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: 100%;
    background-color: #222;
    pointer-events: none;
    overflow: hidden;
}

svg text {
    font-size: 12px;
    text-anchor: middle;

    /* Prevent text selection */
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;

    /* Hide the selection cursor */
    cursor: default;
}

svg text#camera-doodad {
    /* font-size: 8px; */
    text-anchor: start;
}

svg:focus {
    border-width: 0px;
}

svg.follow-mouse {
    cursor: url(/insertion_cursor.svg) 16 16, crosshair;
}

#bottom-bar {
    padding: 4pt;
}

#bottom-bar button {
    color: #fff;
    background-color: #25a;
    border: 1px solid transparent;
    border-radius: 4pt;
    margin-right: 4pt;
    padding-left: 0px;
    overflow: hidden;
}

#bottom-bar:empty {
    padding: 0px;
    border-top: 0px;
}

#bottom-bar button:last-child {
    margin-right: 0px;
}

#bottom-bar button:hover {
    background-color: #36f;
}

#bottom-bar button:active {
    background-color: #39f;
    color: #000;
}

#bottom-bar button *.key-binding {
    margin-left: 0px;
    margin-right: 1ex;
    padding: 5px;
    background-color: rgb(44, 186, 230);
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
}
