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

.container {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.hero {
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
}

.hero a {
    color: #007aff;
    text-decoration: none;
}

.hero a:hover {
    text-decoration: underline;
}

.upload-container {
    margin-bottom: 2rem;
}

#image-input {
    display: none;
}

.upload-label {
    background-color: #007aff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.upload-label:hover {
    background-color: #005bb5;
}

.preview-container {
    margin-bottom: 2rem;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 1rem;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#canvas {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
}

progress {
    width: 80%;
    margin-top: 1rem;
    height: 8px;
    border-radius: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    background-color: #eef0f3;
}

progress::-webkit-progress-bar {
    background-color: #eef0f3;
    border-radius: 4px;
}

progress::-webkit-progress-value {
    background-color: #007aff;
    border-radius: 4px;
    transition: width 0.3s ease;
}

progress::-moz-progress-bar {
    background-color: #007aff;
    border-radius: 4px;
}


.btn {
    background-color: #34c759;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #2ca34a;
    transform: translateY(-2px);
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 600px) {
    .container {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}
