* {
  box-sizing: border-box;
}

body {

}

/* :nth-last-of-type(3) {
  border: solid orange 2px;
} */

section table {
  margin-bottom: 50px;
}

thead {
  background-color: darkblue;
  color: white;
}

tbody tr:nth-child(4n + 1) {
  background-color: yellow;
  color: black;
}

tbody tr:nth-child(4n + 3) {
  background-color: red;
  color: black;
}

tfoot {
  background-color: gray;
  color: white;
}

/* Table 2 */
.table-2 tbody tr:nth-child(odd) {
  background-color: #ddf;
}

.table-2 tbody tr:nth-child(even) {
  background-color: lightgray;
}

.table-2 tbody td:nth-child(1) {
  background-color: gray;
  color: white;
}

.table-2 tfoot {
  background-color: gray;
  color: white;
}

/* Table 3 */
.table-3 tfoot {
  background-color: #ddf;
  color: black;
}

.table-3 tbody tr:nth-child(odd) td:nth-child(even),
.table-3 tbody tr:nth-child(even) td:nth-child(odd) {
  background-color: lightgray;
}

.table-3 tbody tr:nth-child(odd) td:nth-child(odd),
.table-3 tbody tr:nth-child(even) td:nth-child(even) {
  background-color: #eee;
  color: black;
}
