/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ------------------------------------------ */

body {
    min-height: 100vh;
    background-color: #0c0c29;
    /* This sets the base color similar to what's seen in your image */
    background-image: linear-gradient(90deg, #33383e 2px, transparent 2px),
        linear-gradient(180deg, #33383e 2px, transparent 2px);
    background-size: 30px 30px;
    /* This sets the size of each square in the grid */
    background-position: 9px 6px;
    /* This sets the position of the grid */
    position: relative;
    overflow: hidden;
}

.flexColumn {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    max-height: 100vh;
}

.flexRow {
    display: flex;
    flex-direction: row;
    gap: 5px;
    flex-grow: 1;
    width: 100%;
    align-items: stretch;
}

h1 {
    font-size: 4rem;
    font-family: 'Flipnote';
    color: #6f00ff;
    text-wrap: nowrap;
    padding-bottom: 0.5rem;
}

#title {
    z-index: 0;
    max-width: 100vw;
    overflow: hidden;
    margin-left: 0.5rem;
}

.scrollWrapper {
    padding: 0.75rem 0.5rem;
    position: absolute;
    top: 2px;
    left: 0;
    right: -7px;
    bottom: 3px;
    overflow-y: scroll;
    overflow-x: hidden;
}

#controlPanel {
    /* min-width: 225px;
    width: 225px; */
    background-color: #2a2928;
    color: white;
    border-radius: 10px;
    border: #6f00ff 7px solid;
    z-index: 1;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    bottom: 0rem;
}

::-webkit-scrollbar-corner {
    display: none;
}

/* width */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
    position: relative;

}

/* Track */
::-webkit-scrollbar-track {
    background: #6f00ff;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgb(255, 231, 0);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #c72d07;
}

.scrollWrapper>* {
    display: block;
    width: 100%;
    transition: 0.25s;
}

.scrollWrapper>:not(:last-child) {
    @media screen and (min-height: 768px) {
        margin-bottom: 10px;
    }
}

.pillar {
    height: 100vh;
}

.controlPanelFlexWrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    flex-grow: 1;
    width: 100%;
}

.row {
    display: flex !important;
    flex-direction: row;
    gap: 5px;
    align-items: flex-start;
}

.row>button {
    width: 50%;

}

b {
    font-weight: bold;
}

#canvasFlexWrapper {
    flex-grow: 1;
    position: relative;
}

#canvasOverflowWrapper {
    border: #6f00ff 7px solid;
    border-radius: 10px;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    bottom: 0.5rem;
    background-color: #2a2928;
}

#canvasScrollWrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: -6px;
    bottom: -6px;
    overflow: auto;
}

#backLink {
    font-size: 1.5rem;
    padding: 1rem 3rem;
}

#backLink a {
    color: #6f00ff;
    text-decoration: none;
}

#backLink a:hover {
    text-decoration: underline;
}

#backLink a:visited {
    color: #6f00ff;
}

.btn {
    padding: 0.5rem 0;
    background-color: #6f00ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.25s;
    font-size: 1rem;
}

.btn:hover {
    background-color: #86bc3b;
}

.btn.green {
    background-color: #86bc3b;
}

.btn.green:hover {
    background-color: #002fff;
}

.btn.active {
    background-color: #86bc3b;
}

.btn.active:hover {
    background-color: #6f00ff;
}

#upload {
    min-height: 22px;
}

.quantize {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.quantize>p {
    width: 100%;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: 0.25s;
    font-size: 1rem;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    text-shadow: black 1px 1px 1px;
}

.colorContainer {
    background-color: purple;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.quantize:hover .colorContainer {
    scale: 1.1;
    filter: brightness(0.9) blur(1px);
    transition: 0.25s;
}

span.red {
    background-color: rgb(255, 16, 16);
    height: 100%;
    flex-grow: 1;
}

span.green {
    background-color: rgb(0, 134, 49);
    height: 100%;
    flex-grow: 1;
}

span.blue {
    background-color: rgb(0, 56, 205);
    height: 100%;
    flex-grow: 1;
}

span.yellow {
    background-color: rgb(255, 231, 0);
    height: 100%;
    flex-grow: 1;
}

span.white {
    background-color: rgb(255, 255, 255);
    height: 100%;
    flex-grow: 1;
}

span.black {
    background-color: rgb(0, 0, 0);
    height: 100%;
    flex-grow: 1;
}