body {
  position:relative;
  font-size: 50px;
  font-family: monospace;
}

h1 {
  margin: 0px;
  text-align: center;
}

table, td {
  font-size: 50px;
  font-family: monospace;
  text-align: center;
  border: 4px solid red;
  border-collapse: collapse;
}

table {
  position: absolute;
  top: 30%;
  left:50%;
  margin-left: -100px;
  table-layout: fixed;
  width: 200px;
  height: 200px;
}

td {
  width: 33%;
  height: 33%;
}

h3 {
  margin:0px;
}

div, button, input{
  font-size: 25px;
  font-family: monospace;
}

div, button, input[type="button"]{
  
  text-align: center;
}

input[type="button"], button{
  padding: 5px;
  margin: 15px 0px;
  border-radius: 5px;
  background:rgb(160, 160, 255)
}

input[type="text"] {
  margin: 15px 0px 0px 0px;
}

.g:hover, input:hover, button:hover {
  cursor: pointer;
}

input[type="text"] {
  cursor: text; 
}

.g:hover {
  background-color: #ffaaaa;
}

input[type="button"]:hover, button:hover {
  background: rgb(120, 255, 120);
}

.landingBG {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, 0.6);
}

.landing-page {
  font-size: 25px;
  height: 200px;
  width: 500px;
  padding: 15px 5px;
  background-color: rgb(255, 255, 255);
  position: relative;
  top: 30%;
  left: 50%;
  margin-top: -100px;
  margin-left: -250px;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  cursor:pointer;
  position:relative;
  top:5px;
  height: 25px;
  width: 25px;
  background: white;
  border-radius: 5px;
  border: 1px solid black;
}

input[type="checkbox"]:checked {
  background: rgb(0, 0, 255);
}

.game {
  width: 15%;
  padding: 25px 15px;
}

#controls {
  position: absolute;
  left: 50%;
  top: 50%;
}

#p1 {
  position:absolute;
  margin-left: 15%;
  top: 30%;
  left:0;
}

#p2 {
  position: absolute;
  margin-right: 15%;
  top: 30%;
  right: 0;
}

[data-my-turn="true"] {
  border: 2px solid rgb(0, 210, 0);
}

[winner="neither"] {
  border: 2px solid white;
  background-color: rgb(39, 39, 39);
}

[winner="true"] {
  border: 2px solid white;
  background-color: rgb(255, 195, 31);
}

.open {
  display: block;
}
.background {
 margin-top: 5%;
}