:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --border-color: #ddd;
    --hover-color: #357abd;
    --error-color: #ff4444;
    --success-color: #4caf50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
    padding-left: 1rem;
    padding-right: 1rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}


header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

header p {
    color: #666;
    font-size: 1.1rem;
}

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

.upload-box {
    background-color: white;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    font-size: 2.5rem;
    line-height: 1;
    display: inline-block;
}

.upload-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
}

.upload-content p {
    color: #666;
}


.editor-container {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.image-preview {
    margin-bottom: 2rem;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    object-fit: contain;
}

.controls-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.color-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-picker label {
    font-weight: 500;
    min-width: 80px;
}

.color-picker input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.btn.primary:hover {
    background-color: var(--hover-color);
}

.btn.secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

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

.btn.outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn.outline:hover {
    background-color: var(--secondary-color);
}

.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--secondary-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

    header h1 {
        font-size: 2rem;
    }

    .upload-box {
        padding: 2rem 1rem;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Update the samples section styling */
.samples {
    text-align: center;
    margin-top: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.samples h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.sample-images {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.sample-images img {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sample-images img:hover {
    transform: scale(1.05);
}

/* Update responsive styles */
@media (min-width: 640px) {
    .sample-images img {
        width: 64px;
        height: 64px;
    }
}

/* Add these styles */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

.button-group .btn {
    flex: 1;
    max-width: 200px;
}

/* Update the controls class */
.controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
    width: 100%;
} 

#text{
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

}

#footer{
    margin-top: 4rem;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
  font-size: 1rem;
}
a {
    color: #0066cc;
}

#text p{
    color: #666;
}

#text h2{
    margin-top: 1rem;
}

#logo{

    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 244px;
}