body {
  margin: 0;
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f0f0;
  color: #333;
}

#canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#controls {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgb(255, 255, 255);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 320px;
  z-index: 100;
}

h3 {
  margin-top: 15px;
  margin-bottom: 8px;
  color: #2c3e50;
  font-size: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

button {
  margin: 5px;
  padding: 8px 12px;
  cursor: pointer;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 14px;
}

button:hover {
  background-color: #e0e0e0;
}

.active-button {
  background-color: #3498db;
  color: white;
  border: 1px solid #2980b9;
}

#instructions {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.85);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  z-index: 100;
}

input[type="range"] {
  width: 150px;
  margin: 10px 10px 10px 0;
  vertical-align: middle;
}

label {
  font-size: 14px;
  color: #444;
}

span {
  display: inline-block;
  width: 40px;
  text-align: right;
  font-size: 14px;
  color: #666;
}

p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.5;
}

.shape-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  min-width: 140px;
}

select:focus {
  outline: none;
  border-color: #2662ff;
  box-shadow: 0 0 0 2px rgba(38, 98, 255, 0.2);
}
