* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
}

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

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

h2 {
    margin-bottom: 15px;
    color: #444;
    font-size: 18px;
}

.upload-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.upload-column {
    flex: 1;
    min-width: 250px;
}

input[type="file"] {
    margin-bottom: 15px;
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.image-preview {
    width: 100%;
    min-height: 200px;
    border: 1px dashed #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
    font-family: monospace;
    margin-bottom: 15px;
}

.text-settings {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
}

.setting-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.setting-group label {
    flex: 0 0 80px;
    font-size: 14px;
}

.setting-group .slider {
    flex: 1;
    margin: 0 10px;
}

.setting-group span {
    width: 50px;
    text-align: right;
    font-size: 14px;
}

input[type="color"] {
    width: 40px;
    height: 25px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.font-select {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    font-size: 14px;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #45a049;
}

.secondary-btn {
    background-color: #3498db;
    width: 100%;
}

.secondary-btn:hover {
    background-color: #2980b9;
}

#downloadAllBtn {
    background-color: #ff9800;
}

#downloadAllBtn:hover {
    background-color: #f57c00;
}

.results-section h2 {
    margin-bottom: 15px;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.preview-note {
    grid-column: 1 / -1;
    text-align: center;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.result-item {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
}

.result-item h3 {
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
}

.result-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-bottom: 10px;
}

.download-btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s;
    font-size: 13px;
}

.download-btn:hover {
    background-color: #2980b9;
}

@media (max-width: 1400px) {
    .results-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .results-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .upload-section {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .results-container {
        grid-template-columns: repeat(2, 1fr);
    }
} 