html, body {
    height: 100%;
    margin: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

canvas {
    border: 2px solid #333;
    background-color: white;
    display: block;
    max-width: 95vw;
    max-height: 95vh;
}

.controls {
    position: fixed;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-family: Arial, sans-serif;
}

.control-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 6px 8px;
    font-size: 14px;
}

.control-field input[type="number"] {
    width: 68px;
    padding: 5px 6px;
    border: 1px solid #aaa;
    border-radius: 4px;
}

.controls button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.controls button:hover {
    background-color: #45a049;
}

.controls button:active {
    background-color: #3d8b40;
}
