html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Helvetica", sans-serif;
}

p,ul {
    font-size: 18px;
}

.background {
    background-image: url('img/background.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.centered-div {
    width: 1000px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

.sitelogo {
    max-width: 300x;
    max-height: 100px;
    object-fit: contain;
}

.headerline {
    width: 100%;
    height: 3px;
    background-color: #073763;
    border: none;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    font-size: 15px;
}

.footerbox {
    width: 300px;
}

table {
    width: 800px;
    border-collapse: collapse;
}

table tr {
    display: block; /* Change display to block to allow cells to stack */
}

td {
    border: none;
    padding: 10px;
    text-align: center;
}

.referenties-td {
    width: 23%;
    /* Set width of each cell to 25% for desktop */
    display: inline-block;
    box-sizing: border-box;
    /* Include padding and border in the cell's total width */
    padding: 5px;
    /* Adjust spacing between cells */
}

td img {
    max-width: 180px;
    max-height: 120px;
    object-fit: contain;
    /* Behoud de verhouding */
}

@media only screen and (max-width: 768px) {
    p,ul {
        font-size: 14px;
    }

    .background {
        background-size: contain;
        /* Adjust background size for smaller screens */
    }

    .centered-div {
        width: 90%;
        /* Adjust width to fit smaller screens */
        padding: 10px;
        /* Adjust padding for smaller screens */
        overflow-y: auto;
        /* Enable scrolling for smaller screens if needed */
    }

    .sitelogo {
        max-width: 200px;
        /* Adjust maximum width for smaller screens */
        max-height: 80px;
        /* Adjust maximum height for smaller screens */
    }

    /* Change table layout to 2x4 */
    table {
        width: 100%;
        /* Ensure table takes full width of the viewport */
    }

    .referenties-td {
        width: 45%;
    }

    td img {
        max-width: 80px;
        /* Reduce maximum width for smaller screens */
        max-height: 54px;
        /* Reduce maximum height for smaller screens */
        width: 100%;
        /* Ensure images occupy the full width of their cells */
    }

    .footer {
        font-size: 10px;
    }
}