* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;

}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.slideshow-container img {
    width: 100%;
    /* height: auto; */
    /* Ensures the image scales properly */
}

hr {
    margin-top: 20px;
    border: 1px solid #ddd;
}


.mukh{
    padding: 12px;
    margin: 10px;
    text-align: justify;
    height: auto;
}


/* Slideshow container */
.slideshow-container {
    position: relative;
    /* Ensure proper positioning */
    width: 100%;
    /* margin-top: 5vh; */
    /* height: 80vh; */
    /* Full viewport height */
    overflow: hidden;
    /* top: 9vh; */
    /* Prevent extra content overflow */
}


.Biography {
    margin-top: 120px;
    /* Add spacing from the slideshow */
    padding: 20px;
    /* Add internal spacing */
    clear: both;
    /* Ensures it doesn't overlap floated elements */
    margin-top: 80px;

}


/* Each slide */
.slide {
    display: none;
    /* Initially hide all slides */
    position: absolute;
    width: 100%;
}

/* Images inside slides */
.slide img {
    width: 100%;
    /* Full width */
    height: auto;
    /* Maintain aspect ratio */
}

/* Add fade effect */
.fade {
    animation: fadeEffect 3s ease-out;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

a {
    text-decoration: none;
    color: black;
}

.Biography h2 {
    text-align: center;


}

li {
    text-decoration: none;
}

.loader {
    display: grid;
    grid-template-columns: 3fr 2fr;
    position: relative;
    top: 15vh;
    padding: 20px;
}

.loader {
    display: flex;
    gap: 20px;
    /* Space between slideshows */
}

.babajiphoto,
.temple {
    position: relative;
    width: 50vw;
    height: 70vh;
    overflow: hidden;
    border-radius: 15px;
}

.babajiphoto img,
.temple img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.babajiphoto img.active,
.temple img.active {
    opacity: 1;
}



.Biography {
    display: grid;
    grid-template-columns: 1fr 3fr;
    /* width: 50%; */
    /* float: right; */
    /* margin-top: 48%; */

}



#Biography {
    font-size: large;
    justify-content: center;
    text-align: justify;
    position: relative;
    margin-top: 1vh;
    /* margin-top: 12px; */
    /* align-items: end; */
}



p {
    font-size: large;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Apply the blur effect */
    padding: 20px; /* Add some padding */
    border-radius: 10px; 
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 5s ease;
    -webkit-transition: opacity 5s ease;
    -moz-transition: opacity 5s ease;
    -ms-transition: opacity 5s ease;
    -o-transition: opacity 5s ease;
}


/* #preloader.hidden {
    opacity: 0; 
    pointer-events: none; 
} */

#preloader img {
    width: px;
    /* Adjust the size of the preloader image */
    position: relative;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10000;
}

/* Main content */
#main-content {
    display: none;
    /* Hide the content initially */
}



/* Base styles for navigation */
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

li {
    position: relative;
    /* Ensures the submenu is positioned relative to the parent */
}

.menu-title,
a {
    text-decoration: none;
    color: yellow;
    padding: 8px 12px;
    display: block;
    cursor: pointer;
}


/* Responsive Design for 350px to iPad Air (820px) */
@media (max-width: 820px) {

    /* General Adjustments */
    body {
        font-size: 14px;
        padding: 0px;
        line-height: 1.5;
    }
    .slideshows{
        height: 25vh;
    }
    h1,
    h2 {
        font-size: 1.4rem;
        text-align: center;
        margin: 15px 0;
    }

    p {
        font-size: 0.9rem;
        margin: 10px;
        padding: 5px;
    }

    /* Slideshow */
    .slideshow-container {
        width: 100%;
        height: 50vh;
        /* Adjust height for smaller screens */
        /* margin-top: 10px; */
    }

    .slideshow-container img {
        width: 100%;
        height: auto;
    }

    .slide {
        height: auto;
    }

    /* Biography Section */
    .Biography {
        display: flex;
        flex-direction: column;
        /* Stack content vertically */
        margin: 20px 0;
        padding: 10px;
    }

    .Biography h2 {
        margin-bottom: 10px;
    }

    .Biography video {
        width: 100%;
        height: auto;
        margin: 10px 0;
        border-radius: 8px;
    }

    #Biography {
        font-size: 0.9rem;
        position: relative;
        top: 2vh;
        text-align: justify;
    }

    /* Preloader */
    #preloader img {
        max-width: 70%;
        /* Ensure preloader image fits on smaller screens */
        height: auto;
    }

    .close-btn {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }

    /* Navigation Bar */
    #nav-bar {
        padding: 0px;
        font-size: 0.9rem;
    }

    ul {
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }

    li a {
        padding: 8px;
        text-align: left;
    }

    /* Footer */
    #foot-er {
        font-size: 0.8rem;
        text-align: center;
        padding: 0px;
    }

    hr {
        margin: 20px auto;
        width: 90%;
        /* Narrow the width */
    }

    /* Gallery or Additional Sections */
    .gallery {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Adjustments for 350px specifically */
    @media (max-width: 480px) {

        h1,
        h2 {
            font-size: 1.2rem;
        }

        p {
            font-size: 0.8rem;
        }

        .close-btn {
            width: 20px;
            height: 20px;
            font-size: 14px;
        }
    }
}


.impt {
    display: grid;
    grid-template-columns: 2fr 2fr;
}

#rotatingHeading {
    position: absolute;
    white-space: nowrap;
    /* Prevent line breaks */
    font-size: 2em;
    font-weight: bold;
}





.slideshows {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    width: 100%;
    height: 60vh;
    align-items: center;
    /* top: 20vh; */
    position: relative;
    background-color: yellow;
}
.slideeffect{
    border-radius: 20%;
}
.slideshows>div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slideshows>div img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.slideshow-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    /* border-radius: 20px; */
    /* box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); */
}

.slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.fade {
    animation: fadeEffect 1.5s ease-in-out;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.heading {
    text-align: center;
    font-size: 2em;
    margin-top: 20px;
    position: relative;
    top: 17vh;
}


h1 {
    color: #343a40;
    text-align: center;
    margin-top: 2px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

p {
    margin: 0px;
    font-size: 1rem;
    /* color: #555; */
}

/* Horizontal Rule */
hr {
    margin: 40px auto;
    border: 1px solid #007bff;
    width: 80%;
}

/* Highlight Section Titles */
h1:nth-of-type(1) {
    color: #2518dd;
}

h1:nth-of-type(2) {
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    .slideshows{
        height: 25vh;
    }
    

    p {
        font-size: 0.9rem;
        /* margin: 10px; */
        /* padding: 8px; */
    }
    @keyframes movetext {
        0% {
          transform: translateX(0); /* Start at the initial position */
        }
        100% {
          transform: translateX(100px); /* Move 100px to the right */
        }
      }
    
}

.main-text {
    position: relative;
    top: 0vh;
    /* z-index: 1000; */
}
.events{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background-color: #f8f9fa;
    color: #343a40;
}

.nav-links.mobile-show{
    height: 6%;
}




.container {
    display: flex;
    align-items: center; /* Align items vertically */
    gap: 12px; /* Space between the image and text */
    margin-top: 12px;
    padding: 10px; /* Add padding for a cleaner layout */
    border: 2px solid blueviolet; /* Define border with width and color */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    background-color: #f9f9f9; /* Subtle background color */
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* Smooth hover effect */
  }
  
  .container:hover {
    /*box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    Enhancedshadowonhover*/background-image: linear-gradient(to right, yellow,pink);
    /* border: black; */
    transform: translateY(-4px);
     /* Slight lift effect */ 
}
  
  .image {
    width: 7vw;
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Slightly rounded corners for the image */
    object-fit: cover; /* Ensure the image fills the area nicely */
  }
  
  .text-container {
    font-size: 1rem; /* Adjustable font size */
    font-family: Arial, sans-serif; /* Clean font style */
    color: #333; /* Neutral text color */
  }
  