* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

form p {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

input {
  margin-bottom: 10px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid black;
  border-radius: 5px;
}

form button {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  background-color: blue;
  color: white;
  cursor: pointer;
}

.game {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  margin-top: 20px;
}

.turn {
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  color: blue;
  text-align: center;
}

.board {
  display: grid;
  height: calc(70% - 20px);
  width: calc(50% - 20px);
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  border: 1px solid black;
  gap: 2px;
  padding: 2px;
}

.cell {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 2rem;
  border: 2px solid black;
  background-color: yellow;
  cursor: pointer;
}

.result {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}

.winMsg {
  font-size: 1.5rem;
  font-weight: bold;
  color: green;
  text-align: center;
}

.reset-btn {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  background-color: red;
  color: white;
  cursor: pointer;
}

.reset-btn:hover {
  background-color: darkred;
}
