body, html {
    margin: 0;
    padding: 0;
}
 
.tennis-academy {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 10px; /* Reduce horizontal padding if necessary */
    gap: 20px; /* Adjust gap between flex items if it's set */
}


.main-title {
    font-family: 'Helvetica Neue', Arial, sans-serif; /* Helvetica Neue is commonly used for its clean, professional appearance */
    font-size: 3em; /* Adjust based on actual size needed for visibility */
    font-weight: bold; /* Makes the title stand out */
    text-transform: uppercase; /* Assuming the title is in uppercase for added emphasis */
    margin-bottom: 20px; /* Space below the title */
}

/* General Text Style */
.text-homecontent {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1em; /* Standard text size */
    color: #000;
    font-weight: bold; /* Makes the title stand out */
    padding-right: 10px;
    line-height: 2;
   
}

.title-container {
    position: relative; /* Ensures positioning is relative to this container */
    height: 150px; /* Adjust based on your design */
    color: #777;
    text-align: left; /* Centers the text */
}

.elite-tennis {
    position: absolute;
    top: 45%; /* Centering it vertically */
    transform: translateY(-100%); /* Moves 'Elite Tennis' exactly above the middle of 'Academy' */
    width: 100%; /* Full width to center text horizontally */
    font-size: 12px; /* Smaller than 'Academy' */
    letter-spacing: 3px; /* Spacing between letters */
    text-transform: uppercase;
    color: #000; /* Slightly transparent white */
    z-index: 2; /* On top of 'Academy' */}

.academy {
    font-family: 'Arial Black', sans-serif;
    font-size: 5em; /* Very large font size */
    font-weight: normal;
    letter-spacing: 3px;
    color: hsla(0, 11%, 95%, 0.993); /* Very light gray, almost white */
    position: relative; /* To position properly within the container */
    padding-top: 0; /* No top padding needed */
}



@keyframes moveIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

img[id^="tennisImage_"].move-in {
    animation: moveIn 2s ease-out forwards;
}

img[id^="tennisImage_"].fade-in {
    animation: fadeIn 5s ease-out forwards;
}

/* Ensure images are initially off-screen and hidden */
img[id^="tennisImage_"] {
    opacity: 0;
    width: 100%; /* Take full width of container */
    height: auto; /* Maintain aspect ratio */
    transition: transform 2s ease-out, opacity 2s ease-out;
}


/*#imageContainer_{{@index}}, .tennis-content {*/
div[id^="imageContainer_"] {
    flex-basis: 50%;
    width: 50%; /* Ensure they don't grow or shrink */
    height: auto; /* Adjust height based on content */
    padding: 0px; /* Optional: add padding for spacing */
    box-sizing: border-box; /* Include padding and border in the width calculation */
    display: flex;
    justify-content: center; /* Center the image within the container */
    align-items: flex-start !important;
    overflow: hidden;
}


.tennis-content {
    flex-basis: 50%; /* Increase if too narrow */
    width: 50%;
    padding: 20px;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 768px) {

    img[id^="tennisImage_"] {
        transform: none; /* Remove transform for mobile */
    }

    img[id^="tennisImage_"].animated {
        opacity: 1;
    }

    .title-container {
        position: relative; /* Ensures positioning is relative to this container */
        text-align: center; /* Centers all text within the container */
    }

    .elite-tennis, .academy {
        position: relative; /* Adjusts both texts to be relative for simpler stacking */
        width: 100%; /* Ensures text spans the full container width */
        transform: none; /* Removes any transformation applied */
        text-align: center; /* Ensures text is centered */
        display: block; /* Stacks the text blocks vertically */
    }

    .tennis-academy {
        flex-direction: column; /* Stack imageContainer and tennis-content vertically */
    }


    div[id^="imageContainer_"] {
        width: 100%; /* Takes the full width of the viewport */
        padding: 0; /* Optional, adjust as per your design */
        justify-content: center !important; /* Center the image within the container */
        align-items: center !important;
    }    


    .tennis-content {
        width: 100%; /* Allows the content to take the full width */
        padding: 10px; /* Adds padding around the content */
    }

   

    .elite-tennis {
        font-size: 1em; /* Adjusted font size for visibility */
        text-align: center; /* Center the text to maintain visibility over 'Academy' */
        margin-bottom: 2.0em; /* Provides spacing between the two texts */
         
    }

    .academy {
        font-size: 2.5em; /* Smaller font size for mobile */
        top: auto; /* Aligns automatically below the 'elite-tennis' */
    }

}
