body {
  font-family: Arial, sans-serif;
  margin: 20px;
  text-align: center;
}

#controls {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.control-group {
  margin: 10px;
}

input[type="text"],
input[type="number"] {
  padding: 5px;
  font-size: 1em;
}

button {
  padding: 5px 10px;
  font-size: 1em;
}

#error {
  color: red;
  margin-top: 10px;
}

#values, #cellInfo {
  margin-top: 10px;
  font-weight: bold;
}

/* Highlight invalid input */
input.error {
  border: 2px solid red;
}

#canvas {
  border: 1px solid #ccc;
  max-width: 100%;
  height: auto;
}

/* Supported functions styling */
#supported-functions {
  margin-top: 30px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#supported-functions h2 {
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

#supported-functions ul {
  list-style-type: disc;
  margin-left: 20px;
}
