body {
    background-color: #DCC9B6;
    height: 100%;
    margin: 0;
}

nav {
    left: 0;
    top: 0;
    display: flex;
    background-color: #E6A267;
    /*padding: 2%;*/
    flex-wrap: wrap;
}

#wrap {
    display: grid;
    min-height: 100%;
    gap: 25px;
    grid-template-areas:
        'header'
        'main';
    grid-template-rows: 50px auto;

    grid-template-columns: minmax(0, 1fr);
}

nav a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: max(1rem, min(1.7rem, 3vw));
    text-decoration: none;
    color: white;
    cursor: pointer;
    border: solid black 1px;
    overflow: hidden;
}


.material-symbols-sharp {
    font-size: inherit;
}

h1, h2 {
    text-align: center;
}

.login-form {
    margin: 0 auto;
    max-width: 400px;

    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 10px;

    background-color: #BD9975;
    padding: 40px;
    border-radius: 25px;
}

input {
    height: 2em;
    width: 20em;
}

input[type="submit"] {
    height: auto;
    background-color: #04AA6D;
    border: none;
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    margin: 4px 2px;
    cursor: pointer;
    line-height: 1;
}

table {
    border-collapse: collapse;
    width: 100%;
}

table, td, th {
    border: 1px solid;
    padding: 10px;
}

.btn-chore {
    width: 100%;
    height: 4em;

    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
}

.claim-chore {
    background-color: #7FDEFF;
}

.remove-chore {
    background-color: #FF6767;
}

.claimed {
    font-size: 16px;
    text-align: center;
}

.table-scroll {
    width: 100%;
    max-width: 100%;
    max-height: 80vh; /* Enable vertical scrolling */
    display: block;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll table {
    white-space: nowrap;
    border-collapse: separate;
    border-spacing: 0;
}

.table-scroll thead tr th {
    position: sticky;
    top: 0;
    background: #B2A198;
    z-index: 2;
}

.table-scroll th:first-child,
.table-scroll td:first-child {
    position: sticky;
    left: 0;
    background: #B2A198;

    white-space: normal;
    min-width: 120px;
    max-width: 180px;
    word-break: break-word;
    z-index: 2;
}

.table-scroll thead tr th:first-child {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 3;
}

tr:nth-child(odd) {
    background-color: lightgray;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.chore-name {
    font-size: 1.5rem;
}

/* ALERTS */
#messages {
    z-index: 5;
    position: fixed;
    margin: 10px;
    bottom: 5%;
    left: 0;
}

.alert {
    display: flex;
    font-size: 24px;
    padding-left: 5px;
    padding-right: 5px;
    margin-top: 10px;
    border-radius: 5px;
}

.success {
    border: 2px solid #45a545;
    background-color: #8ad18a;
    color: #45a545;
}

.error {
    color: #cd3333;
    border: 1px solid #cd3333;
    background-color: #f56f6f;
}

.warn {
    color: #cfba56;
    border: 2px solid #cfba56;
    background-color: #fff0a8;
    font-weight: bold;
}

.btn-close {
    border: none;
    background: transparent;
    font-size: 32px;
}