@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

:root {
  --header-bg-color: #1a237e;
  --header-font-color: #e8eaf6;
  --header-box-shadow: 0 3px 5px 2px rgba(41, 53, 148, 0.5);
  --body-bg-color: #c5cae9;
  --cell-box-shadow: inset -5px -5px 10px 3px rgba(41, 53, 148, 0.5);
  --cell-bg-color: #7986cb;
  --cell-font-color: #e8eaf6;
  --cell-active-bg-color: #e8eaf6;
  --cell-active-font-color: #7986cb;
}

html {
  box-sizing: border-box;
}

*,
*::after,
*::before {
  box-sizing: inherit;
}

body {
  font-family: Roboto, system-ui, sans-serif;
  max-width: 2000px;
  min-width: 500px;
  margin: 0 auto;
  background-color: var(--body-bg-color);
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: bold;
  color: var(--header-font-color);
  background-color: var(--header-bg-color);
  box-shadow: var(--header-box-shadow);
  padding: 10px 30px;
}

.game-elements {
  width: max-content;
  margin: 0 auto;
}

.game-board {
  width: 400px;
  height: 400px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.game-board-row {
  flex: 1;
  display: flex;
  gap: 5px;
}

.game-board-cell {
  flex: 1;
  font-size: 4rem;
  color: var(--cell-font-color);
  background-color: var(--cell-bg-color);
  box-shadow: var(--cell-box-shadow);
  border: none;
  border-radius: 0.8rem;
}

.game-board-cell:hover,
.game-board-cell:active {
  color: var(--cell-active-font-color);
  background-color: var(--cell-active-bg-color);
}

.games-played,
.player1,
.player2,
.player-turn {
  font-size: 1.5rem;
  margin-top: 10px;
  width: 50%;
  text-align: right;
}

span {
  margin: 10px;
  font-weight: bold;
}

.reset-game {
  display: block;
  background-color: var(--header-bg-color);
  color: var(--header-font-color);
  box-shadow: var(--header-box-shadow);
  font-size: 1.5rem;
  padding: 5px 10px;
  border: none;
  border-radius: 0.3rem;
  margin: 20px auto 0;
}
