@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 20px;
}

header h1 {
    margin-right: 20px;
    text-align: center;
}

.profile-image {
    height: 60px;
    width: 60px;
    border-radius: 50%;
}

main.container {
    flex: 1;
    margin-bottom: 100px; /* Adjusted margin-bottom for footer spacing */
    padding: 0 20px; /* Added padding for better mobile layout */
}

#imagePreview img {
    max-height: 400px;
    max-width: 100%;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

#result {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    color: #000;
    border-radius: 5px;
    word-wrap: break-word;
}

#progressBar {
    display: none;
}

.page-footer {
    background-color: transparent;
    color: #fff;
    padding: 20px 0;
    position: fixed; /* Fixed position to always stay at the bottom */
    bottom: 0;
    width: 100%;
    text-align: center;
    z-index: 10; /* Ensure footer stays above other content */
}

.page-footer a {
    color: #ffeb3b;
}

.page-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-footer {
        position: static; /* Remove fixed position on medium devices */
        margin-top: 20px; /* Add margin to separate from content */
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
        margin-right: 10px;
    }
    .profile-image {
        height: 40px;
        width: 40px;
    }
}
