body, html {
    height: 100%;
    margin: 0;
    color: white;
    background-color: #111111;
}

.parallax {
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    height: 100vh; /* Full height */
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.fade-in {
    opacity: 0;
    transition: opacity 2s ease-in-out;
    max-width: 50%; /* Max width is 50% of the viewport */
    display: block; /* Needed to center images and apply max-width correctly */
    margin: auto; /* Centers the image horizontally if it's a block element */
}

img {
    width: 100%; /* Make the image fill the container */
    height: auto; /* Keep the aspect ratio */
}

/* Once the element is visible, apply the effect */
.fade-in.visible {
    opacity: 1;
}
