body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
}

.container {
    margin: 20px auto;
    max-width: 500px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.predefined-images {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.predefined-images label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.predefined-images img {
    width: 80px;
    height: auto;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border 0.3s ease;
}

.predefined-images input:checked + img {
    border: 2px solid #007BFF;
}

.upload-section {
    margin-bottom: 20px;
}

label {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

input[type="file"] {
    display: none;
}

canvas {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.progress-container {
    width: 100%;
    background-color: #eee;
    border-radius: 4px;
    margin: 10px auto;
    height: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #28a745;
    width: 0;
    transition: width 0.4s ease;
}

button {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background-color: #218838;
}
