/* html{
    height: auto;
} */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* `height: 105vh` used to be here: a fixed box taller than the screen that
       could not grow, so its content spilled out over the footer. The global
       rule in style.css already gives main a full-screen minimum, and dropping
       the fixed height lets it grow with the content. */
    padding-top: 100px;
    background-color: transparent;
}

body {
    background-color: transparent;
}

h1 {
    z-index: 2;
}
.back-img-presentation{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url("../img/reservation/simone-viani-2XPHSXVT_Ls-unsplash.webp");
}

.court-img {
    filter: blur(0px);
    -webkit-filter: blur(0px);
}

.court-img img,
.map-container iframe {
    width: min(40vw, 80vh);
    /* max-height: 800px; */

    max-width: 800px;
    min-width: 400px;
    /* height: 40vw; */
    height: auto;
    aspect-ratio: 1/1;
    max-height: 800px;
    border-radius: 20px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5)
}

.court-img p {
    z-index: 2;
}


.court-img div {
    transform: translate(-50%, -50%);
    position: absolute;
    top: 63%;
    left: 48%;
}

.court-img div:first-of-type {
    padding: 10px 60px;
    top: 25%;
    /* filter: blur(20px);
    -webkit-filter: blur(20px); */
}

.court-img div p {
    color: #1a3150;
}

a {
    text-decoration: none;
}

/* .background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Ensure it stays behind other content */

/* Clips the blurred image and takes its height from the content inside it. */
.background-container {
    position: relative;
    overflow: hidden;
    /* main centres its children, which would shrink this to fit its content.
       The blurred panel is meant to run the full width of the page. */
    align-self: stretch;
}

.img-with-gadient {
    /* Out of flow and oversized by `inset`, so the overhang that hides the
       blur's soft edges costs no layout. It used to be a 105vw x 105vh element
       in normal flow, which is what pushed it down over the footer. */
    position: absolute;
    inset: -6%;

    background-image: url("../img/reservation/court2.webp");
    /* Changed from /WEB/IMG/... */
    filter: blur(20px);
    -webkit-filter: blur(20px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.img-with-gadient-content {
    /* In normal flow now, and stacked above the blurred image — being
       absolutely positioned is what stopped it contributing any height. */
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 600px;
    width: 100%;
    padding: 48px 0;
}

.img-with-gadient-content div {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.reservation-content {
    height: 100%;
}

@media screen and (max-width: 768px) {
    .button1 {
        width: 60vw;

        p {
            font-size: 20px;
        }
    }

    .court-img div {
        left: 50%;
    }

    .court-img img,
    .map-container iframe {
        /* position: relative;
        transform: translate(-50%, -50%);
        left: 40%;
        top: 70%; */
        width: 40vh;
        /* max-height: 800px; */
        min-width: 0px;
        max-width: 400px;
        height: 40vh;
        max-height: 400px;
    }

    .img-with-gadient-content div {
        flex-direction: column;
        align-items: center;
    }

    .img-with-gadient-content div div {
        margin: 10px 0;
    }

    /* The fixed heights here existed to prop up the old spacer layout. The
       container is sized by its content now, so they are no longer needed. */
    .background-container .img-with-gadient-content {
        flex-direction: column;
        align-items: center;
        padding: 32px 0;
    }
}