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

* {
  margin: 0;
}

html,
body {
  height: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

body {
  font-family: "Courier New", Courier, monospace;
  color: hsl(0, 0%, 95%);
  min-height: 100vh;
  background-color: hsl(230, 30%, 40%);
}

#container {
  padding-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.title {
  font-size: 3rem;
  display: flex;
}

#boardDisplay {
  display: grid;
  grid-template-columns: repeat(3, 120px);
}

#cell {
  width: 120px;
  height: 120px;
  border: 2px solid hsl(0, 0%, 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

#cell:hover {
  background-color: hsl(0, 0%, 85%);
}

.message {
  font-size: 1.4rem;
}

.popup {
  opacity: 0;
  position: fixed;
  z-index: -1;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup.open {
  opacity: 1;
  z-index: 1000;
}

#playersForm {
  display: flex;
  flex-direction: column;
  background-color: hsl(230, 30%, 40%);
  padding: 2rem;
  gap: 1rem;
  font-size: 1rem;
  border-radius: 10px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.formButtons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

button {
  cursor: pointer;
}

.formButtons button {
  flex: 1;
  padding: 6px 12px;
  background-color: hsl(0, 0%, 80%);
}

.buttons button {
  padding: 12px 10px;
  background-color: hsl(0, 0%, 80%);
}

.formButtons button:hover {
  background-color: hsl(0, 0%, 90%);
}

.buttons button:hover {
  background-color: hsl(0, 0%, 90%);
}

.formButtons button:active {
  background-color: hsl(0, 0%, 95%);
}

.buttons button:active {
  background-color: hsl(0, 0%, 95%);
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  color: black;
  text-align: center;
  padding: 10px;
  background-color: hsl(0, 0%, 80%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: hsl(195, 100%, 35%);
}
