body{
    background-color: #222;
}
.main {
	/* centers the element within div */
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
    max-width: 300px;
    width: 300px;
    max-height: 500px;
    height: 500px;
}

table{
    border: solid red 2px;
    width:100%;
    height: 100%;
}

td {
    border: solid green 2px;
    width: 75px;
    height: 25px
}


.r {
    background-color: red;
}