*,
*::before,
*::after {
  margin: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  gap: 2rem;
  margin: 2rem;
  display: flex;
  text-align: center;
  flex-direction: column;
  background-color: burlywood;
}

h1 {
  gap: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

dialog {
  margin: auto;
  font-weight: bold;
  background: bisque;
}

form {
  display: flex;
  font-size: 20px;
  flex-direction: column;
  align-items: flex-start;
}

input {
  font-size: 20px;
  background: beige;
  margin-bottom: 1rem;
}

button {
  padding: 1rem;
  font-size: 2rem;
  cursor: pointer;
  align-self: center;
  font-weight: bold;
  border-style: none;
  outline-style: none;
  border: solid black;
  background: burlywood;
}

button.gamerestart {
  background: bisque;
}

button:hover {
  background: beige;
}

.gameboard {
  margin: auto;
  display: grid;
  width: clamp(200px, 80vmin, 400px);
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(3, 1fr);
}

.cell {
  border: solid;
  font-size: 10vmin;
  font-weight: bold;
  aspect-ratio: 1/1;
  background-color: bisque;
}

.cell:hover {
  background-color: beige;
}