

:root{
    --bg: black;
    --text: white;
    --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --fontsize: 1.5vh;
    --bgfit: cover;
    --bgpos: center;
    --bgren: auto;

    --iconsy: start;
    --iconsx: start;
    --iconsize: 10vh;
    --icongap: 1vh;
    --iconlabelheight: calc(var(--fontsize) + var(--icongap));
    --iconimgradius: 1vh;
    --iconimgborder: none;

    --windowborder: 1px solid var(--text);
    --windowpadout: 10vh;
    --windowpadin: 2vh;
    --windowradius: 1vh;
}

body *{
    user-select: none;
}

.flexcen{
    display: flex;
    justify-content: center;
    align-items: center;
}.flexcenx{
    display: flex;
    justify-content: center;
}.flexceny{
    display: flex;
    align-items: center;
}

.flexy{
    display: flex;
    flex-direction: column;
}.flexx{
    display: flex;
    flex-direction: row;
}

.flexwrap{
    flex-flow: row wrap;
}.flexy.flexwrap{
    flex-flow: column wrap;
}

.rel{
    position: relative;
}.abs{
    position: absolute;
    left: 0;
    top: 0;
}



.gap{
    gap: 1vh;
}.rad{
    border-radius: 1vh;
}.pad{
    padding: 1vh;
}.mar{
    margin: 1vh;
}.ratio{
    aspect-ratio: 1;
}

.noflow{
    overflow: clip;
}

.start{
    align-items: start;
    justify-content: start;
}

input, .input{
    border: none;
    background: none;
    outline: none;
    border-bottom: 1px dashed var(--text);
    white-space: nowrap;
    min-width: 5vh;
    position: relative;
}.dashed{
    border-bottom: 1px dashed var(--text) !important;
}
input::file-selector-button{
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}



input[type=range] {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    height: 2vh;
} input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    cursor: pointer;
    height: 1vh;
    width: 1vh;
    border-radius: 1vh;
    background: var(--text);
    justify-self: center;
    margin-top: calc(-.5vh + 1px);
} input[type=range]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    width: 100%;
    height: 1px;
    cursor: pointer;
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
    background: var(--text);
    border-radius: 1.3px;
}


input.cell[type="color"]::-webkit-color-swatch-wrapper{
	padding: 0;
}
input.cell.sel[type="color"]::-webkit-color-swatch-wrapper, div.paletteCell.sel{
	padding: 1px;
    border: 1px solid var(--text);
}
input.cell[type="color"]::-webkit-color-swatch{
	border: none;
}
input.cell[type="color"]{
    min-width: initial;
}div.paletteCell{
    cursor: pointer;
    background-clip: content-box;
    transition: .2s;
    transition-property: transform, box-shadow;
}
div.paletteCell:hover{
    z-index: 2;
    box-shadow: 0 0 1vh 1px var(--bg);
    transform: scale(1.1) rotate(10deg);
}

.elemBgColor{
    background-color: var(--bg);
}.elemBgImage{
    background-image: var(--bgimage);
    background-repeat: no-repeat;
    background-position: var(--bgpos);
    background-size: var(--bgfit);
    image-rendering: var(--bgren);
    opacity: var(--bgopacity);
}

.bg{
    background: var(--bg);
}.borderb{
    border-bottom: 1px solid var(--text);
}


.btn{
    cursor: pointer;
    transition: .2s;
    transition-property: transform, opacity;
}.btn:hover{
    transform: scale(1.1);
}.fast{
    transition: .1s;
}.fast:hover{
    transform: scale(1.05);
}

*{
    font-size: var(--fontsize);
    color: var(--text);
    font-family: var(--font);
    box-sizing: border-box;
}

#menu{
    background-color: var(--bg);
    height: 100vh;
    padding: 5vh;
    gap: 1vh;

    justify-content: center;
    align-items: start;
} #menu>*{
    gap: 2vh;
}

.split{
    width: 2vw;
    height: 1px;
    background: var(--text);
    margin-bottom: 3vh;
}

#content{
    border: var(--windowborder);
    border-radius: var(--windowradius);
    height: 100%;
    padding: var(--windowpadin);

    display: flex;
    align-items: var(--iconsy);
    justify-content: var(--iconsx);
}

.screen{
    position: absolute;
    height: 100vh;
    width: 100vw;
    left: 0;
    top: 0;
}


.icons>*{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    width: var(--iconsize);
    height: var(--iconsize);
    position: absolute;
    overflow: hidden;
} .icons>* *{
    pointer-events: none;
}

.context{
    position: absolute;
    background: var(--bg);
    box-shadow: 0 0 10px -1px var(--text);
    border-radius: 1vh;
    padding-top: 1vh;
    padding-bottom: 1vh;
    display: none;
}
.context>*{
    padding: .5vh;
    padding-left: 2vh;
    padding-right: 2vh;
    position: relative;
    
}.context>div::before{
    content: '';
    pointer-events: none;
    position: absolute;
    bottom: 0;
    width: 0;
    left: 0;
    top: 0;
    
    background: var(--text);
    opacity: 0;
    transition: .2s ease-out;
    transition-property: width, opacity;
}.context>div:hover::before{
    width: 100%;
    opacity: .2;
}.context .flexceny{
    gap: 2vh;
}

.bar{
    background: var(--text);
    height: 1px;
    margin-top: 1vh;
    margin-bottom: 1vh;
    padding: 0;
}

.flexbar{
    background: var(--text);
    width: 1px;
    height: 100%;
} .flexy>.flexbar{
    height: 1px;
    width: 100%;
}

#iconSizeCells, #iconSizeCells *{
    gap: 1px;
} #iconSizeCells>*>*{
    width: 1.5vh;
    height: 1.5vh;
    opacity: .2;
    background-color: var(--text);
    transition: .1s;
    transition-property: background-color, opacity;
    border-radius: 4px;
    position: relative;
}

iframe, iframe * {
    pointer-events: all !important;
    user-select: all !important;
}

.nomouse, .nomouse * {
    pointer-events: none !important;
    user-select: none !important;
}

iframe{
    border-radius: var(--iconimgradius);
    border: var(--iconimgborder);
    border-left: 0px solid var(--text);
    transition: .1s;
    transition-property: border-left-width, border-left-style;
} iframe:hover{
    border-left-width: 10px;
}

.widgetProperty{
    padding: .2vh;
    padding-left: .5vh;
    padding-right: .5vh;
    border-radius: 3px;
}

.widgetTextArea{
    width: 100%;
    height: 100%;
    pointer-events: all;
    resize: none;
    background: none;
    border: 1px solid transparent;
    border-left-color: var(--text);
    border-radius: 1vh;
    outline: none;
    padding: 1vh;
    transition: .2s;
    transition-property: border-color;
}.widgetTextArea:hover{
    border-color: var(--text);
}

.btnIconLabel{
    gap: 1vh;
    padding: .5vh;
    position: relative;
    cursor: pointer;

    opacity: .8;
    transition: .1s;
    transition-property: opacity, transform;
}.btnIconLabel>svg{
    width: 3vh;
    height: 3vh;
}.btnIconLabel>div{
    position: absolute;
    left: 130%;
    top: 50%;
    pointer-events: none;
    opacity: 0;
    transition: .2s;
    transition-property: opacity, transform;
    transform: translate(-2vh, -50%);
}.btnIconLabel:hover>div{
    opacity: 1;
    transform: translate(0, -50%);
}.btnIconLabel:hover{
    transform: scale(1.2);
    opacity: 1;
}

.layers{
    position: relative;
}.layers>*{
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
}.full{
    width: 100%;
    height: 100%;
}
.textshadow{
    text-shadow: -1px -1px 1vh var(--bg), 1px -1px 1vh var(--bg), -1px 1px 1vh var(--bg), 1px 1px 1vh var(--bg);
}

.fg{
    flex-grow: 1;
}

t2{
    font-size: calc(var(--fontsize) * 2);
}

.noshrink>*{
    flex-shrink: 0;
}

@media (max-aspect-ratio: 10 / 9) {
    alt-flexx{
        display: flex;
        flex-direction: row;
    } alt-flexy{
        display: flex;
        flex-direction: column;
    }
}

.btnIcon{
    width: 1em;
    height: 1em;
    transform: .1s transform;
}.btnIcon.pad{
    padding: .8vh;
    width: calc(2vh + 1em);
    height: calc(2vh + 1em);
}.btnIcon:hover{
    transform: scale(1.1);
}

.gridbtnIcon{
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--grid-cell));
}.gridbtnIcon.grid3{
    --grid-cell: calc(2vh + 1em);
    width: calc(var(--grid-cell) * 3);
}


/* Scrollbar */
@-moz-document url-prefix() {
    *{
        scrollbar-width: thin;
        scrollbar-color: var(--text) transparent;
    }
}
*::-webkit-scrollbar {
    width: 3px;
} *::-webkit-scrollbar-track {
    background: transparent;
} *::-webkit-scrollbar-thumb {
    background-color: var(--text);
    border-radius: 1vh;
}




.elemCate, .elemCatePage{
    transition: .5s;
    transition-property: transform, opacity, display;
}

#elemZoomBack{
    -webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);

    pointer-events: none;
    opacity: 0;
    background: rgba(0, 0, 0, .5);

    transition: .2s;
    transition-property: opacity;
}
#elemZoomImg{
    transition: .2s;
    transition-property: transform;
}
