body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1, h2 {
    text-align: center;
    color: #2c3e50;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: bold;
}

select, textarea, input[type="number"], input[type="color"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

textarea {
    resize: vertical;
}

.settings-row {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.settings-row > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

#bg-preview-container {
    margin-top: 10px;
    text-align: center;
}

#bg-preview {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 12px 24px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
    align-self: center;
    width: 100%;
}

button:hover {
    background-color: #2980b9;
}

.result-area {
    text-align: center;
    margin-top: 20px;
}

#result-image {
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.hidden {
    display: none;
}

#loading {
    font-size: 18px;
    color: #7f8c8d;
    margin: 20px 0;
}

#download-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}

#download-link:hover {
    background-color: #2ecc71;
}
