body, html {
    font-family: Arial, sans-serif;
    background-color: #3c527c;
    margin: 0;
    padding: 0;
    height: 100%;
}

header {
    text-align: center; /* Center the logo horizontally */
    width: 100%; /* Full width of the viewport */
    padding: 1rem 0; /* Add some space above and below the logo */
}

.logo-container {
    max-width: 200px; /* Adjust this value to set max size for larger screens */
    margin: 0 auto; /* Center the logo */
}

.logo {
    max-width: 100%; /* Ensure the logo doesn't exceed its container's width */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove any space below the image */
}

/* slider container css */
.slider-container {
    position: relative;
    width: calc(100%- 20px);
    max-width: calc(100vh - 6rem); /* Adjust as needed */
    height: calc(50vh - 4em); /* This value assumes 1rem margin on top and bottom */
    margin: 1rem auto; /* Margin to give space from the top and bottom */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the slider within its container */
    padding: 0;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    z-index: 1;
}
/* Lines for slider-container */
.slider-container::before, .slider-container::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: white;
    position: absolute;
    left: 0;
}
.slider-container::before {
    top: 0;
}
.slider-container::after {
    bottom: 0;
}
.motif-container {
    /* This container will hold the motif */
    overflow: hidden; /* Hides any overflow if the image scales up too much */
   /* background-color: #fffaf0; */
    position: absolute;
    width: 100%; /* Full width of parent container */
    z-index: 0; /* Ensure the motif is behind other elements */
    overflow: hidden;
    z-index: 50;
    top: 0;
    left: 0;
}
/* pattern container css */
:root {
    --dot-size: 3px;  /* Size of each dot */
    /* --background-color: #ffffff;  Background color */
}
.pattern-container {
    width: 100vh;
    background-color: var(--background-color);
    overflow: hidden;
    display: grid;
    grid-template-rows: repeat(14, var(--dot-size)); /* 14 rows each dot-size high */
}
.pattern-row {
    height: var(--dot-size);
    width: 100vh;
    background-repeat: repeat-x;
    background-size: calc(20 * var(--dot-size)) var(--dot-size); /* 20 dots wide */
}
.slider {
    width: 100%;
    height: 100%; /* Fill the container */
    overflow: hidden;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}
.slide.active {
    opacity: 1;
}
.indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}
.indicator {
    width: 15px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.indicator.active {
    background-color: white;
}
.main-nav {
    background-color: #3c527c;
    /* Position nav below slider */
    position: -webkit-sticky; /* Safari support */
    position: sticky; /* Standard */
    width: calc(100% - 20px);
    max-width: calc(100vh - 6rem); /* Match the slider's max-width */
    margin: 0 auto; /* Center the nav */
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: top 0.3s ease, margin-top 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for the sticky effect */
    z-index: 10;
}
/* Lines for main-nav */
.main-nav::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: white;
    position: absolute;
    left: 0;
    top: 0;
}
.main-nav::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: white;
    position: absolute;
    left: 0;
    bottom: 0;
}
.main-nav::before {
    top: 0;
}
.main-nav::after {
    bottom: 0;
}
/* Vertical line above the main-nav - use a new element or class */
.vertical-line {
    position: absolute;
    width: 1px;
    height: 1rem;
    background-color: white;
    top: -1rem; /* Position it just above the nav */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%);
    z-index: 9; /* Lower than the nav's z-index to ensure it's below */
    margin: 0;
    padding: 0;
}
.main-nav.sticky {
    position: fixed;
    top: 0;
    left: 50%; /* Center the nav */
    width: calc(100% - 20px); /* Match original width */
    max-width: calc(100vh - 6rem); /* Match original max-width */
    transform: translateX(-50%); /* Adjust to ensure it stays centered */
    margin: 1rem auto; /* Center the nav */
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    list-style-type: none;
}
.main-nav.sticky ul {
    overflow-x: hidden; /* Prevents horizontal scrollbar */
}
.main-nav li {
    display: inline-block;
    margin: 0 1rem;
}
.main-nav a {
    color: white;  /* Set text color to white */
    font-weight: bold; /* Make the text bold */
    text-decoration: none; /* Remove underline */
}
.main-nav a:hover {
    color: white;  /* Keep white on hover */
    font-weight: bold; /* Keep bold on hover */
    text-decoration: none; /* No underline on hover */
}
.content-section {
    max-width: 800px; /* Adjust based on your design needs */
    margin: 0 auto;  /* Center align */
    padding: 20px;   /* Add some space around the content */
    text-align: justify; /* Justify text for a neat look */
    display: none;  /* Hide sections by default */
}
/* Show the first section initially */
.content-section.about {
    display: block;
}
.content-section p {
    font-size: 16px; /* Adjust as needed */
    line-height: 1.6; /* Improves readability */
    color: #ffffff;
}

/* Calendar styles */
#calendar {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#month {
    padding: 15px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    background-color: #4CAF50;
    color: white;
}

#days {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;
    background: #f9f9f9;
}

#days div {
    width: calc(100% / 7);
    text-align: center;
}

#dates {
    display: flex;
    flex-wrap: wrap;
}

#dates div {
    width: calc(100% / 7);
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #e0e0e0;
}

#dates div:hover {
    background-color: #e6e6e6;
}

.event-day {
    background-color: #ffe6e6; /* Light red background */
    border: 2px solid #ff9999; /* Red border for emphasis */
    border-radius: 5px;
}

.multi-day-event {
    background-color: #ffcccc; /* Different shade for multi-day events */
    border: 2px solid #ff6666; /* Different border color */
}

.multi-day-event a {
    text-decoration: none; /* Remove underline from links for multi-day events */
}

.multi-day-event a::before {
    content: "↳ "; /* Arrow to indicate continuation */
}

#year-calendar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1000px;
    margin: 0 auto;
}

.month {
    flex-basis: calc(33.333% - 20px); /* 3 months per row with spacing */
    margin: 10px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

.month h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.event {
    padding: 5px;
    margin: 5px 0;
    background-color: #e6e6e6;
    border-left: 5px solid #4CAF50;
}

.event a {
    color: #333;
    text-decoration: none;
    display: block;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
    .logo-container {
        max-width: 150px; /* Reduce logo size for smaller screens */
    }
    .slider-container {
        max-width: calc(100vh - 4rem); /* Adjust max-width for mobile */
        height: calc(50vh - 8rem); /* Adjust height for smaller margin on mobile */
        position: relative; /* or absolute if needed */
        z-index: 1; /* Bring it to the front if needed */
    }
    .indicators {
        bottom: 10px;
    }
    .indicator {
        width: 10px;
        height: 10px;
    }
    .main-nav {
        max-width: calc(100vh - 2rem); /* Adjust for mobile */
    }
    .content-section {
        flex: 1;  /* Allow content to grow and push footer down if needed */
        padding: 10px;
    }
}
@media (max-width: 480px) {
    .slider-container {
        max-width: calc(100vh - 2rem); /* Further adjust for small screens */
        height: calc(50vh - 6rem); /* Even smaller margin for tiny screens */
    }
    .indicators {
        bottom: 5px;
    }
    .indicator {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    .main-nav {
        max-width: calc(100vh - 1rem); /* Match the slider's max-width for small screens */
    }
    .main-nav li {
        margin: 0 0.5rem; /* Adjust spacing for smaller screens */
    }
    .main-nav a {
        font-size: 0.8rem;
    }
    .content-section {
        padding: 10px;
    }
}
@media screen and (min-width: 768px) {
    #calendar {
        max-width: 600px;
        margin: 0 auto;
    }
}
@media screen and (max-width: 768px) {
    .month {
        flex-basis: calc(50% - 20px); /* 2 months per row on smaller screens */
    }
}

@media screen and (max-width: 480px) {
    .month {
        flex-basis: 100%; /* Full width on very small screens */
    }
}
/* Media query for very small screens if needed */
@media (max-width: 320px) {
    .slider-container {
        margin: 0.5rem auto;
    }
    .vertical-line {
        height: 0.5rem; /* Reduce height for very small screens */
        top: -0.5rem;
    }
    .main-nav a {
        font-size: 0.8rem;
    }
}
/* Media query for larger screens if you want to increase line height */
@media screen and (max-width: 768px) {
    .slider-container {
        margin: 1rem auto;
    }
    .vertical-line {
        height: 1rem; /* Increase height for larger screens */
        top: -1rem;
    }
}
/* Media query for larger screens if you want to increase line height */
@media (min-width: 768px) {
    .slider-container {
        margin: 1.5rem auto;
    }
    .vertical-line {
        height: 1.5rem; /* Increase height for larger screens */
        top: -1.5rem;
    }
}