/* Reset body margin and padding */
* {
    margin: 0px;
}

body {
    background-color: #eff6ff;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow: auto;
}
/* Background for the main page */


.header {
    background-color: #c1d1ff;
    width: 100%;               /* Ensure full width */
    padding: 40px;
    display: flex;             /* Use flexbox */
    justify-content: center;   /* Horizontally center the content */
    align-items: center;       /* Vertically center if needed */
    text-align: center;        /* Ensure text inside is centered */
    flex-direction: column;    /* Stack elements vertically */
    box-sizing: border-box;    /* Ensure padding doesn't affect the width */
}

.header-buttons {
    display: none;
    padding-top: 20px;
    padding: 10px;
    margin-top: 10px;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}
.header button {
    color: inherit;
    text-decoration: width .2s ease;
}
.header button:after {
    content: '';
    position: relative;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: black;
    transition: width .3s ease;
    -webkit-transition: width .3s ease;
}

.header button:hover:after {
    width: 100%;
    left: 0;
    background: black;
}
.header-buttons button {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    border: none;
    background: transparent;
    font-size: 15px;
}

/* Outer container for horizontal sliding */
.home-upcomingevents-slider-container1,
.home-gallery-slider-container2 {
    padding-bottom: 20px;
    padding-top: 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

.home-upcomingevents-slider-container1::-webkit-scrollbar,
.home-gallery-slider-container2::-webkit-scrollbar {
    display: none;
}

.home-upcomingevents-slider1,
.home-gallery-slider2 {
    display: flex;               /* Align images and buttons in a row */
    justify-content: flex-start; /* Align items to the left */
    align-items: center;         /* Center items vertically */
    gap: 10px;                   /* Add space between images and buttons */
}

.home-upcomingevents-slider1 img,
.home-gallery-slider2 img {
    display: inline-block;
    width: 300px;
    height: 200px;
    margin-right: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

/* Hover effect */
.home-upcomingevents-slider1 img:hover,
.home-gallery-slider2 img:hover {
    transform: scale(1.05);
}

/* Flex layout for intro section */
.kilannapara-intro {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start; /* Align content to the top */
    margin-left: 0px;
    margin-right: 30px;
    gap: 20px;               /* Space between text and logo */
}


/*Kilannapara-intro*/
.kilannapara-intro{
    display: flex;
    flex-direction: row;
    padding-inline: 50px;
    align-items: center;
}

.kilannapara-intro-logo{
    max-width: 200px;
    max-height: 200px;
}
/*Added*/
.kilannapara-intro-text{
    max-width: 600px;
    padding-top: 30px;
    padding-left: 50px;
}
.kilannapara-intro-square-dark{
    background-color: #1e3a81;
    border-radius: 8%;
    margin-top: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;

}
.kilannapara-intro-square-dark:hover{
    transform: scale(1.05);
}


@media(max-width:800px){
    .kilannapara-intro{
        flex-direction: column;
        padding-top: 0px;
        padding: 0px;
        margin: 0;
    }
    .kilannapara-intro-text{
        text-align: center;
    }

}
/*end*/
.footer {
    background-color: #c1d1ff;
    padding: 60px;
    margin-top: 20px;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    justify-content: left;
}

.home-contents {
    margin-left: 30px;
    margin-right: 30px;
}

.kilannapara-intro h3 h6 {
    text-align: center;
}

.header h1,
.kilannapara-intro-text h3 {
    font-family: "Brush Script MT", "Lucida Handwriting", "Comic Sans MS", cursive;
}

.header h1 {
    font-size: 45px;
}

.kilannapara-intro-text h3 {
    font-size: 30px;
}

.home-gallery h1,
.home-contents h1 {
    font-family: 'Merriweather', serif;;
    font-size: 25px;
}



.home-upcomingevents-slider1 button,
.home-gallery-slider2 button {
    width: 300px;                /* Set a fixed width for the button */
    min-width: 300px;
    height: 200px;               /* Set a fixed height for the button */
    margin-left: 10px;           /* Space between the button and images */
    background-color: #eff6ff;   /* Button color */
    color: #000;                 /* Text color */
    border: none;                /* Remove default border */
    border-radius: 10px;         /* Rounded corners */
    cursor: pointer;            /* Change cursor on hover */
    transition: background-color 0.3s ease;
    transition: transform 0.3s ease;
    font-size: 18px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.home-upcomingevents-slider1 button:hover,
.home-gallery-slider2 button:hover {
    background-color: #eff6ff;
    color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}
.homegallery h1,
.home-upcomingevents h1{
    margin-top: 30px;
}
.home-gallery h1{
    padding-top: 30px;
}
html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: auto;   /* Allow vertical scrolling */
}
body::-webkit-scrollbar {
    width: 0; /* Hides the vertical scrollbar in WebKit browsers (Chrome, Safari) */
}
body {
    -ms-overflow-style: none;  /* Hide scrollbar in Internet Explorer */
    scrollbar-width: none;  /* Hide scrollbar in Firefox */
}
.wrapper {
    width: 90%;
    max-width: 1536px;
    margin-inline: auto;
    position: relative;
    height: 70px;
    margin-top: 15px;
    overflow: hidden;
    mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 1) 20%,
      rgba(0, 0, 0, 1) 80%,
      rgba(0, 0, 0, 0)
    );
    padding-bottom: 0px;
    margin-bottom: 0px;
}

@keyframes scrollLeft {
    to {
      left: -200px;
    }
}

.item {
    width: 200px;
    height: 50px;
    background-color: transparent;
    border-radius: 6px;
    position: absolute;
    left: max(calc(200px * 8), 100%);
    display: flex;               /* Add flexbox to center content */
    justify-content: center;     /* Horizontally center content */
    align-items: center;         /* Vertically center content */
    animation-name: scrollLeft;
    animation-duration: 30s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.item1 {
    animation-delay: calc(30s / 12 * (12 - 1) * -1);
}

.item2 {
    animation-delay: calc(30s / 12 * (12 - 2) * -1);
}

.item3 {
    animation-delay: calc(30s / 12 * (12 - 3) * -1);
}

.item4 {
    animation-delay: calc(30s / 12 * (12 - 4) * -1);
}

.item5 {
    animation-delay: calc(30s / 12 * (12 - 5) * -1);
}

.item6 {
    animation-delay: calc(30s / 12 * (12 - 6) * -1);
}

.item7 {
    animation-delay: calc(30s / 12 * (12 - 7) * -1);
}

.item8 {
    animation-delay: calc(30s / 12 * (12 - 8) * -1);
}

.item9 {
    animation-delay: calc(30s / 12 * (12 - 9) * -1);
}

.item10 {
    animation-delay: calc(30s / 12 * (12 - 10) * -1);
}

.item11 {
    animation-delay: calc(30s / 12 * (12 - 11) * -1);
}
.item12 {
    animation-delay: calc(30s / 12 * (12 - 12) * -1);
}

.item h4 {
    margin: 0;                  /* Remove default margin to avoid layout issues */
    color: white;               /* Ensure text is visible */
}


h4{
    font-family: 'Merriweather', serif; /* Font family updated */
}
.header-buttons {
    display: flex; /* Ensure the buttons are displayed */
    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* Optional: Starts slightly lower */
    transition: opacity 1s ease, transform 1s ease; /* Smooth fade-in and slide */
}

.header.shrink .header-buttons {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Moves to original position */
}
.backbones{
    font-family: 'Merriweather', serif;;
    font-size: 25px; 
    margin-bottom: 0px;
    padding-bottom:0px ;
}
.backboneshead{
    padding-top: 40px;
    display: flex;
    justify-content: center;
}
@media (max-width: 800px) {
    #header h1 {
        font-size: 24px;
        line-height: 1.2; /* Adjust line height for better spacing */
        max-width: 100%; 
        white-space: normal; /* Allow text wrapping */
        word-wrap: break-word; /* Ensure long words break to fit the container */
        word-break: break-word; /* Break words if necessary */
        padding: 0 10px; /* Add padding to prevent clipping */
        margin: 0; /* Ensure there's no unwanted margin */
    }

    #header {
        padding: 20px; /* Ensure the header has space around its content */
    }
    
}
@media (max-width: 800px) {
    /* Header - No extra padding or margin */
    #header {
        padding: 0;
        margin: 0;
        text-align: center; /* Ensure content is centered */
    }

    /* Center the logo and dark square together */
    

    /* Adjust header text */
    #header h1 {
        font-size: 24px;
        line-height: 1.2;
        white-space: normal;
        word-wrap: break-word;
        padding: 0 10px;
        margin: 0;
        text-align: center; /* Ensure header text is centered */
        max-width: 100%;
    }

    /* Adjust text container */
    .kilannapara-intro-text {
        max-width: 700px;
        padding: 10px;
        text-align: center;
        margin: 0 10px; /* Keep consistent margin on left and right */
    }
}
fieldset{
    border-radius: 8px;
    border-color: #1e3a81;
}



  
