table {
    border: 1px solid black;
    border-collapse: collapse;
}

th {
    padding: 2px 5px;
    border: 1px solid black;
}

td {
    padding: 2px 5px;
    border: 1px solid black;
}

thead {
    background: #ddd;
}

table#results.js-sort-0 tbody tr td:nth-child(1),
table#results.js-sort-1 tbody tr td:nth-child(2),
table#results.js-sort-2 tbody tr td:nth-child(3),
table#results.js-sort-3 tbody tr td:nth-child(4),
table#results.js-sort-4 tbody tr td:nth-child(5),
table#results.js-sort-5 tbody tr td:nth-child(6),
table#results.js-sort-6 tbody tr td:nth-child(7),
table#results.js-sort-7 tbody tr td:nth-child(8),
table#results.js-sort-8 tbody tr td:nth-child(9),
table#results.js-sort-9 tbody tr td:nth-child(10),
table#results.js-sort-10 tbody tr td:nth-child(11),
table#results.js-sort-11 tbody tr td:nth-child(12),
table#results.js-sort-12 tbody tr td:nth-child(13),
table#results.js-sort-13 tbody tr td:nth-child(14),
table#results.js-sort-14 tbody tr td:nth-child(15) {
    background: #dee;
}

/* Table for three sub-tasks */
#results {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    border-collapse: collapse;
    width: 100%;
    text-align: center;
    margin: auto;
    margin-top: 1em;
    margin-bottom: 2em;
}

/*table tile*/
#results th {
    border: 1px solid #dfe7f7;
    padding: 10px;
    font-size: 16px;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 60%, #0ea5e9 100%);
    color: #f8fafc;
}

#results td {
    border: 1px solid #e2e8f0;
    padding: 10px;
}

#results tbody tr:nth-child(odd) {
    background-color: #f8fafc;
}

#results tbody tr:nth-child(even) {
    background-color: #eef2ff;
}

#results tbody tr:hover {
    background-color: #dbeafe;
    transition: background-color 0.15s ease;
}

/* highlight top rows */
#results tbody tr:nth-child(2) {
    background: linear-gradient(135deg, #fff7e6 0%, #ffeec2 100%);
    font-weight: 700;
}

#results tbody tr:nth-child(3) {
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
}

#results tbody tr:nth-child(4) {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

.js-sort-number:hover {
    text-decoration: underline;
    cursor: pointer;
}

.js-sort:hover {
    text-decoration: underline;
    cursor: pointer;
}

.best-score-text {
    color: #C6011F
    /* color: #3457D5 */
}
