* {
	margin: unset;
	padding: unset;
}

::-webkit-scrollbar {
	width: 5px;
	height: 5px;
}
::-webkit-scrollbar-button {
	width: 0px;
	height: 0px;
}
::-webkit-scrollbar-thumb {
	background: #551f9b;
	border: 0px none #ffffff;
	border-radius: 50px;
}
::-webkit-scrollbar-thumb:hover {
	background: #462173;
}
::-webkit-scrollbar-thumb:active {
	background: #462173;
}
::-webkit-scrollbar-track {
	background: #9b9b9b;
	border: 0px none #ffffff;
	border-radius: 50px;
}
::-webkit-scrollbar-track:hover {
	background: #4f4f4f;
}
::-webkit-scrollbar-track:active {
	background: #333333;
}
::-webkit-scrollbar-corner {
	background: transparent;
}

body {
	width: 100vw;
	height: 100vh;
	position: relative;
	overflow: hidden;
	font-family: Arial, Helvetica, sans-serif;
	padding: 0;
	margin: 0;
}

header {
	font-weight: bold;
	user-select: none;
	font-size: 14px;
	color: aliceblue;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 60px;
	background-color: rgb(85, 31, 155);
	filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

main {
	display: flex;
	height: calc(100vh - 60px);
}

canvas {
	width: 2000px;
	height: 2000px;
}

#menu-button {
	user-select: none;
	position: absolute;
	font-size: 35px;
	display: flex;
	justify-content: center;
	color: aliceblue;
	cursor: pointer;
	right: 10px;
	top: 70px;
	width: 50px;
	height: 50px;
	background-color: rgb(85, 31, 155);
	border: unset;
	border-radius: 10px;
	filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
	transition: all 0.3s ease;
}

#menu-button.visible {
	right: 310px;
}

#menu {
	user-select: none;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	color: aliceblue;
	box-sizing: border-box;
	position: absolute;
	align-self: flex-end;
	right: -100%;
	top: 60px;
	width: 300px;
	height: calc(100vh - 60px);
	filter: drop-shadow(-2px 2px 2px rgba(0, 0, 0, 0.5));
	background-color: rgb(133, 86, 194);
	transition: all 0.3s ease;
	padding: 20px;
	padding-top: 0;
}

#menu.visible {
	right: 0px;
}

#menu h2 {
	text-align: center;
	margin-block: 1em;
}

#menu button {
	all: unset;
	color: aliceblue;
	font-weight: bold;
	cursor: pointer;
	background-color: rgb(113, 68, 172);
	text-align: center;
	padding-block: 10px;
	margin-inline: 15px;
	border-radius: 10px;
	filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.623));
	transition: all 0.2s ease;
}

#menu button:hover {
	background-color: rgb(100, 55, 158);
}

#menu button.reset {
	background-color: rgb(212, 36, 36);
}

#menu button.reset:hover {
	background-color: rgb(158, 16, 16);
}

#menu .checkbox {
	display: flex;
	color: aliceblue;
	font-weight: bold;
	text-align: center;
	padding-bottom: 20px;
	margin-inline: 18px;
	gap: 10px;
}

#menu input[type="checkbox"] {
	-ms-transform: scale(1.4); /* IE */
	-moz-transform: scale(1.4); /* FF */
	-webkit-transform: scale(1.4); /* Safari and Chrome */
	-o-transform: scale(1.4); /* Opera */
	transform: scale(1.4);
}

#color-selector {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(5, 1fr);
	grid-column-gap: 20px;
	grid-row-gap: 20px;
}

#color-selector > div {
	box-sizing: border-box;
	cursor: pointer;
	height: 40px;
	border-radius: 5px;
	border: 2px solid rgb(85, 31, 155);
	filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
	transition: all 0.2s ease;
}

#color-selector > div:hover {
	scale: 1.1;
}

#color-selector > div.selected {
	scale: 1.1;
	filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
	border-color: rgb(255, 255, 255);
	border-width: 3px;
}

.aqua-button {
	height: 100%;
	width: 100%;
	background-color: aqua;
	grid-area: 1 / 1 / 2 / 2;
}

.fuchsia-button {
	height: 100%;
	width: 100%;
	background-color: fuchsia;
	grid-area: 1 / 2 / 2 / 3;
}

.lime-button {
	height: 100%;
	width: 100%;
	background-color: lime;
	grid-area: 1 / 3 / 2 / 4;
}

.orange-button {
	height: 100%;
	width: 100%;
	background-color: orange;
	grid-area: 2 / 1 / 3 / 2;
}

.pink-button {
	height: 100%;
	width: 100%;
	background-color: pink;
	grid-area: 2 / 2 / 3 / 3;
}

.purple-button {
	height: 100%;
	width: 100%;
	background-color: purple;
	grid-area: 2 / 3 / 3 / 4;
}

.red-button {
	height: 100%;
	width: 100%;
	background-color: red;
	grid-area: 3 / 1 / 4 / 2;
}

.silver-button {
	height: 100%;
	width: 100%;
	background-color: silver;
	grid-area: 3 / 2 / 4 / 3;
}

.teal-button {
	height: 100%;
	width: 100%;
	background-color: teal;
	grid-area: 3 / 3 / 4 / 4;
}

.yellow-button {
	height: 100%;
	width: 100%;
	background-color: yellow;
	grid-area: 4 / 1 / 5 / 2;
}

.blue-button {
	height: 100%;
	width: 100%;
	background-color: blue;
	grid-area: 4 / 2 / 5 / 3;
}

.green-button {
	height: 100%;
	width: 100%;
	background-color: green;
	grid-area: 4 / 3 / 5 / 4;
}

.gray-button {
	height: 100%;
	width: 100%;
	background-color: gray;
	grid-area: 5 / 1 / 6 / 2;
}

.maroon-button {
	height: 100%;
	width: 100%;
	background-color: maroon;
	grid-area: 5 / 2 / 6 / 3;
}

.navy-button {
	height: 100%;
	width: 100%;
	background-color: navy;
	grid-area: 5 / 3 / 6 / 4;
}
