/* Dark & Attractive Blue Theme */

body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #0a2342 0%, #232946 100%);
    min-height: 100vh;
    transition: background 0.3s;
    color: #eaeaea;
    position: relative;
}
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    opacity: 0.13;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    z-index: 0;
}

.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    z-index: 1;
}

.container {
    padding: 40px 28px;
    border: 2px solid #1e3a5c;
    width: 50%;
    max-width: 520px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(30, 58, 92, 0.35), 0 2px 8px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(20, 34, 56, 0.98);
    background-repeat: no-repeat;
    background-size: cover;
    color: #eaeaea;
    transition: box-shadow 0.3s, border 0.3s;
    position: relative;
}
.container:hover {
    box-shadow: 0 16px 48px rgba(52, 144, 220, 0.22);
    border-color: #3be8ff;
}

.heading {
    color: #3be8ff;
    font-size: 2.2rem;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(59,232,255,0.10);
}

.headings-container {
    text-align: center;
    color: #eaeaea;
    margin-bottom: 18px;
}

.sub-heading {
    color: #7ecbff;
    font-size: 1.05rem;
    margin-bottom: 18px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.form-controls {
    padding: 14px;
    border-radius: 8px;
    border: 1.5px solid #1e3a5c;
    margin-bottom: 14px;
    width: 100%;
    font-size: 1.05rem;
    background: #232946;
    color: #eaeaea;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 1px 4px rgba(59,232,255,0.04);
}
.form-controls::placeholder {
    color: #7ecbff;
    opacity: 0.8;
}
.form-controls:focus {
    outline: none;
    border: 2px solid #3be8ff;
    background: #232946;
    box-shadow: 0 2px 8px rgba(59,232,255,0.13);
}

.image-generate-btn {
    background: linear-gradient(90deg, #3be8ff 60%, #1e3a5c 100%);
    cursor: pointer;
    color: #0a2342;
    border: none;
    padding: 13px 32px;
    border-radius: 8px;
    font-size: 1.13rem;
    font-weight: 700;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(59,232,255,0.10);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}
.image-generate-btn::after {
    content: "";
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(59,232,255,0.08);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.image-generate-btn:hover::after,
.image-generate-btn:focus::after {
    opacity: 1;
}
.image-generate-btn:hover,
.image-generate-btn:focus {
    background: linear-gradient(90deg, #232946 60%, #3be8ff 100%);
    color: #3be8ff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px rgba(59,232,255,0.18);
}

#imageContainerText {
    color: #eaeaea;
    font-size: 1.13rem;
    margin-bottom: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.image-container {
    margin: 44px 0 0 0;
    display: none;
    text-align: center;
    animation: fadeIn 0.7s;
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}

.my-generated-image {
    width: 100%;
    max-width: 440px;
    height: 340px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(59,232,255,0.13);
    border: 2.5px solid #3be8ff;
    transition: box-shadow 0.2s, border 0.2s;
    margin-bottom: 18px;
    background: #232946;
}
.my-generated-image:hover {
    box-shadow: 0 12px 40px rgba(59,232,255,0.18);
    border-color: #fff;
}

#download-btn {
    margin-top: 10px;
    padding: 11px 28px;
    font-size: 1.05rem;
    border-radius: 7px;
    background: linear-gradient(90deg, #3be8ff 60%, #1e3a5c 100%);
    color: #0a2342;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59,232,255,0.10);
    transition: background 0.2s, transform 0.2s, color 0.2s;
    text-decoration: none;
    display: inline-block;
}
#download-btn:hover,
#download-btn:focus {
    background: linear-gradient(90deg, #1e3a5c 60%, #3be8ff 100%);
    color: #3be8ff;
    transform: translateY(-2px) scale(1.04);
}

@media screen and (max-width: 920px) {
    .container {
        width: 95%;
        max-width: 99vw;
        padding: 20px 8px;
    }
    .my-generated-image {
        width: 100%;
        height: 220px;
    }
}

@media screen and (max-width: 600px) {
    .container {
        padding: 10px 2px;
        border-radius: 10px;
        width: 99vw;
        min-width: 0;
    }
    .heading {
        font-size: 1.2rem;
    }
    .my-generated-image {
        height: 120px;
        max-width: 98vw;
    }
    .image-generate-btn, #download-btn {
        padding: 10px 10px;
        font-size: 0.98rem;
    }
    .form-controls {
        font-size: 0.98rem;
        padding: 10px;
    }
}

/* Smooth slide-up animation for mobile view */
@keyframes slideUpMobile {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media screen and (max-width: 600px) {
    .container,
    .image-container {
        animation: slideUpMobile 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    }
}

@media screen and (max-width: 600px) {
    .container {
        width: 99vw;
        max-width: 100vw;
        padding: 10px 2px;
        border-radius: 10px;
        box-sizing: border-box;
    }
    .heading {
        font-size: 1.2rem;
    }
    .sub-heading {
        font-size: 0.95rem;
    }
    .my-generated-image {
        width: 98vw;
        max-width: 98vw;
        height: 140px;
    }
    .image-generate-btn, #download-btn {
        padding: 10px 10px;
        font-size: 0.98rem;
        width: 100%;
        box-sizing: border-box;
    }
    .form-controls {
        font-size: 0.98rem;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    .image-container {
        margin-top: 18px;
    }
}

/* Smooth slide-up animation for mobile view */
@keyframes slideUpMobile {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media screen and (max-width: 600px) {
    .container,
    .image-container {
        animation: slideUpMobile 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    }
}