
html, body {
    height: 100vh;
    margin: 0;
    padding: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

/* Make header sticky at the top */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #3D7F97;
}

/* Make footer sticky at the bottom */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 23px;
    font-size: small;
    color: #000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 0px;
}

title {
    margin-top: 20px; 
    font-size: 1em; 
    text-align: left;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

p {
    text-align: center;
    font-family: 'Montserrat';
    background-color: #fff;
    color: #000;
    box-shadow: 0 -2px 5px rgba(211,78, 36, 0.1);
    border-radius: 5px;
}

body {
    position: relative; /* Ensure the pseudo-elements are positioned relative to the body */
    overflow: auto;
}

body::before,
body::after {
    content: ''; /* Required for pseudo-elements */
    position: absolute;
    top: 12px; /* Matches the margin value */
    width: calc(300px - 24px); /* Final width accounting for margin */
    height: calc(300px - 24px); /* Final height accounting for margin */
    border-radius: 25px;
    z-index: 199;
    height: 95vh;
    width : 100vh;
    background-size: cover; /* Ensure the images cover the elements */
    background-position: center; /* Center the images */
    opacity: 0; /* Start fully transparent */
    transform: scale(0.8) translateY(-20px); /* Start slightly smaller and shifted */
    animation: fadeInAndSlide 1.5s ease forwards; /* Apply animation */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.9); /* Add shadow */
}

body::before {
    right: 98px; /* Position for the first image */
    background-image: url('../images/cape-viewing.jpeg'); /* Your first image */
    animation-delay: 0.5s; /* Slight delay for staggered animation */
}

body::after {
    left: 98px; /* Position for the second image */
    background-image: url('../images/combi.png'); /* Your second image */
    animation-delay: 1s; /* Additional delay for staggered animation */
}

#closeResponseMessage {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: none;
    color: #333;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

#responseMessage {
    text-align: center;
    margin-top: 20px;
}

.hidden {
    display: none;
}

/* Define the animation keyframes */
@keyframes fadeInAndSlide {
    0% {
        opacity: 0; /* Fully transparent */
        transform: scale(0.8) translateY(-20px); /* Start smaller and shifted */
    }
    100% {
        opacity: 1; /* Fully visible */
        transform: scale(1) translateY(0); /* End at normal size and position */
    }
}


@media (max-width: 768px) {
    html, body {
        width: auto;
        height: auto; 
    }  
    
    .overlay {
        top: 0px;
        left: 0px;
    }    
}