/* Importa una fuente moderna desde Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

body {
  font-family: "Inter", sans-serif;
  background-color: #f4f7fc;
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #333;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  width: 100%;
  background-color: #1f3fff;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.title {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
}

.mainContainer {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.board {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 30px;
}

.titleUser,
.titleComputer {
  background-color: #8bb4ff;
  color: white;
  text-align: center;
  font-weight: bold;
  border-radius: 12px;
}
.boardUser,
.boardComputer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.userBoard,
.computerBoard {
  width: 500px;
  height: 500px;
  display: flex;
  flex-wrap: wrap;
  background-color: #1f3fff;
  border-radius: 12px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.grid {
  width: 50px;
  height: 50px;
  background-color: white;
  border: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s, color 0.3s;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.grid:hover {
  background-color: #f0f0f0;
}

.grid.blackCell {
  background-color: #000;
  color: #fff;
}

.announceWinner {
  text-align: center;
  margin: 0;
  color: white;
  background-color: black;
  font-size: 24px;
  font-weight: bold;
}

/* Attach it to the end of the screen no matter size */
.footer {
  width: 100%;
  text-align: center;
  margin-top: auto;
  background-color: #272727;
  font-weight: bold;
}

.footer > a:visited,
a:link {
  color: white;
}
