body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: whitesmoke;
    background-color: whitesmoke;
    user-select: none;
    accent-color: #ffa500;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    color: whitesmoke;
    margin: 0;
}

h1 {
    font-size: 1.25rem;
}

p, ul, li, a, div {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6, ul, li, li a p, footer {
    text-decoration: none;
}

div {
    background-color: #151515;
}

a {
    text-decoration: none;
    color: whitesmoke;
}

.button {
    cursor: pointer;
    text-align: center;
    border-radius: 0.25rem;
}

.disabled {
    opacity: 50% !important;
    cursor: default !important;
    user-select: none !important;
}

.layout {
    width: 100vw;
    height: 100vh;

    display: grid;
    grid:
        "header header header" auto
        "leftSide body rightSide" 1fr
        "leftSide footer rightSide" 1fr
        / auto 1fr auto;
    gap: 0.1rem;
}

.header { grid-area: header; }
.leftSide { grid-area: leftSide; }
.body { grid-area: body; }
.rightSide { grid-area: rightSide; }
.footer { grid-area: footer; }

.headerLayout {
    width: 100%;

    display: flex;
    gap: 16px;
}

.headerLayout :not(.marginLeft) {
    padding-left: 0.5rem;
}

.headerLayout .marginLeft {
    padding-right: 0.5rem;
}

.headerLayout :not(:last-child).windowLabel {
    border-right: 0.1rem whitesmoke solid;
    padding-left: 1rem;
}

.headerLayout .windowLabel {
    padding-right: 1rem;
    border-radius: 0 !important;
}

.toolLayout {
    width: 100%;

    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.marginLeft { margin-left: auto; }

#canvas {
    touch-action:none;
    width: 100%;
    height: 100%;
}

#canvasContainer {
    width: 100%;
    height: 100%;
}  

.header div {
    height: 2rem;
    line-height: 2rem;
}

.headerLayout {
    border-bottom: 0.1rem whitesmoke solid;
}

.dropdown {
    display: inline-block;
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    width: 5rem;
    margin: 0 !important;
    padding: 0 !important;
    border: 0.1rem whitesmoke solid;
    border-top: 0.1rem whitesmoke solid;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:focus .dropdown-content {
    display: block;
}

.dropdown:focus-within .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: whitesmoke;
    text-decoration: none;
    text-align: center;
    padding: 0 !important;
    margin: 0 !important;
}

.dropdown-content a:hover {
    color: rgba(245, 245, 245, 0.75);
}

dialog {
    border-radius: 1rem;
    background-color: #151515;
    border: 0.1rem whitesmoke solid;
    user-select: none;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.25);
}

button {
    cursor: pointer;
    color: whitesmoke;
    background-color: #151515;
    border: #ffa500 0.1rem solid;
    border-radius: 1rem;
}

input {
    color: whitesmoke;
    background-color: #151515;
    border: #ffa500 0.1rem solid;
    border-radius: 1rem;
}

input[type="color"] {
    border: 0;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch {
    border: #ffa500 0.1rem solid;
    border-radius: 1rem;
}

input[type="file"]::after {
    display: none;
}

.clr-dark {
    background-color: #151515 !important;
}

.clr-field button {
    display: none;
}

input[type="color"]::-moz-color-swatch {
    border: #ffa500 0.1rem solid;
    border-radius: 1rem;
}

input[type="number"]::-webkit-outer-spin-button, 
input[type="number"]::-webkit-inner-spin-button {
    opacity: 0;
}

input[type="number"]:not(.disabled):hover::-webkit-outer-spin-button, 
input[type="number"]:not(.disabled):hover::-webkit-inner-spin-button {
    appearance: none;
    background: #ffa500 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAAXNSR0IArs4c6QAAAHJJREFUKFNtUIENwCAIKz/A/wfCDywFdLqMmGhKaYsCCCDJg4TAVDPCiaCRZhQJCZhZ8k4Bwl2G95JULYWM6nR5uHD+Utrd9RiTJo03dZbFObCVJlb1eqzrCm5qje9YCY+omJ/ttCDyfrdb+vwG5/qH7wOwDjoOD+rUtwAAAABJRU5ErkJgggAA) no-repeat center center;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1em;
    opacity: 1;
}

input[type="file"] {
    display: none;
}