html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

table {
    border: none; /* Removes the border around the table */
    border-collapse: collapse; /* Ensures no spacing between cells */
}

td, th {
    border: none; /* Removes borders around table cells */
    outline: none; /* Ensures no outline is shown */
}
.NewsContainer {
    width: 100%;
    height: 100%;
    margin-right: auto;
    margin-left: 0;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}
.NewsDisplay {
    padding: 10px;
    max-height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column; /* Use column instead of row */
    width: 60%; /* Enforces 80% width */
    flex-shrink: 0;
    flex-grow: 0; /* Allows it to take up space within a flex container */
    margin: 0 auto;
    border: 1px solid lightgray;
}

    .NewsDisplay > div {
        width: 100%; /* Ensures that the child fills the parent container */
        box-sizing: border-box; /* Prevents padding from affecting width */
    }

.NewsArticle {
    width: 220px;
    height: 340px;
    border: 1px solid lightgray;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;
    overflow: auto;
    word-wrap: break-word;
    white-space: normal;
}
    .NewsArticle span {
        display: block;
    }

    .NewsArticle:hover{
        cursor:pointer;
        transform:scale(1.05);
        border: 2px solid lightgray;
    }

td {
    padding: 5px;
    vertical-align: top;
}

p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
}
/* Style for the Calendar grid container */
.calendar-grid {
    width: 100%;
}

    /* Style for each cell in the grid */
    .calendar-grid td {
        padding: 10px;
        text-align: center;
        vertical-align: top;
        width: 20%;
    }

/* Style for the Calendar section */
.Calendar {
    max-width: 20%;
    min-width: 20%;
    padding: 10px;
    box-sizing: border-box;
}

/* Style for the events */
.EventsNotHovarable {
    background-color: var(--maincolor);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    color: white;
    border-radius: 8px;
}
.Events {
    background-color: var(--maincolor);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    color: white;
    border-radius: 8px;
    transition: transform 0.2s ease, padding 0.2s ease;
    text-decoration:none;
}

/* Style for the opened/expanded event */
.EventsOpened {
    background-color: var(--maincolor);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a shadow for emphasis */
    transition: transform 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease;
}
    .EventsOpened span {
        color: #e0e0e0;
    }
    /* Styling for the title of the event */
    .Events .label-title {
        font-weight: bold;
        font-size: 14px;
        margin-bottom: 5px;
        color: white;
    }
    .Events .label-day, .Events .label-date {
        font-size: 12px;
        color: #555;
        color: white;
    }
.event-description {
    white-space: normal; /* Allows text to wrap */
    word-wrap: break-word; /* Ensures long words break properly */
    width: 100%; /* Optionally, set a width or max-width to control wrapping */
    display: block; /* Makes the label behave like a block element */
}

.close-button-container {
    display: flex; 
    justify-content: flex-end; 
}

/* Style for the close button */
.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

    /* Hover effect for better interaction */
    .close-button:hover {
        background: rgba(255, 255, 255, 0.2); 
        color: #f00;
    }
.CalendarButton {
    align-content: end;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    padding: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    background: linear-gradient(to top, lightgray 0%, lightgray 100%);
    background-size: 100% 0%; /* Start with no visible color */
    background-repeat: no-repeat;
    background-position: bottom;
    transition: background-size 0.3s ease-in-out;
}
    .CalendarButton:hover {
        background-size: 100% 100%;
        background-position: bottom;
    }

.tempDiv {
      text-align: center;
}

    /* Hover effect for better interaction */
.tempDiv:hover {
    cursor: pointer;
    transform:scale(1.05);
}

.RedButton {
    background-color: red;
    border: none;
    padding: 5px 10px;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    align-self: flex-end; /* Moves button to the right */
}

    .RedButton:hover {
        background-color: darkred;
    }

.lnkMoreButton {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    padding: 5px;
    text-decoration: none;
    margin: 20px 0px 5px 0px;
    width: 90%;
    text-align: center;
    transition: ease-in-out 0.3s;
}

    .lnkMoreButton:hover {
        transform: scale(1.1);
        cursor: pointer;
    }

.LegendSpan {
    width: 80px;
    height: 25px;
    background-color: #59d600;
    margin-right: 15px;
    color: #e0e0e0;
    text-align: center;
    justify-content: center;
    border-radius: 6px;
    display: flex;
    padding: 5px;
    align-items: center;
}

.WeatherContent {
    flex-direction: column;
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    padding: 5px;
    border-radius: 8px;
    color: var(--text-color) !important;
    font-size: 12px;
}
    .WeatherContent, .WeatherContent * {
        text-decoration:none;
        font-size: 12px;
        color: var(--text-color) !important;
    }
        .WeatherContent font {
            font-size: 12px !important;
        }
