body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f0f0;
  overflow: hidden; /* Prevent scrolling issues when zooming */
}

canvas {
  border: 1px solid #000;
  width: 100%; /* Make the canvas take the full width of its container */
  height: auto; /* Maintain aspect ratio automatically */
  max-width: 100vw; /* Ensure it doesn't exceed the viewport width */
  max-height: 100vh; /* Ensure it doesn't exceed the viewport height */
  box-sizing: border-box; /* Ensure the border is included in the width and height */
}

button {
  width: 100%;
  height: 50px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #f5f5f5;
}

.button-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 220px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.button-container button,
.button-container input,
.button-container select,
.button-container a {
  margin-bottom: 10px;
}

.button-container input,
.button-container select {
  width: 100%;
  height: 50px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0 12px;
  box-sizing: border-box;
  background-color: #fff;
}

.button-container input:focus,
.button-container select:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.button-container a.turn-into-3d-btn {
  display: block;
  width: 100%;
  height: 50px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  transition: background-color 0.2s;
  box-sizing: border-box;
}

.button-container a.turn-into-3d-btn:hover {
  background-color: #f5f5f5;
}
