body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    justify-content: center;
}
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 90%;
    max-width: 900px;
}
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 100%;
}
.controls fieldset {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    flex-grow: 1;
}
.controls legend {
    font-weight: bold;
    padding: 0 5px;
}
.controls div {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.controls label {
    min-width: 150px;
}
.controls input[type="number"], .controls input[type="range"] {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.controls input[type="range"] {
    flex-grow: 1;
}
.controls button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}
.controls button:hover {
    background-color: #0056b3;
}
.controls button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
/* #simulationCanvas {
    border: 2px solid #333;
    background-color: #e9e9ff; 
    width: 100%; 
} */
#simulationCanvas {
    border: 2px solid #333;
    background-color: #e9e9ff;
    /*width: 100%; /* Keep this as is */
    box-sizing: border-box; /* Include border in width calculation */
    min-width: 600px; /* Set a minimum width */
    margin: 0 auto; /* Center the canvas */
}
.info-display {
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 100%;
}
.info-display fieldset {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
}
.info-display legend {
    font-weight: bold;
    padding: 0 5px;
}