:root {
  --buttons-border: 2px solid black;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  line-height: 1.3;
  list-style-type: none;
  text-decoration: none;
  border-collapse: collapse;
  font-weight: 700;
}

html {
  font-size: 16px;
}

body {
  text-align: center;
  width: 100vw;
  height: 100vh;
}

#app {
  width: 900px;
  height: 100%;

  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
}

.game {
  display: grid;
  gap: 10px;
}

.board {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.board > button {
  width: 100px;
  height: 100px;

  border: none;
  background-color: transparent;
  font-size: 2.5rem;
  font-weight: 900;
}

#b1,
#b2,
#b4,
#b5 {
  border-right: var(--buttons-border);
  border-bottom: var(--buttons-border);
}

#b3,
#b6 {
  border-bottom: var(--buttons-border);
}

#b7,
#b8 {
  border-right: var(--buttons-border);
}

#reset {
  padding: 10px 30px;
  background-color: hsl(210, 60%, 50%);
  color: #fff;
  border: none;
  box-shadow: #000 2px 2px 3px;
}

.playerForm {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  grid-auto-flow: row;
  gap: 8px;
  font-size: 1.2rem;
}

input[type="text"] {
  border: 1px solid hsl(0, 0%, 60%);
  border-radius: 5px;
  font-size: 1rem;
  padding: 5px 5px;
}

input[type="text"]:focus {
  outline: none;
}

.playerForm > button {
  margin-top: 15px;
  font-size: 1rem;
  padding: 10px;
  max-width: 150px;
  justify-self: end;

  border: 1px solid hsl(211, 100%, 50%);
  border-radius: 5px;
  color: #fff;
  background-color: hsl(211, 100%, 50%);
}

.hide {
  display: none;
}
