/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

:root {
    color-scheme: dark light;
    --background-color: rgb(40, 40, 40);
    --border-color: rgb(255, 255, 255);
    --text-color: rgb(255, 255, 255);
    --table-header-color: rgb(64, 63, 68);
    --table-alternating-row-color: rgb(19, 7, 97);
    --table-background-color: rgb(10,10,10);
}

@media (prefers-color-scheme: light) {
    :root {
        --background-color: white;
        --border-color: black;
        --text-color: rgb(0, 0, 0);
        --table-header-color: rgb(154, 144, 221);
        --table-alternating-row-color: rgb(224, 219, 255);
        --table-background-color: rgb(247, 247, 247);
    }
}

body {
    font-family: sans-serif;
    font-weight: 500;
    margin: 0px;
    height: 100%;
    width: 100%;
    color: var(--text-color);
    border-color: var(--border-color);
    background-color:  var(--background-color);
}

p {
    padding-top: 0.20rem;
}

main {
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: column;
    margin-left: 1rem;
    margin-right: 1rem;

    /* margin-bottom: 1rem;
    margin-top: 1rem;
    margin-left: 1rem;
    margin-right: 1rem; */
}

table,
th,
td {
    border-color: var(--border-color);
    border-width: 1px;
    border-style: solid;
}


table {
    /* padding: 0; */
    /* box-sizing: border-box; */
    /* border-collapse: collapse; */
    border-spacing: 0;
    border-width: 1px;
    border-style: solid;
    background-color: var(--table-background-color);
}

th, td {
    border-top-width: 0;
    border-left-width: 0;
}

tfoot th, tfoot td {
    text-align: center;
    font-weight: bold;
}

th:last-child, td:last-child {
    border-right-width: 0;
}

tbody tr:last-child td,
tfoot tr:last-child td {
    border-bottom-width: 0;
}

tbody tr th[scope=col] {
    background-color: var(--table-header-color);
}

th tr th[scope=row] {
    background-color: var(--table-header-color);
}

/* th[colspan=3] {
    background-color: var(--table-header-color);
} */

tfoot tr th[scope=row] {
    background-color: var(--table-header-color);
}

tbody tr:nth-child(even) {
    background-color: var(--table-alternating-row-color);
}