:root {
    --div-bg: white;
    --body-bg: grey;
    --div-border: grey;
}

* {
    font-family: Verdana, "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    color: black;
    box-sizing: border-box;
}

body,
html {
    background-color: var(--body-bg);
    padding: 0xp;
    margin: 0px;
    overflow: hidden;
}

img {
    margin-top: 0.2ch;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

canvas {
    image-rendering: pixelated;
    position: absolute;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

div {
    transition: 0.3s;
    cursor: pointer;
}

div#zoom {
    cursor: unset;
    margin: auto;
    height: 100vh;
    width: 100vh;
}

div#download {
    z-index: 99;
    background-color: var(--div-bg);
    border: 2px var(--div-border) solid;
    border-radius: 4ch;
    position: absolute;
    margin: 2% 2%;
    width: 4ch;
    height: 4ch;
    left: 0;
    top: 0;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

div#download:hover {
    background-color: black;
}

div#download img {
    height: 2.5ch;
    width: auto;
    margin-top: -2px;
}

div#download a#dwn {
    display: none;
}

div#coords {
    cursor: unset;
    z-index: 99;
    padding: 4px 10px;
    background-color: var(--div-bg);
    border: 2px var(--div-border) solid;
    border-radius: 9ch;
    width: 9ch;
    text-align: center;
    position: absolute;
    margin: 2% auto;
    left: 0;
    right: 0;
    top: 0;
}

div#hide {
    z-index: 99;
    background-color: var(--div-bg);
    border: 2px var(--div-border) solid;
    border-radius: 4ch;
    position: absolute;
    margin: 2% 2%;
    width: 4ch;
    height: 4ch;
    right: 0;
    top: 0;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

div#hide:hover {
    background-color: black;
}

div#hide img {
    width: 3ch;
    height: 3ch;
}

div#change {
    cursor: unset;
    z-index: 99;
    position: absolute;
    bottom: -10ch;
    width: 100%;
    height: 10ch;
}

div#cooldown{
    display: none;
    padding: 10px 10px;
    background-color: var(--div-bg);
    border: 2px var(--div-border) solid;
    border-radius: 9ch;
    width: 10ch;
    text-align: center;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
}

div#submit {
    top: 0;
    width: 9ch;
    width: 100%;
    height: 5ch;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
}

div#yes,
div#no {
    width: 4ch;
    height: 4ch;
    background-color: var(--div-bg);
    border: 2px var(--div-border) solid;
    border-radius: 4ch;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1ch;
    margin-right: 1ch;
}

div#yes:hover {
    background-color: green;
}

div#no:hover {
    background-color: red;
}

div#no:hover img,
div#yes:hover img,
div#hide:hover img ,
div#download:hover img {
    -webkit-filter: invert(1);
    filter: invert(1);
}

div#yes img {
    width: 3ch;
    height: 3ch;
}

div#no img {
    width: 2ch;
    height: 2ch;
}

div#colors {
    cursor: unset;
    background-color: var(--div-bg);
    border: 2px var(--div-border) solid;
    border-radius: 15px 15px 0px 0px;
    bottom: 0;
    width: 100%;
    height: 5ch;
    display: inline-flex;
    justify-content: space-evenly;
    align-items: center;
}

input[type="color"] {
	width: 100%;
    height: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    padding: 0px;
}

input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}

input[type="color"]::-webkit-color-swatch {
	border: none;
}

div.clr {
    margin: 0;
    width: 5%;
    height: 3ch;
    border: 1px black solid;
}

div.selectedcolor {
    border-width: 5px;
}

div#black {
    background-color: black;
}

div#silver {
    background-color: silver;
}

div#gray {
    background-color: gray;
}

div#white {
    background-color: white;
}

div#maroon {
    background-color: maroon;
}

div#red {
    background-color: red;
}

div#orange {
    background-color: orange;
}

div#purple {
    background-color: purple;
}

div#fuchsia {
    background-color: fuchsia;
}

div#green {
    background-color: green;
}

div#lime {
    background-color: lime;
}

div#olive {
    background-color: olive;
}

div#yellow {
    background-color: yellow;
}

div#navy {
    background-color: navy;
}

div#blue {
    background-color: blue;
}

div#teal {
    background-color: teal;
}

div#aqua {
    background-color: aqua;
}