@import url(https://unpkg.com/@picocss/pico@latest/css/pico.min.css);

/* Ensure full height layout for sticky footer */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: rgb(52, 52, 52);
    background-image: url("/img/black_lotus.webp");
    background-size: cover;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem 6rem 0 6rem;
    
}

header {
    text-align: center;
    margin-bottom: .5rem;
}

header h1,h5 {
    color: white;
    text-shadow: 2px 2px black !important;
}

main {
    flex: 1; /* allow main content to grow and push footer down */
}


article {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

article > img {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    margin-top: -1rem;
    margin-bottom: .9rem;
    width: calc(100% + 2rem) !important;
    max-width: calc(100vw - 2rem) !important; /* Limit to viewport width */
    height: calc(100vh -2rem) !important;
    border-radius: 0.25rem 0.25rem 0 0;
    transform-origin: top center;
    transform: scale(1); /* This will be overridden by container scaling */
}

article h3,h6 {
    text-align: center;
}
article p {
    text-align: justify;
    font-weight: 600;
}

article > footer > p {
    font-weight: 600;
    color: black;
    text-shadow: none;
    font-size: 0.9rem;
    text-align: right;
}

footer {
    text-align: right;
    font-size: 0.9rem;
    margin-top: 1rem;

}

footer p {
    color: white;
    font-style: italic;
    /* text-shadow: 2px 2px black !important; */
}


/* Optional: spacing adjustments for small screens */
@media (max-width: 992px) {
    .grid {
    grid-template-columns: 1fr;
    }
    body {
    padding: 1rem;
    }
    header h1 {
    font-size: 1.5rem;
    }
    header h5 {
    font-size: 1rem;
    }
    footer {
    text-align: center;
    }
}