body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    
    /* Add flex layout */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Apply background directly to body */
    /* Fallback for browsers that don't support WebP */
    background-image: url('image-min.png');
    /* Modern browsers that support WebP will use this instead */
    background-image: url('image-min.webp'), url('image-min.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    /* Add animation for the background */
    animation: backgroundFadeIn 1s ease-out;
}

/* Overlay styling */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);  /* Black overlay with 50% opacity */
    z-index: -1;
    pointer-events: none; /* Allow clicks to pass through */
}

/* Add animation keyframes for fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to headings */
h1 {
    color: white;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    
    /* Add animation */
    animation: fadeIn 1.2s ease-out forwards;
}

h2 {
    color: white;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    max-width: 80%;
    margin: 1rem 0 0 0;  /* Add some space above h2 */
    
    /* Add animation with delay */
    animation: fadeIn 1.2s ease-out 0.3s forwards;
    opacity: 0; /* Start invisible */
}

/* Add a content wrapper class for other elements you want to animate */
.content-wrapper {
    animation: fadeIn 1.2s ease-out 0.6s forwards;
    opacity: 0; /* Start invisible */
}

/* Safari-specific fix for background attachment */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    body {
        background-attachment: scroll !important; /* Use scroll instead of fixed for Safari */
    }
}

/* Add a fade-in animation for the background container */
@keyframes backgroundFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
