*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
.nav1 a{
    text-decoration: none;
    color: white;
    margin-left: 20px;
}
.container1 {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 35px;
    padding: 20px;
}
.carousel-img {
    height: 480px; 
    object-fit: cover; 
  }
  

.hover-box {
    position: relative;
    width: 350px;
    height: 350px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
}
.hover-box h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 3em;
    text-align: center;
    transition: opacity 0.3s ease;
  }
  

  .hover-box:hover h3 {
    opacity: 0;
  }
  
.hover-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.hover-box:hover img {
    transform: scale(1.1);
    opacity: 0;
}

.hover-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    color: black;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 8px;
    border: solid black;
    text-align: center;
}

.hover-box:hover .hover-content {
    opacity: 1;
}
.linkdec{
    text-decoration: none;
   
}
 /* Styles for the button */
 .animated-btn {
    position: fixed;
    background-color: #007bff;
    color: white;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    animation: bounce 2s infinite;
}
.carousel-img {
    width: 100%;               /* Ensures the image takes up full width of the container */      /* Ensures the entire image is visible without cropping */
    max-height: 450px;         /* Ensures the image fits within the viewport height */
}

@media (max-width: 768px) {
    .carousel-img {
        object-fit: contain;
        max-height: 200px; /* Adjust height for smaller devices */
    }
}

/* Position for small devices (mobile) */
@media (max-width: 767px) {
    .animated-btn {
        bottom: 20px;
        right: 20px;
    }
}

/* Position for larger devices */
@media (min-width: 768px) {
    .animated-btn {
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


 /* Styles for the button */
 .animated-btn {
    position: fixed;
    background-color: #007bff;
    color: white;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    animation: bounce 2s infinite;
}

/* Position for small devices (mobile) */
@media (max-width: 767px) {
    .animated-btn {
        bottom: 20px;
        right: 20px;
    }
}

/* Position for larger devices */
@media (min-width: 768px) {
    .animated-btn {
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


 /* Styles for the button */
 .animated-btn {
    position: fixed;
    background-color: #007bff;
    color: white;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    animation: bounce 2s infinite;
}

/* Position for small devices (mobile) */
@media (max-width: 767px) {
    .animated-btn {
        bottom: 20px;
        right: 20px;
    }
}

/* Position for larger devices */
@media (min-width: 768px) {
    .animated-btn {
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* Styles for the button 222 */
.animated-btn1 {
    position: fixed;
    background-color: #007bff;
    color: white;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    animation: bounce 2s infinite;
}

/* Position for small devices (mobile) */
@media (max-width: 767px) {
    .animated-btn1 {
        bottom: 20px;
        left: 20px;
    }
}

/* Position for larger devices */
@media (min-width: 768px) {
    .animated-btn1 {
        top: 50%;
        left: 20px;
        transform: translateY(-50%);
    }
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
