
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    background-color: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.year-buttons {
    display: flex;
    justify-content: space-between; /* Space out buttons evenly */
    gap: 10px; /* Add spacing between buttons */
    width: 100%; /* Ensure the container spans the full width */
    text-align: center;
    margin: 20px 0;
    
}

.year-buttons .year-button {
    font-size: 16px;
    background-color: #633777;
    text-decoration: none;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    flex: 1; /* Make each button take up equal space */
    padding: 10px; /* Add padding for better appearance */
    text-align: center; /* Center the text inside the button */
    outline: none; /* Remove default focus outline */
    opacity: 1; /* Reduced opacity by default */
}

.year-button-activ {
    font-size: 16px;
    background-color: #633777;
    border: solid;
    border-width: 3px;
    border-color: #E0C5EC;
    text-decoration: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    flex: 1; /* Make each button take up equal space */
    padding: 10px; /* Add padding for better appearance */
    text-align: center; /* Center the text inside the button */
    outline: none; /* Remove default focus outline */
    opacity: 1; /* Reduced opacity by default */
}


.year-buttons .year-button:hover {
    background-color: #371049d5;
}
.calendar-image-container {
    width: 100%;
    display: flex;
    justify-content: center; /* Centers the image horizontally */
    margin-bottom: 20px; /* Space between the image and the calendar */
}

.calendar-image {
    width: 100%; /* Full width */
    max-width: 800px; /* Adjust as needed */
    height: auto;
    border-radius: 10px; /* Optional rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow */
}



.availability-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.schedule-item {
    font-family: inherit; /* will use the body's font ("Domine") */
    font-weight: inherit;
    font-size: 1rem; /* adjust as needed */
    margin: 0.5rem 0;
  }
  



.calendar-container {
    width: 100%;
    max-width: 800px;
    padding: 5px 10px;
    background-color: none;
    border-radius: 8px;
    overflow-x: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #371049;
    color: white;
    padding: 1px 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-size: 0.9rem;
}

.nav-arrow {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Adjust margin for WhatsApp button container */
.whatsapp-button-container {
    display: flex;
    justify-content: center; /* Center the button horizontally */
    margin-top: 20px; /* Increase the margin to give more space below the calendar */
}

#popup-title {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: 900;
    font-size: 35px;
  }


#event-schedule{
    display: flex;
    flex-direction: column;
    gap: 5px; /* Adjust the value as needed */
}

.weekday-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background-color: #d0c6e0a9;
    padding: 5px 4px;
    text-align: center;
    font-weight: bold;
    font-size: 0.8rem;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

.sub-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  

.day-button {
    font-weight: 900;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligns content to the top */
    align-items: center;
    padding: 5px; /* Default for mobile */
    font-size: 0.8rem;
    text-align: center;
    background-color: #e9ecef;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    min-height: 90px; /* Default for mobile */
    box-sizing: border-box;
    position: relative;
    min-height: 130px; /* Increase height to elongate the shape */
}


.full-date {
    position: relative;
    margin-bottom: 5px;
    background-color: white;
    padding: 4px 10px;
    border-radius: 5rem;
    color: rgb(31, 31, 31);
    font-weight: bold;
    font-size: 0.55rem;
    white-space: nowrap;
    z-index: 1;
}



.event-text {
    font-weight: bolder;
    font-size: 0.75rem;
    color: #ffffff;
    margin-bottom: 2px;
    font-weight: 800; 
    
}



.event-location {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;

    font-size: 0.3rem;
    color: #ffffff;
    font-weight: 800;
    min-height: 24px; /* adjust this value to your design */
}


.event-location .location-icon {
    /* If needed, adjust spacing for the icon */
    margin-bottom: 2px;
}



.green {
    background-color: #31a841;
    color: white;
}

.orange {
    background-color: #eb7526;
    color: white;
    
}

.red {
    background-color: #dd4f5e;
    color: white;
}

.day-button:hover {
    opacity: 0.9;
}

.day-button.empty {
    background-color: #cccccc;
    cursor: default;
}



/* Mobile responsiveness */
@media (max-width: 768px) {
    .calendar-container {
        padding: 10px;
    }

    #event-schedule{
        display: flex;
        flex-direction: column;
        gap: 0px; /* Adjust the value as needed */
    }
    




    .calendar-header {
        padding: 5px;
        font-size: 0.8rem;
    }

    .weekday-row {
        font-size: 0.75rem;
        padding: 4px;
        gap: 4px;
    }

    .day-button {
        padding: 5px 2px;
        font-size: 0.65rem;
        min-height: 75px;
    }

    .date-number {
        font-size: 0.75rem;
    }

    .event-text {
        font-size: 0.7rem;
    }

    .programs-text {
        font-size: 0.65rem;
    }

 

    .location-text img {
        width: 8px;
        height: 8px;
    }
}

.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 40%; /* Reduced from 50% to 40% to move it up */
    transform: translate(-50%, -40%); /* Adjusted translation accordingly */
    width: 70%;
    max-width: 400px;
    background-color: white;
    padding: 10px 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.popup-content {
    padding: 10px 10px;
    font-weight: 400;
    text-align: center;
    
}


.popup .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.8rem;
    color: #333;
}

/* Text content inside the day */
.day .text-content {
    font-size: 0.7rem;
    color: #ffffff;
    text-align: center;
    font-weight: normal;
    margin-top: 10px;
}


.whatsapp-button-container {
    display: flex;
    justify-content: center; /* Center the button horizontally */
    margin-top: 70px; /* Space above the button */
}

.whatsapp-contact-link {
    display: flex;
    align-items: center; /* Align icon and text vertically */
    background-color: #25D366; /* WhatsApp green color */
    border-radius: 5rem; /* Slightly less rounded button */
    padding: 6px 12px; /* Smaller padding for compact design */
    color: #fff; /* White text */
    font-size: 1.1rem; /* Slightly smaller text */
    font-weight: bold;
    text-decoration: none; /* Remove underline */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); /* Slightly lighter shadow */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.whatsapp-contact-link img.whatsapp-icon {
    width: 30px; /* Adjust icon size to match smaller button */
    height: 25px;
    margin-right: 8px; /* Slightly smaller space between icon and text */
}


/* Hover Effects */
.whatsapp-contact-link:hover {
    background-color: #30be43; /* Darker green on hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
}




@media (max-width: 768px) {

    .full-date{
        font-size: 0.3rem;
        padding: 3px 3px;
    }

    .popup {
        width: 80%;
        height: fit-content;
        padding: 0px;
    }

    .popup .close {
        font-size: 1.2rem;
    }

    .whatsapp-button-container {
        display: flex;
        justify-content: center; /* Center the button horizontally */
        margin-top: 30px; /* Space above the button */
    }
}

@media (max-width: 768px) {
    .calendar-container {
        padding: 5px;
    }


    .popup-content {
        padding: 10px 10px;
        font-size: 15px;
        font-weight: 400;
        text-align: center;
        
    }

    .calendar-header {
        padding: 5px;
        font-size: 0.8rem;
        max-height: 30px;
    }

    .weekday-row {
        font-size: 0.75rem;
        padding: 4px;
        gap: 4px;
    }

    .day-button {
        font-size: 0.4rem;
        min-width: 0;
    }

    .full-date {
        margin-bottom: 5px;
        font-size: 0.31rem;
        padding: 2px 3px;
    }


    .sub-text {
        position: absolute;
        font-size: 4.5px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
      }

}