body {
    margin: 0;
    background-color: white; /* Whole white background */
    display: flex; /* Use flexbox for centering */
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    min-height: 100vh; /* Ensure it takes full viewport height */
    font-family: 'Arial', sans-serif; /* A nice default font */
    color: #333;
    overflow-y: auto; /* Allow vertical scrolling if content overflows */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px; /* Add some padding around the content */
    width: 100%; /* Ensure container takes full width to allow centering */
    max-width: 800px; /* Limit overall content width for readability */
}

.animation-wrapper {
    margin-bottom: 30px; /* Space between animation and image */
}

.mother-animation {
    font-size: 3em; /* Slightly reduced font size */
    opacity: 0; /* Start invisible */
    transform: translateY(-30px); /* Start slightly above */
    animation: fadeInSlideDown 1.5s ease-out forwards; /* Animation properties */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    white-space: nowrap; /* Prevent text from wrapping for the animation effect */
    will-change: opacity, transform; /* Hint to browsers for smoother animation */
}

@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-wrapper {
    width: 90%; /* Limit the width of the image container */
    max-width: 600px; /* Set a maximum width for larger screens */
    height: auto; /* Maintain aspect ratio */
    display: flex; /* Use flexbox to center the image */
    justify-content: center; /* Center the image within its wrapper */
}

.image-wrapper img {
    display: block; /* Remove extra space below the image */
    max-width: 100%; /* Ensure the image scales down within its container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 15px; /* Slightly rounded corners for the image */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for the image */
    opacity: 0; /* Start invisible */
    animation: fadeIn 1.5s ease-out forwards; /* Fade in animation for the image */
    animation-delay: 1.7s; /* Start after the text animation finishes */
    will-change: opacity; /* Hint to browsers for smoother animation */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Adjust overall layout for smaller screens */
@media (max-width: 600px) {
    .mother-animation {
        font-size: 2em; /* Smaller font for very small screens */
        white-space: normal; /* Allow wrapping on very small screens if needed */
        padding: 0 10px; /* Add some horizontal padding to prevent overflow */
    }
    .animation-wrapper {
        margin-bottom: 20px;
    }
    .image-wrapper {
        width: 95%; /* Make image slightly wider on small screens */
    }
}
