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

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.canvas-container {
    border: 2px solid #333;
}

#gameCanvas {
    background-color: #fff;
    display: block;
}

.controls-container {
    display: flex;
    flex-direction: column;
}

#scriptEditor {
    width: 300px;
    font-family: monospace;
    font-size: 14px;
    padding: 10px;
    border: 1px solid #ccc;
    resize: vertical;
}

.buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    color: white;
}

#runButton {
    background-color: #28a745; /* Verde */
}

#runButton:hover {
    background-color: #218838;
}

#resetButton {
    background-color: #dc3545; /* Rosso */
}

#resetButton:hover {
    background-color: #c82333;
}

.error {
    margin-top: 10px;
    color: red;
    font-family: monospace;
    font-weight: bold;
}

button:disabled {
    background-color: #6c757d; /* Grigio */
    cursor: not-allowed;
    opacity: 0.7;
}

#runButton:disabled:hover, #resetButton:disabled:hover {
    background-color: #6c757d;
}

.api-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.api-info code {
    background-color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}
