html,
body,
figure,
figcaption,
ul,
li,
h1 {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  text-align: inherit;
}

ul {
  list-style: none;
}

ul li {
  background-color: transparent;
}
body {
  font-family: sans-serif;
  text-align: center;
  font-weight: bold;
  background-image: url("./rmbackground.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}

h1 {
  font-size: 60px;
  margin: 30px;
}

ul {
  display: flex;
  flex-wrap: wrap;
  margin: 4px auto;
  width: 870px;
  border: 5px solid green;
}

li {
  width: 280px;
  height: 280px;
  border: 5px solid darkgreen;
  background: gray;
  cursor: pointer;
  display: flex;
}

li:hover {
  background: yellow;
}

.x,
.o {
  background: white;
  cursor: default;
}

.x:hover,
.o:hover {
  background: white;
}

.x:after,
.o:after {
  display: block;
  width: 100%;
  font-size: 60px;
  line-height: 80px;
}

.x:after {
  justify-content: center;
  background-image: url("ttt_rickx.png");

  background-position: center;
  background-repeat: no-repeat;
  background-color: red;
  z-index: 1;
  content: "";
}

.o:after {
  justify-content: center;
  background-image: url("ttt_omorty.png");
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  content: "";
  background-color: transparent;
}

.ttt {
  transform: scale(0.8, 0.8);
}

.game-over li {
  color: red;
  cursor: default;
  background: white;
}

.winner-x .x,
.winner-o .o {
  background: light-green;
  color: red;
}

figcaption {
  font-size: 30px;
}

.header {
  transform: scale(0.8, 0.8);
  margin-top: 8%;
}

h4 {
  font-family: "Tauri", sans-serif;
  font-size: 40px;
  color: white;
  font-weight: 800;
}

button {
  height: 79px;
  background-color: greenyellow;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 22px;
  font-weight: bold;
  z-index: 1;
}

button:hover {
  background-color: green;
}
