body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('bgggggg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.container {
    display: flex;
    align-items: center; /* Center align the images and title horizontally */
    justify-content: space-evenly;
    padding-top: 5px; 
}

.intro{
    font-family: cursive;
    color:yellowgreen;
    background-color: rgb(128, 78, 138,0.8);
    font-size: large;
    text-align: center;
    width:80%;
    margin: 25px auto;
    padding:5px;
    animation: slideInFromTop 1s ease-in-out; /* Apply the animation */

}

.image {
    /* flex: 0 0 33%;  Three images in a row on PC */
    max-width: 30%;
    padding: 20px;
    display:flex;
    flex-direction: column;
    align-items: center;
    /* Apply the animation */
}

#con1{
    animation: slideInFromLeft 1s ease-in-out;
}

#con2{
    animation: slideInFromBottom 1s ease-in-out;
}

#con3{
    animation: slideInFromRight 1s ease-in-out;
}

.image img {
    max-width: 100%;
    height: 300px;
   border: 2px solid white; /* Add border to the images */
    border-radius: 20px;
    transition: transform 0.3s ease-in-out;
}
.image:hover img {
    z-index: 10;
    transform: scale(1.1); /* Scale the image on hover */
}
.image .text-overlay {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    padding: 10px;
    text-align: center;
}
.image:hover .text-overlay {
    display: block; /* Show the text overlay on hover */
    position: absolute;
    top: 75%;
    left: 50%;
}

.title-container {
    background-color: black;
    opacity: 0.85;
    padding: 5px;
    
}

.title {
    color: white;
    font-size: 50px;
    text-align: center;
}

.about{
    /* border:2px solid white; */
   margin:10px 10px;
   font-size:20px ;
   font-weight: bold;
    font-family:cursive ;
    text-align: center;
    color:aliceblue
}

#about1{
    background-color: rgba(255, 49, 49, 0.7);   
}

#about2{
    background-color: rgba(82,113,255, 0.7) ;   
}

#about3{
    background-color: rgba(255, 222,89, 0.9);   
}

@keyframes slideInFromTop {
    0% {
      transform: translateY(-100%);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }
@keyframes slideInFromBottom {
    0% {
      transform: translateY(100%);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }
@keyframes slideInFromLeft {
    0% {
      transform: translateX(-100%);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }
@keyframes slideInFromRight {
    0% {
      transform: translateX(100%);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }

@media (max-width: 768px) {
    /* Mobile layout - Up to down */
    .title{
        font-size: 25px;
     text-align: center;
    }
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;

    }

    .image {
       max-width: 50%;
        padding: 20px;
        margin-bottom: 2px; /* Add spacing between images on mobile */
        margin-left:0px;
    }
    .image img{
      height: auto;
    }
    .image .text-overlay{
        font-size: 30px;
    }
}
