/* Bootstrap */
body {

}
.btn-primary, .btn-primary:active, .btn-primary:visited {
    background-color: #005e2a !important;
    border: none !important;
    border-radius: 0% !important;
}

.btn-primary:hover {
    filter: brightness(85%);
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header  {
    background: #560059;
    width: 100%;
    height: 75px;
}

.banner {
    width: 100%;
    max-width: 800px;
    height: 150px;
    /* Fixed height for the banner */
    text-align: center;
    border: 1px solid #ddd;
    /* Add borders matching the calendar's borders */
    overflow: hidden;
    position: relative;
    margin: 0;
}

.banner img {
    width: 100%;
    /* Full width relative to the container (800px max width) */
    height: 100%;
    /* Ensures the height matches the 150px */
    object-fit: cover;
    /* Ensures the image scales properly to fill 800x150 */
}

.banner h3 {
    position: absolute;
    bottom: 10px;
    /* 10px from the bottom */
    left: 10px;
    /* 10px from the left */
    margin: 0;
    /* Remove any default margin */
    padding: 5px;
    background-color: transparent;
    /* Semi-transparent black background */
    color: white;
    font-size: 1.5vw;
    border-radius: 3px;
    /* Rounded corners for the background */

}

.calendar {
    width: 100% !important;
    max-width: 1200px !important; 
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    margin: 0;
}

.calendar h3 {
    margin: 0;
    padding: 10px 0;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    background-color: #f4f4f4;
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

.days div {
    font-weight: bold;
    text-align: center;
}

.dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.dates div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    /* /*background-color: #fff; */

}

.dates div .event-info {
    background: white;
    color: black;
    padding: 5px;
    font-size: 10px;
    text-align: center;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    display: block;
    margin-top: 5px;
    text-decoration: none;
    /* Remove underline for <a> */
}

.today {
    background-color: whitesmoke;
    color: black;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.today .event-info {
    background-color: rgba(0, 0, 0, 0.7);
    /* Darker background for event info */
    color: white;
    /*Ensure text is visible */
}

.event {
    /* background-color: white; */
    color: black;
    font-weight: bold;
    position: relative;
}

/* .selected {
    background-color: #FFC107;
    color: black;
} */
.navigation {
    display: flex;
    align-items: center;
    /* Vertically centers the content */
    justify-content: space-between;
    /*Spreads the buttons and the heading across the width */
    width: 100%;
    /* Ensures the navigation takes up the full width */
    margin: 5px 0;
    text-align: center;
}

.Headings {
    display: flex;
    flex-direction: column;
    /* Stack h1, h4, and h2 vertically */
    text-align: center;
    /* Center align the text */
}

.navigation h1 {
    /* More space between banner and h1 */
    margin-bottom: 5px;
    /* Less space between h1 and h4 */
    text-align: center;
    flex-grow: 1;
    /* Allows the heading to expand between the buttons */
    color: #560059;
}

.navigation h2 {
    color: #560059;
    margin-top: 15px;
}

.navigation h4 {
    color: #560059;
    margin-top: 15px;
}

a.event-info {
    color: black;
    text-decoration: none;
    padding: 5px;
    border-radius: 4px;
    background-color: #ffeb3b;
}

a.event-info:focus {
    outline: 2px solid #0056b3;
}

button {
    font-size: 16px!important;
    padding: 16px;
    border: none;
    background-color: #560059;
    color: white;
    cursor: pointer!important;
    border-radius: 4px!important;
    margin-top: 0px!important;
}

button:focus {
    outline: 2px solid #0056b3;
}

/* Footer */



@media (max-width: 768px) {
    .calendar {
        width: 100%;
    }

    .days {
        display: none;
        /* Hide the days' header on mobile */
    }

    .dates {
        display: block;
        /* List view on mobile */
    }
    
    .dates div {
        display: none;
        /* changed from block to none*/
        text-align: left;
        padding: 10px;
        border-bottom: 1px solid #ddd;
        border-radius: 0;
        margin: 0;
    }

    .dates div.event {
        display: block;
    /* Show only event days */
    }

    .event-info {
        font-size: 14px;
        /* Larger text for mobile */
        margin-top: 10px;
    }
}