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

body {
  background-color: #e9ecef;
  font-family: sans-serif, serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
}

canvas {
  border: 3px solid #4a90e2;
  background-color: #ffffff;
  cursor: crosshair;
  max-width: 100%;
  height: auto;
}

.toolbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #4a90e2;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
}

.toolbox > * {
  background-color: #e9e4e4;
  border: none;
  /* color: #4a90e2; */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  height: 40px;
  width: 40px;
  margin: 0.25rem 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.toolbox > *:hover {
  transform: scale(1.1);
  background-color: #8bc2e7;
}

.toolbox > input {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  cursor: pointer;
}

.toolbox > span {
  font-size: 1.2rem;
  font-weight: bold;
  color: #000000;
  padding: 0 0.5rem;
}

@media (max-width: 768px) {
  .toolbox {
    display: flex;
    flex-wrap: wrap;
  }
  .toolbox > * {
    margin: 0.2rem;
  }
}
