/* General Styles */
/* updated code */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base styling for the logo box */
.creator-logo {
    position: absolute; /* Positions it within the header without affecting other elements */
    top: 10px; /* Vertical offset from header top */
    right: 120px; /* Horizontal offset from header right (leaves space for the contact button) */
    background-color: #f0f0f0; /* Light background; customize to match your theme */
    color: #333; /* Text color */
    padding: 8px 12px; /* Internal spacing */
    border-radius: 20px; /* Rounded corners for the "box" effect */
    font-size: 14px; /* Text size */
    font-weight: bold; /* Emphasizes it as a logo */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    cursor: pointer; /* Indicates interactivity */
    transition: transform 0.3s ease; /* Smooth animation for hover */
    z-index: 10; /* Keeps it above other elements if needed */
}

/* Hover effect: Moves the box right by 20px */
.creator-logo:hover {
    transform: translateX(20px); /* Simple slide; no impact on other elements */
}
/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #6a0dad 0%, #ff1493 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 10;
    animation: fadeInDown 1s ease-out;
}

.header-title {
    margin: 0;
    font-size: 2em;
    font-weight: bold;
}

.contact-link {
    text-decoration: none;
}

.contact-btn {
    padding: 10px 20px;
    background: #00ffff;
    color: #0a0a0a;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 255, 255, 0.5);
}

/* Container */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
}

/* Sections */
.section {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #1e1e2f 0%, #2a2a4e 100%);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h3 {
    color: #ff1493;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 2px solid #ff1493;
    padding-bottom: 5px;
}

/* Forms */
.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-input {
    padding: 10px;
    border: 2px solid #333;
    border-radius: 6px;
    font-size: 1em;
    background: #2a2a4e;
    color: #e0e0e0;
    transition: border-color 0.3s ease;
}

.file-input:hover {
    border-color: #00ffff;
}

.submit-btn {
    padding: 12px;
    background: linear-gradient(135deg, #6a0dad 0%, #ff1493 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(255, 20, 147, 0.5);
}

/* Result Section */
.generated-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #333;
    border-radius: 8px;
    max-height: 400px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.download-link {
    text-decoration: none;
}

.download-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #00ff7f 0%, #32cd32 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 255, 127, 0.5);
}

/* Error Section */
.error-message {
    color: #ff4500;
    text-align: center;
    font-weight: bold;
}

/* Ghibli Section */
.ghibli-iframe {
    border: 1px solid #333;
    border-radius: 8px;
    width: 100%;
    height: 400px;
}

/* Dividers */
.divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #ff1493 50%, transparent 100%);
    margin: 20px 0;
}

/* Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    .header-title {
        font-size: 1.5em;
    }
    .section {
        padding: 15px;
    }
    .form {
        gap: 10px;
    }
}