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

.container {
    position: relative;
    max-width: 800px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

canvas {
    border: 1px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #000;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .container {
        width: 100%;
        height: 100vh;
    }

    canvas {
        width: 100%;
        height: 100%;
        border: none;
    }
}

/* UI Overlay styles */
.ui-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 5px;
    font-size: 14px;
    pointer-events: none;
}

.tool-selector {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 10px;
}

.tool-button {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid #333;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.tool-button.active {
    background-color: rgba(255, 215, 0, 0.7);
    border-color: #fff;
}
