body {
    font-family: Garamond, "Apple Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
    color: #333;
    background-color: #fafafa;
}

#allContent {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px 32px;
}

.modal-overlay {
    height: 100vh;
    width: 100vw;
    /* rgba (not the opacity property) so only the dimmed backdrop is transparent —
       opacity on this element would composite its entire subtree, including the
       modal box itself, at reduced alpha. */
    background-color: rgba(80, 80, 80, 0.85);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: white;
    padding: 24px;
    border-radius: 8px;
    min-width: 320px;
    max-width: 90vw;
    max-height: 85vh;
    overflow: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

#boardTable, #forecastTable, #assignmentTallyTable {
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

#boardTable td, #boardTable th,
#forecastTable td, #forecastTable th,
#assignmentTallyTable td, #assignmentTallyTable th {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

#boardTable th, #forecastTable th, #assignmentTallyTable th {
    background-color: #f2f2f2;
    font-weight: 600;
}

button {
    font-family: inherit;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}

button:hover {
    background-color: #f0f0f0;
}

/* Pastel team palette — dark text (#333, inherited from body) for contrast on all. */
.team-red {
    background-color: #f7c9c9;
    border-color: #e59b9b !important;
}

.team-yellow {
    background-color: #f6e6a8;
    border-color: #e6cf6f !important;
}

.team-blue {
    background-color: #bcd6ef;
    border-color: #8fb8e0 !important;
}

.team-white {
    background-color: #e2e2e2;
    border-color: #c2c2c2 !important;
}
