body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.header-container {
    position: fixed;
    top: 45px;
    width: 100%;
    background-color: #d3d3d3;
    text-align: center;
    padding: 10px 0;
    font-size: 1.4em;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-container-wrapper {
    position: fixed;
    top: 115px;
    bottom: 90px;
    left: 0;
    right: 0;
    overflow-y: auto;
    padding: 0 1in;
}

.calendar-container {
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0 1in;
}

.month {
    margin-bottom: 30px;
    border: 2px solid #000;
    padding: 20px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.logo-overlay {
    position: absolute;
    top: 57%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2; /* Adjust opacity as needed */
}
.month h2 {
    text-align: center;
    margin: 0;
    font-size: 2em;
    color: forestgreen;
    font-weight: bold;
}

.month h2 small {
    display: block;
    font-size: 0.7em;
    color: #444;
    margin-top: 5px;
    margin-bottom: 5px;
    font-weight: bold;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid darkgrey;
}

.calendar-table th, .calendar-table td {
    border: 1px solid darkgrey;
    padding: 8px;
    text-align: center;
    position: relative;
    height: 100px;
    vertical-align: top;
    background-color: #fff;


}

.calendar-table th {
    background-color: #f4f4f4;
    color: #444;
    font-size: 1.2em;
    text-align: center;
    vertical-align: middle;
    height: 60px;
    padding: 5px;
    line-height: 60px;

}

.myaamia-date {
    position: absolute;
    top: 5px;
    left: 5px;
    font-weight: bold;
    color: black;
}

.gregorian-date {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 0.8em;
    color: black;
}

.event {
    font-size: 0.9em;
    margin-top: 5px;
}

.event .tribal-event {
    color: forestgreen;
}

.event .english-event {
    color: #000;
}

.calendar-table td.empty {
    background-color: #e9e9e9;
}

footer.w3l-footer-22 {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
}

body {
    padding-bottom: 60px;
}

.calendar-message {
    font-size: 18px;
    text-align: center;
    color: #555;
}
.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    background-color: #d3d3d3;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.calendar-title {
    text-align: center;
    flex-grow: 1;
    font-size: 1.5em;
    margin: 0;
}
.year-selector {
    position: absolute;
    right: 20px;
    font-size: 14px;
    color: black;
}

.learn-more-link {
    position: absolute;
    right: 250px;
    font-size: 0.7em;
    text-decoration: none;
    color: black;
}
.learn-more-link:hover {
    text-decoration: underline;
    color: #007bff;
}
.event-tooltip {
    display: none;
    position: absolute;
    background-color: lightgrey;
    color: black;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    max-width: 200px;
}
.calendar-table td {
    position: relative;
    overflow: visible;
}
.moon-phase {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #000;
    background-color: #fff;
    z-index: 1;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
}
.first-quarter {
    background: linear-gradient(to right, #000 50%, #fff 50%);
}
.full-moon {
    background-color: #fff;
}
.last-quarter {
    background: linear-gradient(to right, #fff 50%, #000 50%);
}

/* Ensure no wrapping by default */
.events-table td {
    white-space: nowrap; /* Prevent wrapping for all cells */
}

.events-table td:nth-child(3), .events-table th:nth-child(3) {
    width: 20%; /* Reduce the width of the Event Name column */
    white-space: normal;
}
.events-table td:nth-child(4), .events-table th:nth-child(3) {
    width: 20%; /* Reduce the width of the Event Location column */
    white-space: normal;
}

/* Allow wrapping only for the Event Description column */
.events-table td:nth-child(5) {
    white-space: normal; /* Allow wrapping */
    word-break: break-word; /* Break long words */
    width: 40%; /* Event Description (adjust to make it narrower) */
}
/* Allow long links in the Event Link column to wrap */
.events-table td:nth-child(6), .events-table th:nth-child(6) {
    word-wrap: break-word; /* Break long words */
    word-break: break-all; /* Break words anywhere if necessary */
    white-space: normal; /* Allow wrapping */
    width: 20%;
}

/* Keep the action buttons aligned properly */
.events-table .actions-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
}

.events-table .btn {
    white-space: nowrap; /* Prevent button text wrapping */
    margin-right: 5px;
}

.calendar-table td:hover .tribal-event {
    color: blue;
    cursor: pointer; /* Optional: Make it look clickable */
}
