body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 900px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.controls {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.controls button, .controls input[type="file"], .controls input[type="text"], .controls a, .controls label {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.controls button {
    background-color: #007bff;
    color: white;
}

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

.controls input[type="file"] {
    background-color: #6c757d;
    color: white;
}

.controls input[type="file"]:hover {
    background-color: #5a6268;
}

.controls input[type="text"] {
    border: 1px solid #ccc;
    color: #333;
    width: 150px;
}

.controls a {
    background-color: #28a745;
    color: white;
}

.controls a:hover {
    background-color: #218838;
}

.controls input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 45px;
    height: 45px;
    background: none;
    cursor: pointer;
    border-radius: 5px;
}

.controls input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.controls input[type="color"]::-webkit-color-swatch {
    border: 1px solid #ccc;
    border-radius: 5px;
}

canvas {
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}