@import url("https://fonts.googleapis.com/css2?family=Asap&display=swap");
* {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Asap", sans-serif;
  position: relative;
  width: 100vw;
  height: 100vh;
  text-align: center;
  background: radial-gradient(circle, #82707a, #24111e 100%);
}
p {
  color: white;
  position: fixed;
  font-size: 8vh;
  bottom: 5px;
  left: 0;
  right: 0;
  pointer-events: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  z-index: 2;
}
canvas {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.color-selector {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 0;
  top: 0;
  margin: 0.2em;
  z-index: 2;
}
[type="radio"] {
  display: none;
}
[type="radio"]:checked + label:before {
  box-shadow: 0px 0px 0px 2px #f9f9f9, 0 0 0 4px #cacaca;
}
label {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0.7em 0px;
  padding: 0;
  cursor: pointer;
  font-size: 0.7em;
}
label:before {
  display: inline-block;
  content: "";
  background: var(--c-bg);
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  margin-right: 0.3em;
}
label[for="selectcolor"] {
  --c-bg: var(--selectcolor);
}
label[for="random"] {
  --c-bg: var(--random);
}
label[for="clear"] {
  --c-bg: var(--clear);
}
input[type="color"] {
  width: 2.5em;
  height: 2.5em;
  border: none;
  opacity: 0;
}
label[for="selectcolor"]:after {
  position: absolute;
  bottom: 0.4em;
  right: 0.1em;
  content: "";
  width: 2em;
  height: 2em;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url(https://happy358.github.io/Images/Icon/color_circle.png);
}