html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
}

img {
    width: 100%;  // Fills the width of its container
    height: auto; // Keeps the aspect ratio intact
    display: block;
    margin: 0 auto; // Centers the image horizontally
}

/* Adjustments for screens smaller than 768px (typical breakpoint for tablets and mobile phones) */
@media (max-width: 768px) {
    body, html {
        display: block; // Stacks content vertically
    }

    img {
        width: 100%;
        height: auto;
        object-fit: cover; // Covers the area without distorting the aspect ratio
    }
}
