main, section, .lastThree {
    margin-left: 20px;
    width: 250px;
}

main {
    background-color: #DDD;
}

section {
    background-color: #DDF;
}

.lastFour {
    background-color: #CCE;
}




.table1, .table2, .table3 {
    display: inline-block;
    margin-bottom: 50px;
    table { background-color: #DDF; }
    thead tr { background-color: navy; }
    thead, tfoot {
        color: white;
    }
}

.table1 {
    tbody tr:nth-child(4n-3) { background-color: yellow; }
    tbody tr:nth-child(4n-1) { background-color: red; }
    tfoot tr { background-color: gray; }
}

.table2 {
    tbody tr:nth-child(even) { background-color: lightgray; }
    tbody tr td:nth-child(1), tfoot tr {
        background-color: gray;
        color: white;
    }
}

.table3 {
    tbody tr:nth-child(even) td:nth-child(even),
    tbody tr:nth-child(odd) td:nth-child(odd) {
        background-color: #f0f0f0;
    }

    tbody tr:nth-child(odd) td:nth-child(even),
    tbody tr:nth-child(even) td:nth-child(odd) {
        background-color: #d0d0d0;
    }

    tfoot tr { color: black }
}