:root {
    --main-bg-color: #272727;
    --main-panel-color: #393d3f;
    --main-panel-highlight-color: #505558;
    --main-txt-color: #88949c;
    --main-padding: 15px;
    --main-border: #4a4a4a 1px solid;

    --header-height: 50px;
    --footer-height: 18px;

    --slider-height: 21px;

    --work-txt-color: #b1b3b5;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
    outline: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0); /* mobile webkit */
}


body {
    padding-bottom: var(--footer-height);
    background-color: var(--main-bg-color);
    padding-top: var(--header-height);
    color: var(--main-txt-color);

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
}


/* LEGACY */


.spinner {
    animation: rotator 1.4s linear infinite;
}

@keyframes rotator {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(270deg);
    }
}

.path {
    stroke-dasharray: 187;
    stroke-dashoffset: 0;
    transform-origin: center;
    animation: dash 1.4s ease-in-out infinite,
    colors 1.4s ease-in-out infinite;
}

.ico-shadow {
    -webkit-box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.75);
}

@keyframes colors {
    0% {
        stroke: #4285F4;
    }
    25% {
        stroke: #DE3E35;
    }
    50% {
        stroke: #F7C223;
    }
    75% {
        stroke: #1B9A59;
    }
    100% {
        stroke: #4285F4;
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 187;
    }
    50% {
        stroke-dashoffset: 46.75;
        transform: rotate(135deg);
    }
    100% {
        stroke-dashoffset: 187;
        transform: rotate(450deg);
    }
}

#layer-overlay {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-bg-color);
}

.header-container {
    background-color: var(--main-panel-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 16px;
    border-bottom: var(--main-border);
}

.header {
    color: #88949c;
    height: 50px;
}

.header .disabled {
    opacity: .2;
    cursor: default;
}

.header-flex {
    display: flex;
    height: 100%;
    padding-top: 3px;
}

.header-flex > div {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.header-flex > div > * {
    padding: 4px;
    margin: 0 0 0 15px;
}

.flex-right {
    justify-content: flex-end;
}

.header h1 {
    font-size: 18px;
    color: #fff;
    margin: 0 0 0 16px;
}

.header p {
    font-size: 13px;
}

#user-display {
    max-height: 136px;
}

#user-info {
    background: #464a4d;
}

.download-note {
    background: #489b53;
    color: #fff;
}

.user-info {
    display: flex;
    border-radius: 15px;
    height: 30px;
    justify-content: center;
    align-items: center;
    padding: 4px 12px;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}

.user-info p, .user-info a {
    margin: 0 0 0 8px;
}

.user-info a {
    margin-right: 8px;
}

.work {
    background-color: var(--main-bg-color);
    color: var(--work-txt-color);
}

.canv {
    position: fixed;
    top: 50px;
    left: 0px;
    right: 280px;
    bottom: 0px;
}

.pass-through {
    pointer-events: none;
}

canvas {

}

.left-bar {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    bottom: var(--footer-height);
    top: var(--header-height);
    width: 342px;
    background-color: var(--main-panel-color);
}

.left-bar div a {
    font-size: 9px;
    color: var(--work-txt-color);
    max-height: 120px;
}

.left-bar div a p {
    max-width: 120px;
    word-wrap: break-word;
    margin: 0 auto;
}

.left-bar div h4 {
    font-size: 14px;
    color: var(--work-txt-color);
}

#menu-bar-list {
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
    overflow-y: auto;
    text-align: center;
    border-radius: 4px;
    margin: 8px;
    border-bottom: var(--main-border);
}

#menu-bar-list > div {
    margin: 8px;
    padding: 4px;
    flex-grow: 1; /*0;*/
    max-height: 142px;
}

#menu-bar-list .file-list-item {
    /*margin: 0 auto;*/
    width: max-content;
    padding: 4px;
}

#menu-bar-list .file-list-item img {
    max-width: 100px;
    max-height: 100px;
}

#menu-bar-list .file-list-item > a > div > div {
    right: 0;
}

#menu-bar-patches {
    flex-grow: 0;
    border-radius: 4px;
    padding: 3px;
    margin: 8px 8px 23px 8px;
}

#menu-bar-patches > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#menu-bar-patches a {
    margin: 2px;
    height: 56px;
    width: 56px;
    line-height: 56px;
    background: #4b4b4b;
    display: inline-block;
    text-align: center;
    opacity: .6;
}

#menu-bar-flags > div {
    margin: 8px 8px 23px 8px;
}

#menu-bar-flags a {
    display: block;
    text-align: center;
    padding: 8px;
    width: 100%;
    border: var(--main-border);
    background-color: var(--main-panel-highlight-color);
    opacity: .77;
    margin: 0 auto;
    width: 77%;
    font-size: 12px;
}

#menu-bar-flags a:hover {
    opacity: 1;
}

.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--footer-height);
    font-size: 11px;
    background-color: var(--main-panel-color);
    color: var(--work-txt-color);
    border-top: var(--main-border);
}

.footer p {
    display: inline-block;
    margin: 0 8px;
}

.toolbar {
    position: fixed;
    top: 50px;
    bottom: 0;
    width: 280px;
    background-color: var(--main-panel-color);
    display: flex;
    flex-direction: column;
    padding: 8px 8px 6px 8px;
}

.toolbar-left {
    left: 0;
    border-right: var(--main-border);
    display: None;
}

.toolbar-right {
    right: 0;
    border-left: var(--main-border);
}

.toolbar form {
    margin: 16px;
    width: 100%;
}

.toolbar > div > div {
    margin: 0;
    display: flex;
    color: var(--work-txt-color);
    align-items: center;
}

.toolbar > div > div > p {
    margin: 0 8px;
    font-size: 13px;
    width: 50px;
}

.toolbar-module h1 {
    font-size: 14px;
    color: var(--work-txt-color);
    text-align: center;
    margin: 4px;
}

.toolbar-module > div > div > * {
    border-radius: 3px;
}

.toolbar > div > div * {
    display: inline-block;
    flex-grow: 1;
}

.toolbar-module {
    margin: 8px 0;
    flex-grow: .5;
    border-bottom: var(--main-border);
    overflow-x: hidden;
}

.toolbar-module > div > div {
    background-color: #313335;
}

.toolbar-module > canvas {
    width: 100%;
}

.with-overlay {
    position: relative;
}

.overlay {
    position: absolute;
}

#color {

}

#color-show {
    height: var(--slider-height);
    width: 98%;
    cursor: pointer;
}

#tools {

}

#tools > a {
    opacity: .6;
    flex-grow: 0;
    margin: 4px;
    padding: 5px;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 4px;
    background-color: #313335;
}

#tools > a:hover, #menu-bar-patches a:hover {
    opacity: .95;
}

#layer-display {
    flex-direction: column;
    margin: 0;
}

.toolbar-module > div p {
    font-size: 13px;
    margin: 0 0 2px 1px;
}

.layer-item {
    cursor: pointer;
}

.layer-item-header {
    border-bottom: var(--main-border);
    margin-bottom: 4px;
}

.layer-item svg {
    fill: var(--work-txt-color);
    height: var(--slider-height);
    width: var(--slider-height);
    margin: 1px 4px;
    opacity: .2;
}

.layer-item input {
    width: 86%;
}

.layer-item .layer-control-elem {
    width: 99%;
}

.toolbar-module > div > div {
    margin-bottom: 4px;
    padding: 3px;
    border-radius: 4px;
    background-color: #313335;
    width: 100%;
    opacity: .77;
}

.toolbar-module > div > div:hover {
    opacity: 1;
}

.slider {
    -webkit-appearance: none;
    width: 98%;
    height: var(--slider-height);
    background: var(--main-panel-highlight-color);
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border: var(--main-border);
}

.stack-inner {
    position: absolute;
}

.stack-outer {
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 3px;
    height: 24px;
    background: #34fc00;
    cursor: pointer;
    z-index: 9999;
}

.slider::-moz-range-thumb {
    width: 3px;
    height: 24px;
    background: #34fc00;
    cursor: pointer;
    z-index: 9999;
}

.form-signin {
    max-width: 510px;
    padding: 15px;
    margin: 0 auto;
    color: #fff;
    text-align: center;
}

.form-signin button {
    margin: 8px 0;
}

.form-signin .form-signin-heading,
.form-signin .checkbox {
    margin-bottom: 10px;
}

.form-signin .checkbox {
    font-weight: normal;
}

.form-signin .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.selected {
    opacity: 1 !important;
    border: 1px #46a0ba solid;
}
