body, html {
    width: 100%;
    height: 100%;
    margin: 0px;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}
:root {
    touch-action: pan-x pan-y;
    height: 100% 
  }
* {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}
/* Canvas */
#canvas, .previewCanvas { position: absolute; }
#canvas { background-color: white; }
.previewCanvas { pointer-events: none; }
/* Settings */
#panel {
    position: fixed;
    background-color: rgb(218, 218, 218);
    text-align: center;
    border-radius: 10px;
    accent-color: rgba(0, 0, 0, 0.25);
    padding: 10px;
    margin: 10px;
    width: 147.5px;
    overflow-y: scroll;
    max-height: calc(100% - 40px);
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    transition-duration: 0.25s
}
#panel::-webkit-scrollbar {
    display: none;
}
.subpanel {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
}
.subpanel-header { margin: 3.75px; }
/* Buttons */
#showpanel {
    position: fixed;
    left: 0;
    top: 0;
    width: 147.5px;
    margin: 20px;
    opacity: 50%;
    background-color: rgb(218, 218, 218);
}
#panel-clear, #panel-repo, #panel-export { margin-top: 10px; }
#panel-linewidth-add, #panel-linewidth-minus { margin-top: -10px; }
#panel-tools-linetool { margin-top: 2.5%; }
#panel-linecolor { position: relative; }
#panel-showsettings, #panel-clear { margin-top: 10px; }
#panel-tools-squaretool, #panel-tools-circletool, #panel-tools-erasetool, #panel-tools-colortool, #panel-settings-changerelease {
    margin-top: 5px;
}
/* Buttons in general */
.singlebutton, .doublebuttons {
    border-style: none;
    border-radius: 10px;
    background-color: whitesmoke;
    padding: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
    cursor: pointer;
    color: black;
}
.highlighted {
    background-color: rgb(190, 190, 190);
}
/* buttons */
.singlebutton { width: 100%; }
.doublebuttons { width: 47.5%; }
.singlebutton:active, .doublebuttons:active {
    background-color: rgb(190, 190, 190);
}
/* input */
input:focus {
    outline: none;
}
/* number input */
.numberinput {
    border-style: none;
    border-radius: 10px;
    background-color: whitesmoke;
    padding: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
    cursor: pointer;
    width: 82.5%;
    text-align: center;
    margin-bottom: 5%;
    -moz-appearance: textfield;
}
.numberinput::-webkit-outer-spin-button, .numberinput::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* sliders */
.sliderinput {
    height: 21px;
    -webkit-appearance: none;
    background: none;
    width: 100%;
}
.sliderinput::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    background: #000000;
    border-radius: 2px;
    border: 0px solid #000000;
}
.sliderinput::-webkit-slider-thumb {
    border: 0px solid #000000;
    height: 15px;
    width: 15px;
    border-radius: 8px;
    background: #FFFFFF;
    -webkit-appearance: none;
    margin-top: -6.5px;
}
.sliderinput:focus::-webkit-slider-runnable-track {
    background: #000000;
}
.sliderinput::-moz-range-track {
    width: 100%;
    height: 2px;
    background: #000000;
    border-radius: 2px;
    border: 0px solid #000000;
}
.sliderinput::-moz-range-thumb {
    border: 0px solid #000000;
    height: 15px;
    width: 15px;
    border-radius: 8px;
    background: #FFFFFF;
}
.sliderinput::-ms-track {
    width: 100%;
    height: 2px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}
.sliderinput::-ms-fill-lower {
    background: #000000;
    border: 0px solid #000000;
    border-radius: 4px;
}
.sliderinput::-ms-fill-upper {
    background: #000000;
    border: 0px solid #000000;
    border-radius: 4px;
}
.sliderinput::-ms-thumb {
    margin-top: 1px;
    border: 0px solid #000000;
    height: 15px;
    width: 15px;
    border-radius: 8px;
    background: #FFFFFF;
}
.sliderinput:focus::-ms-fill-lower {
    background: #000000;
}
.sliderinput:focus::-ms-fill-upper {
    background: #000000;
}
/* Color input */
.colorinput {
    -webkit-appearance: none;
    border-style: none;
    position: relative;
    width: 100%;
    margin-top: 10%;
    background-color: whitesmoke;
    border-radius: 8px;
}
.colorinput::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}
.colorinput::-moz-color-swatch {
    border: none;
    border-radius: 4px;
}
/* Cursor */
#cursor {
    position: fixed;
    color: white;
    mix-blend-mode: difference;
    border-style: solid;
    border-color: currentColor;
    border-width: 1px;
    border-radius: 100%;
    width: 12px;
    height: 12px;
    pointer-events: none;
}
#cursor-dot {
    position: relative;
    background-color: currentColor;
    border-radius: 100%;
    width: 4px;
    height: 4px;
    left: 4px;
    top: 4px;
}