* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
}
body {
  font-family: "poppins", serif, sans-serif;
}

main {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

canvas {
  width: 100%;
  height: 100%;
  transition: all ease 0.4s;
  border: 1px solid black;
  overflow: hidden;
  background-color: #ffffff;
  background-image: radial-gradient(#e2e2e2 1.5px, transparent 1.5px);
  background-size: 18px 18px; /* Controls spacing between dots */
  cursor: pointer;
}
.toolbox {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 4px;
  border: 1px solid rgb(182, 182, 182);
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.toolbox > * {
  font-size: 18px;
  background-color: #f4f4f4;
  width: 50px;
  height: 40px;
  /* padding: 10px 12px; */
  text-align: center;
  margin: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  overflow: hidden;
  border: none;
  cursor: pointer;
  transition: all ease 0.3s;

  &:hover {
    background-color: #cecece;
  }
  &:active {
    scale: 0.9;
  }
}
.toolbox #size {
  font-size: 16px;
}
.toolbox #color {
  padding: 6px 8px;
}

@media (max-width: 800px) {
  .toolbox {
    /* width: 80%; */
    flex-direction: row;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px;
  }
  .toolbox>* {
    /* width: 40%; */
    padding: 4px 8px;
    font-size: 18px;
    margin: 5px;
  }
}
