body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f4f4f4;
}

h1 {
    color: #333;
}

.controls {
    background-color: #eee;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.control-group {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 10px; /* Spacing between elements */
}

.control-group label {
    margin-right: 5px;
}

.control-group input[type="number"],
.control-group input[type="text"],
.control-group select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.control-group input[type="number"] {
    width: 60px;
}


button {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}


#lifeCanvas {
    border: 1px solid #aaa;
    background-color: #fff;
    cursor: pointer;
    /* Make sure it doesn't have extra space below */
    display: block;
}

.error {
    color: red;
    font-size: 0.9em;
    margin-left: 10px;
}