@charset "utf-8";

/*
Styles for
Maze Maker
*/
html {
    overscroll-behavior: none;
}

body {
    margin: 0%;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    overscroll-behavior: none;
    color: #ffffff;
}


/* size Popup*/

#sizePopup {
    color: #ffffff;
    background-color: #2e2e2e;
    aspect-ratio: 3/2;
    width: 500px;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 10px;
    padding: 10px;
    overflow: hidden;

}

#sizePopup::backdrop {
    background-color: #414141cc;
}

#sizePopup form {
    height: 100%;
    width: 100%;
    padding: 0%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#sizePopup form #options {
    display: flex;
    flex-direction: row;
    flex-basis: 10px;
    flex: 5;
}

#sizePopup form #options #presets {
    display: flex;
    flex-flow: row wrap;
    flex-basis: 10px;
    flex: 5;
}

#sizePopup form #options #presets .display {
    font-size: 100%;
    flex-basis: 29%;
    height: 40%;
    margin: 0.75%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: center;
}

.demoBox {
    background-color: #ffffff;
    width: 100%;
}




#sizePopup form #options #editArea {
    display: flex;
    flex-flow: column nowrap;
    flex-basis: 10px;
    flex: 2;
    border-left: 1px solid rgb(221, 221, 221);
}

#sizePopup form #options #editArea #visualizer {
    flex: 3;
    aspect-ratio: 1;
}

#sizePopup form #options #editArea #controls {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-around;
    flex: 5;
}

#ratio .label {
    padding-left: 5%;
}

#ratio input {
    margin: 0% 5%;
    font-size: inherit;
}

.label {
    text-align: left;
    padding-left: 5%;
    flex: 1;
}

.control {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
}

.control input {
    flex: 2;
    text-align: center;
    font-size: inherit;
    margin: 0% 5%;
}

#visualizer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2%;
    padding-left: 4%;
}

#ratioButtonContainer {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
}

#ratioButtonContainer input {
    width: 25%;
    font-size: inherit;
}

input {
    background-color: #464646;
    width: 25%;
    color: #ffffff;
}

#widthHeight {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}

#switchHnW {
    padding: 10%;
    border: none;
}

#switchHnW img {
    width: 50%;
}





#sizePopup form #buttonArea {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex: 1;
    align-items: center;
    border-top: 1px solid rgb(221, 221, 221);
}

#sizePopup form #buttonArea #openArea {
    display: flex;
    justify-content: left;
    flex-basis: 10px;
    flex: 5;
}

#sizePopup form #buttonArea #createArea {
    display: flex;
    justify-content: center;
    flex-basis: 10px;
    flex: 2;
}

#sizePopup form #buttonArea #createArea .button {
    padding: 5% 20%;
    font-size: 1.5em;
}

#sizePopup form #buttonArea #openArea .button {
    margin-left: 5%;
}

.button {
    border: 1px solid rgb(255, 255, 255);
    padding: 0.75%;
    width: fit-content;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;

    transition: background-color 0.1s;
}

.button.selected2 {
    background-color: #464646;
    border: 1px solid rgb(52, 123, 255);
}


.button:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* canvas */

div#gameScreen {
    display: block;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: rgb(255, 255, 255);
    background-image:
        linear-gradient(45deg, #aaaaaa 25%, transparent 25%),
        linear-gradient(-45deg, #aaaaaa 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #aaaaaa 75%),
        linear-gradient(-45deg, transparent 75%, #aaaaaa 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

div#gameScreen canvas {
    display: block;
    margin: auto;
    image-rendering: pixelated;
}

div#gameScreen canvas#canvasInShadow {
    display: none;
    margin: 0%;
}

/* Tools */

#tools {
    height: 100%;
    position: absolute;
    left: 0px;
    top: 0px;
    background-color: #2e2e2e;
    display: none;
    width: 50px;
}

#tools img {
    aspect-ratio: 1;
    width: 90%;
    padding: 5%;

    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

#tools img:hover {
    background-color: rgba(190, 190, 190, 0.99);
}

#tools img.selected:hover {
    background-color: rgba(190, 190, 190, 0.99);
}

#tools img.selected {
    background-color: rgba(104, 104, 104, 0.99);
    padding: 0.1vw;
    margin: 0.1vw;
}

#tools button {
    width: 2vw;
    margin: 0.25vw;
}

/* modifiers */

#modifiers {
    display: flex;
    flex-flow: column nowrap;
    flex: 1;
    width: 100%;
}

#rightWorkArea {
    width: 150px;
    height: calc(100vh - 20px);
    display: none;
    position: absolute;
    right: 0px;
    top: 0px;
    background-color: #2e2e2e;
    flex-flow: column nowrap;
    padding: 10px;
}

#rightWorkArea #layers {
    flex: 1;
    height: 50%;
}

#rightWorkArea #modifiers div {

    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
}

label {
    color: inherit;
}



#modifiers canvas#Color {
    all: unset;
    box-sizing: border-box;
    width: 98%;
    aspect-ratio: 1;
    margin: 1%;
    padding: 0px;
    border: 0.05vh solid black;
    background: linear-gradient(transparent 0%, rgb(0, 0, 0) 100%), linear-gradient(to left, transparent 0%, rgb(255, 255, 255) 100%), hsl(0, 100%, 50%);
}

#modifiers input[type="range"] {
    all: unset;
    width: 100%;
    height: 3%;
    box-sizing: border-box;
    width: 98%;
    margin: 4% 1% 0% 1%;
    border:  0.05vh solid black;

}

#modifiers #ColorRange {
    background: linear-gradient(to right, rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%);
}

#modifiers #TransRange {
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);
}

#modifiers input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background-color: #00000000;
    border: 2px solid rgb(255, 255, 255);
    height: 2vh;
    width: 0.75vw;
}

#modifiers input[type="range"]::-moz-range-thumb {
    all: unset;
    background-color: #ffffff00;
    border: 1px solid rgb(255, 255, 255);
    height: 2vh;
    width: 0.5vw;
}

#modifiers input[type="range"]::-ms-thumb {
    all: unset;
    background-color: #ffffff00;
    border: 1px solid rgb(255, 255, 255);
    height: 2vh;
    width: 0.5vw;
}

#modifiers div input {
    padding: 0px;
    border: 0.05vh solid black;
    text-align: center;
}

#modifiers div {
    height: 2vw;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#import {
    display: none;
}

#ImportImage {
    display: none;
}