/* Define the pop-up animation */
@keyframes pop-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply the pop-up animation to the section-title class */
.section-title {
    animation: pop-up 0.5s ease-in-out;
}

.text-black {
    animation: pop-up 0.5s ease-in-out;
}

#text-title1{
    font-size: 50px;
}

#text-title2{
    color: black;
}

/* Center and style the About Us section */
.about-us {
    text-align: center;
    padding: 50px 0;
}

.about-us .section-title {
    font-size: 35px;
    font-weight: bold;
    margin-bottom: 20px;
    color: black; /* Choose your desired text color */
}

.about-us p {
    font-size: 21px;
    line-height: 1.6;
    color: black; /* Choose your desired text color */
    max-width: 600px;
    margin: 0 auto;
}

/* Center and style the Our Mission section */
.our-mission {
    text-align: center;
    padding: 10px 0;
}

.our-mission .section-title {
    font-size: 35px;
    font-weight: bold;
    margin-bottom: 20px;
    color: black; /* Choose your desired text color */
}

.our-mission p {
    font-size: 21px;
    line-height: 1.6;
    color: black; /* Choose your desired text color */
    max-width: 600px;
    margin: 0 auto;
}

.help-header{
    padding: 50px 0;
}


/*IMAGE GALLERY*/
.image-gallery {
    margin-bottom: 20px; /* Add space between the image gallery and the footer */
}

.image-container {
    position: relative;
    width: 400px; /* Set your desired width */
    height: 400px; /* Set your desired height */
    margin: 0 auto;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Adjust the background color and opacity as needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.overlay h3 {
    color: #fff; /* Set the title color */
    font-size: 24px; /* Set the title font size */
    margin-bottom: 10px;
}


.overlay h3 {
    color: #fff; /* Set the title color */
    font-size: 24px; /* Set the title font size */
    margin-bottom: 10px;
}

.overlay a.btn {
    color: #fff; /* Set the button text color */
    background-color: #007bff; /* Set the button background color */
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.overlay a.btn:hover {
    background-color: #0056b3; /* Change button background color on hover */
    transform: scale(1.1); /* Add a scale effect on hover */
}

.overlay a.btn:active {
    transform: scale(0.9); /* Add a click effect on button click */
}

/*Donate*/
.container-fluid {
    position: relative;
    background-color: #ccc; /* Replace with your desired background color */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 520px; /* Use min-height instead of height */
    width: 100%; /* Set the width to 100% of the viewport width */
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
}

.container-fluid img {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Adjust the width to your preference */
    height: 100%; /* Cover the full height of the container */
    object-fit: cover; /* Maintain aspect ratio and cover the container */
    z-index: -1; /* Place the image behind the text content */
}

.container-fluid .container {
    z-index: 1; /* Place the content above the image */
}


.container-fluid h3 {
    font-size: 45px;
    font-weight: 500;
    text-align: center;
    margin-left: 28%;
    padding-top: 10%;
    color: black; /* Text color */
}

.container-fluid p {
    font-size: 25px;
    text-align: center;
    margin-left: 28%;
    padding-top: 20px;
    padding-bottom: 20px;
    color: black; /* Text color */
}

/* Style for the Donate Now button */
.donate-button {
    color: #fff; /* Set the button text color */
    background-color: #007bff; /* Set the button background color */
    width: auto;
    padding: 20px 30px;
    margin-left: 29%;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    display: inline-block; /* Add this to prevent the button from stretching */
    position: relative; /* Add this for the clicking effect */
}

/* Style for the Donate Now button on hover */
.donate-button:hover {
    background-color: #0056b3; /* Change button background color on hover */
    color: white;
    transform: scale(1.1);
}

/* Style for the Donate Now button on active (click) */
.donate-button:active {
    transform: scale(0.9); /* Add a slight scale-down effect on click */
}

.join-community{
    margin-top: 5%;
    margin-bottom: 5%;
}

.smaller-icon {
    max-width: 40px; /* Adjust the maximum width as needed */
    max-height: 40px; /* Adjust the maximum height as needed */
    transition: transform 0.2s ease-in-out;
}

.smaller-icon:active{
    transform: scale(0.8);
}

.join-community h2 {
    font-size: 35px; /* Adjust the heading font size as needed */
    color: black;
    font-weight: bold;
}

.join-community h1 {
    font-size: 30px; /* Adjust the larger text font size as needed */
    color: black;
    font-weight: bold;
}

.join-community p {
    font-size: 25px; /* Adjust the paragraph font size as needed */
    color: black;
}

/* Define the fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.card {
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
    transition: transform 0.2s ease-in-out;
    background-color: lightgray;
}

.card:hover {
    transform: scale(1.02); /* Increase the scale for the hover effect */
}

/*MEDIA QUERIES*/

@media (max-width: 1399px) {
    .image-container {
        max-width: 90%; /* Reduce the maximum width of images */
    }
}

@media (max-width: 991px) {
    /* Reduce the font size for the text */
    #text-help{
        font-size: 20px;
    }

    #text-title{
        font-size: 40px;
    }

    /* Reduce the button size */
    .container-fluid .donate-button {
        width: auto;
        font-size: 20px;
        padding: 10px 20px;
        
    }
}

@media (max-width: 767px) {

    #container-text{
        width: 100%;
        margin-left: 23%;
    }

    #text-help{
        font-size: 20px;
        margin-right: 20%;

    }

    #text-title{
        font-size: 25px;
        margin-right: 20%;
    }

    #help-img{
        width: 40%;
    }

    #donate-btn{
        margin-right: 21%;
    }

}

@media (max-width: 991px) {
    /* Reduce the font size for the text */
    .container-fluid .slide-in-text h3 {
        font-size: 22px;
    }
    
    .container-fluid .slide-in-text p {
        font-size: 18px;
    }

    /* Reduce the button size */
    .container-fluid .donate-button {
        width: auto;
        font-size: 18px;
        padding: 10px 20px;
    }

}

@media (min-width: 2560px) {
    /* Reduce the font size for the text */
    #container-text{
        width: 100%;
        margin-left: 23%;
        margin-bottom: 10%;
    }

    #text-help{
        font-size: 40px;
        margin-left: 55%;

    }

    #text-title{
        font-size: 50px;
        margin-left: 55%;
    }

    #help-img{
        width: 50%;
    }

    #donate-btn{
        padding: 30px 50px;
        font-size: 30px;
        margin-left: 55%;
    }

    #text-title1{
        font-size: 75px;
    }

    #text-title2{
        font-size: 50px;
        color: black;
    }

    #paragraph{
        font-size: 40px;
        max-width: 1000px;
    }

    .join-community{
        margin-top: 5%;
        margin-bottom: 5%;
        margin-right: 20%;
    }
    
    .smaller-icon {
        max-width: 70px; /* Adjust the maximum width as needed */
        max-height: 70px; /* Adjust the maximum height as needed */
    }
    
    .join-community h2 {
        font-size: 60px; /* Adjust the heading font size as needed */
        color: black;
        font-weight: bold;
    }
    
    .join-community h1 {
        font-size: 50px; /* Adjust the larger text font size as needed */
        color: black;
        font-weight: bold;
    }
    
    .join-community p {
        font-size: 40px; /* Adjust the paragraph font size as needed */
        color: black;
    }

    .card{
        width: 1500px;
    }

    /*IMAGE GALLERY*/

    .image-gallery {
        margin-bottom: 20px; /* Add space between the image gallery and the footer */
        display: flex;
        flex-wrap: wrap; /* Allow images to wrap to the next row if needed */
        justify-content: center; /* Center the columns horizontally */
    }
    
    .image-container {
        position: relative;
        width: 100%; /* Set your desired width for each column with some margin between them */
        max-width: 100%; /* Set your desired maximum width for each column */
        margin: 10px; /* Add some margin to create space between columns */
        height: 800px; /* Set the desired height for each container */
    }
    
    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7); /* Adjust the background color and opacity as needed */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .overlay h3 {
        color: #fff; /* Set the title color */
        font-size: 40px; /* Set the title font size */
        margin-bottom: 10px;
    }
    
    .overlay a.btn {
        color: #fff; /* Set the button text color */
        background-color: #007bff; /* Set the button background color */
        padding: 25px 30px;
        text-decoration: none;
        border-radius: 5px;
        font-size: 30px;
        transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    }
}