body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: #fff;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

h1 {
    color: #1c1e21;
    margin-bottom: 0.5rem;
}

p {
    color: #606770;
    margin-bottom: 2rem;
}

.upload-box, .result-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 2px dashed #ccd0d5;
    border-radius: 8px;
}

.upload-label {
    display: block;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #4b4f56;
}

input[type="file"] {
    display: block;
    margin: 0 auto 1rem auto;
}

#image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 1rem;
}

#image-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

button, .button {
    background-color: #1877f2;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    text-decoration: none;
    margin-top: 1.5rem;
}

button:hover, .button:hover {
    background-color: #166fe5;
}

button:disabled {
    background-color: #a0bdf5;
    cursor: not-allowed;
}

#result-canvas {
    max-width: 100%;
    border: 1px solid #ddd;
    margin-top: 1rem;
    border-radius: 4px;
}
