body {
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px;
  background-color: #f4f4f4;
}

canvas {
  height: 200px;
  border: 2px solid #333;
  aspect-ratio: 1/1;
}

.grid {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.control-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.control-button {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.control-button:hover {
  background-color: #0056b3;
}

.speed-label {
  font-weight: bold;
  margin-bottom: 10px;
}

.speed-slider {
  width: 200px;
  cursor: pointer;
}

.segment-control {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 20px 0;
  padding: 10px;
  background-color: #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.segment-control label {
  margin-right: 10px;
  font-weight: bold;
}

.segment-control input[type='number'] {
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 60px;
  margin: 0 10px;
}
