/*       table id = lihtne        */
#lihtne {
    width: 60%;
    border: 1px solid black;
    height: 200px;
    border-collapse: collapse;
}

#lihtne td {
    border: 1px solid black;
    text-align: center;
}

/* pseudostiilide kasutamine*/
/*    rida tr         lahter td        */
#lihtne tr:nth-child(1) td:nth-child(1) {
    background-color: red;
}

#lihtne tr:nth-child(1) td:nth-child(2) {
    background-color: blue;
}

#lihtne tr:nth-child(2) td:nth-child(1) {
    background-color: green;
}

#lihtne tr:nth-child(2) td:nth-child(2) {
    background-color: yellow;
}

/*       table id = keeruline1        */
#keeruline1 {
    width: 60%;
    border: 1px solid black;
    height: 200px;
    border-collapse: collapse;
}

#keeruline1 td {
    border: 1px solid black;
    text-align: center;
}

/*       table id = keeruline2        */
#keeruline2 {
    width: 60%;
    border: 1px solid black;
    height: 200px;
    border-collapse: collapse;
}

#keeruline2 td {
    border: 1px solid black;
    text-align: center;
}


/*       table id = keeruline3 */
#keeruline3 {
    width: 30%;
    border: 1px solid black;
    height: 300px;
    border-collapse: collapse;
}

#keeruline3 td {
    border: 1px solid black;
    text-align: center;
}

/*       table id = keeruline4 */
#keeruline4 {
    width: 25%;
    border: 1px solid black;
    height: 250px;
    border-collapse: collapse;
}

#keeruline4 td {
    border: 1px solid black;
    text-align: center;
}

#keeruline4 tr:nth-child(1) td:nth-child(1) {
    background-color: red;
}

#keeruline4 tr:nth-child(2) td:nth-child(1) {
    background-color: blue;
}

#keeruline4 tr:nth-child(2) td:nth-child(2) {
    background-color: green;
}

#keeruline4 tr:nth-child(2) td:nth-child(3) {
    background-color: purple;
}

#keeruline4 tr:nth-child(3) td:nth-child(1) {
    background-color: gray;
}

#keeruline4 tr:nth-child(3) td:nth-child(2) {
    background-color: yellow;
}

#keeruline4 tr:nth-child(3) td:nth-child(3) {
    background-color: black;
}

#keeruline4 tr:nth-child(4) td:nth-child(1) {
    background-color: yellowgreen;
}

#keeruline4 tr:nth-child(4) td:nth-child(2) {
    background-color: lawngreen;
}

#keeruline4 tr:nth-child(5) td:nth-child(1) {
    background-color: violet;
}

#keeruline4 tr:nth-child(6) td:nth-child(1) {
    background-color: maroon;
}

/*       table id = tabel1 */
#tabel1 {
    width: 25%;
    border: 1px solid black;
    height: 250px;
    border-collapse: collapse;
}

#tabel1 td {
    border: 1px solid black;
    text-align: center;
}

#tabel1 tr:nth-child(1) td:nth-child(1) {
    background-color: red;
}
#tabel1 tr:nth-child(1) td:nth-child(2) {
    background-color: blue;
}
#tabel1 tr:nth-child(1) td:nth-child(3) {
    background-color: green;
}
#tabel1 tr:nth-child(2) td:nth-child(1) {
    background-color: yellow;
}
#tabel1 tr:nth-child(3) td:nth-child(1)
{
    width: 50%;
    background-color: violet;
}
#tabel1 tr:nth-child(3) td:nth-child(2) {
    background-color: maroon;
}
#tabel1 tr:nth-child(4) td:nth-child(1) {
    background-color: yellowgreen;
}
#tabel1 tr:nth-child(5) td:nth-child(1) {
    background-color: purple;
}
#tabel1 tr:nth-child(5) td:nth-child(2) {
    background-color: wheat;
}
#tabel1 tr:nth-child(5) td:nth-child(3) {
    background-color: teal;
}
#tabel1 tr:nth-child(6) td:nth-child(1) {
    width: 25%;
    background-color: cornflowerblue;
}
#tabel1 tr:nth-child(6) td:nth-child(2) {
    background-color: honeydew;
}
#tabel1 tr:nth-child(6) td:nth-child(3) {
    background-color: gold;
}

/*       table id = lisaül */
#lisaül {
    width: 25%;
    border: 1px solid black;
    height: 250px;
    border-collapse: collapse;
}

#lisaül td {
    border: 1px solid black;
    text-align: center;
}
