:root {
    --background-color: #f5f6f7;
    --text-color: #333;
    --header-background-color: #fafbfc;
    --border-color: #e1e4e8;
    --row-hover-color: #f1f3f5;
    --row-color: #f4f4f4;
    --row-alternate-color: #f6f8fa;
    --button-background-color: #333;
    --button-text-color: #fff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    font-size: 13px;
}

#switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: var(--button-background-color);
    color: var(--button-text-color);
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

#container {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    width: 80%; /* Adjust width as necessary */
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    max-width: 800px;
    margin: 40px auto 0;
    overflow: hidden;
}

h1 {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 500; /* Medium for the main part */
    color: var(--text-color);
    margin: 0;
    padding-bottom: 20px;
}

h1 span {
    font-weight: 300; /* Light for the year */
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px; /* Ensure table text size is 13px */
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 13px; /* Ensure table text size is 13px */
}

th {
    background-color: var(--header-background-color);
    font-weight: 600;
    position: relative;
    user-select: none;
    font-size: 13px; /* Ensure header text size is 13px */
}

th.ascending::after, th.descending::after {
    content: "";
    position: absolute;
    right: 10px;
    border: 5px solid transparent;
}

th.ascending::after {
    border-bottom-color: var(--text-color);
    top: 50%;
    transform: translateY(-50%);
}

th.descending::after {
    border-top-color: var(--text-color);
    top: 50%;
    transform: translateY(-50%);
}

tr:nth-child(even) {
    background-color: var(--row-alternate-color);
}

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

tr:hover {
    background-color: var(--row-hover-color);
}

tr td {
    border-bottom: 1px solid var(--border-color);
}

tr:last-child td {
    border-bottom: none;
}

/* Monospaced font and right alignment for columns 2, 3, and 4 */
td:nth-child(3), td:nth-child(4), td:nth-child(5),
th:nth-child(3), th:nth-child(4), th:nth-child(5) {
    text-align: left;
    font-size: 13px; /* Ensure text size is 13px */
}

/* Set column widths */
th:nth-child(1), td:nth-child(1) {
    width: 10px;
}

th:nth-child(2), td:nth-child(2) {
    width: 30%;
}
th:nth-child(3), td:nth-child(3),
th:nth-child(4), td:nth-child(4),
th:nth-child(5), td:nth-child(5)
th:nth-child(6), td:nth-child(6)
th:nth-child(7), td:nth-child(7) {
    width: 20%;
}

/* Dark mode variables */
body.dark {
    --background-color: #1e1e1e;
    --text-color: #f5f5f5;
    --header-background-color: #333;
    --border-color: #555;
    --row-hover-color: #444;
    --row-color: #444;
    --row-alternate-color: #2e2e2e;
    --button-background-color: #f5f5f5;
    --button-text-color: #1e1e1e;
}
