html, body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100vh;
}
.container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.tools {
  position: absolute;
  bottom: 20px;
  border-radius: 8px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 3px 12px 0 rgba(199, 199, 199, 0.61);
  display: flex;
  justify-content: space-between;
  padding: 5px;
  background: #ffffff;
}
.tools [data-tool]:nth-child(1) {
  margin-right: 5px;
}

.tools [data-tool] svg {
  pointer-events: none;
}

.tools [data-tool] {
  border-radius: 6px;
  height: 50px;
  width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all ease-in-out .2s;
}
.tools [data-tool].active {
  background: #8b08f2;
}
.tools [data-tool].active svg {
  fill: #fff;
}

.xy-input {
  display: flex;
  max-width: 160px;
  height: 100%;
  gap: 5px;
}

.xy-input input {
  width: 45%;
  border: 2px solid black;
  border-radius: 8px;
}

.container canvas {
  position: absolute;
  left: 0;
  top: 0;
}