
.table-container {
    display: block;           /* block voor scroll */
    overflow-x: auto;         /* horizontaal scrollen */
    width: 100%;
    text-align: center;       /* centreren van inline-elementen */
    margin-top: 1%;
}

table {
    display: inline-table;       /* centreren */
    border-collapse: collapse;   /* borders netjes samenvoegen */
    background-color: #f9f9f9;
    border-radius: 10px;         /* afgeronde hoeken */
    font-family: Arial, sans-serif;
    margin: 0 auto;              /* centreren */
    max-width: 100%;
    min-width: 300px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: center;
    word-break: break-word;
}

th {
    background: #333;
    color: #fff;
}

/* Bovenste rij afronden */
thead th:first-child {
    border-top-left-radius: 10px;
    border-top: none;
    border-left: none;
}

thead th:last-child {
    border-top-right-radius: 10px;
    border-top: none;
    border-right: none;
}

/* Laatste rij afronden */
tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
    border-bottom: none;
    border-left: none;
}

tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
    border-bottom: none;
    border-right: none;
}

/* Verwijder dubbele borders aan de randen van de eerste en laatste kolom */
tr td:first-child {
    border-left: none;
}

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

.thuisploeg {
    font-weight: bold;
}

.uitslag {
    background-color: yellow;
}

@media (max-width: 1400px) {
    .mega-container {
        width: 200%;
    }
    .table-container {
        width: 200%;
        margin-left: -3%;
    }
    td {
        padding: 8px;
        font-size: 14px;
    }
    table {
        display: inline-table;       /* centreren */
        width: 75%;
    }
}
