body {
    background-color: sienna;
} 
#div {
    position:relative; 
    height: 200px; 
    width: 200px; 
    margin: 30px;
    background: red;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

#div.rotated {
    -webkit-transform : rotate(66deg); 
    -moz-transform : rotate(66deg); 
    -ms-transform : rotate(66deg); 
    -o-transform : rotate(66deg); 
    transform : rotate(66deg); 
}

table {
        table-layout: fixed;
        border: 1px solid black;  
        border-spacing: 0;
        width: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        margin-right: -50%;
        transform: translate(-50%, -50%);
 }

td {
     border: 1px solid black; 
     font-size: 1vw;
     font-family: sans-serif;
     font-style: normal;
     font-weight: normal;
     width: 6.25vw;
     height: 6.25vw;
     text-align: center; 
     vertical-align: middle;
}

td a {
    display: block;
    line-height: 6.25vw;
    width: 100%;
    height: 100%;
}
/* unvisited link */
a:link {
    color: white;
    text-decoration: none;
}

/* visited link */
a:visited {
    color: white;
    text-decoration: none;
}

/* mouse over link */
 a:hover {
    color: white;
    text-decoration: none;
}

/* selected link */
a:active {
    color: white;
    text-decoration: none;
}

tr:nth-child(even) td:nth-child(even),
tr:nth-child(odd) td:nth-child(odd)
 {color: black; background: white;}

tr:nth-child(even) td:nth-child(odd),
tr:nth-child(odd) td:nth-child(even)
 {color: white; background:red;}


