/* Full-page gradient background with animated pattern overlay */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #4f46e5, #60a5fa);
    overflow: hidden;
    position: relative;
    color: #ffffff;
}

.container {
    text-align: center;
    width: 80%;
    max-width: 500px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    color: #ffffff;
}

/* Enhanced button styling with slightly rounded corners */
button {
    background-color: #6366f1;
    border: none;
    color: white;
    padding: 10px 20px;
    margin-top: 15px;
    cursor: pointer;
    border-radius: 8px; /* Slightly rounded corners */
    font-size: 1rem;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #4f46e5;
    transform: scale(1.05);
}

/* Loading text styling */
#loading {
    color: #ffffff;
    margin-top: 15px;
    font-size: 1.1rem;
}

/* Enhanced image container */
#output {
    margin-top: 20px;
}

#enhancedImage {
    max-width: 100%;
    border: 2px solid #ffffff;
    border-radius: 8px;
    margin-top: 10px;
}

/* Animated pattern overlay */
body::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(#ffffff10 1px, transparent 1px);
    background-size: 30px 30px;
    animation: rotate 30s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.container, #output {
    position: relative;
    z-index: 1;
}
