@import url('https://fonts.googleapis.com/css2?family=Merriweather&display=swap');

html {
  box-sizing: border-box;
  font-family: 'Merriweather', serif;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

.page-container {
  display: grid;
  min-height: 100%;
  grid-template-rows: min-content 1fr min-content;
  grid-template-areas:
    'header'
    'main'
    'footer';
  justify-items: center;
}

header {
  grid-area: header;
  font-size: 2rem;
  padding: 32px;
}

main {
  grid-area: main;
  text-align: center;
}

.board {
  width: 100%;
  display: grid;
  grid-template:
    repeat(3, minmax(150px, 210px)) /
    repeat(3, minmax(150px, 210px));
  /* padding: 64px; */
  gap: 8px;
  background-color: lightgray;
  border-radius: 8px;
}

.cell {
  cursor: pointer;
  border: none;
  font-size: 80px;
  background-color: rgb(254, 254, 254);
}

.player-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player {
  display: grid;
  grid-template-rows: 2fr 1fr 1fr;
  grid-template-areas:
    'avatar'
    'name'
    'token';
  place-items: center;
  font-size: 48px;
}

.player img {
  grid-area: avatar;
  width: 150px;
  height: auto;
}

.player .token {
  grid-area: token;
}

.player .player-name {
  grid-area: name;
}

#player-turn {
  font-size: 1.5rem;
  align-self: start;
  padding-top: 64px;
}

.O-token {
  color: #be5b41;
}

.X-token {
  color: #41a4be;
}

footer {
  grid-area: footer;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 3rem;
  width: 100%;
  color: rgb(229, 231, 235);
  background-color: black;
  font-size: 12px;
  gap: 1rem;
}

footer img {
  max-height: 1.5rem;
}

#play-again-btn {
  background-color: #41be9a;
  border-radius: 6px;
  border: none;
  padding: 18px 48px;
  color: #e5e7eb;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  cursor: pointer;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.288);
  transition-duration: 0.4s;
  visibility: hidden;
}

#play-again-btn:hover {
  color: #41be9a;
  background-color: #e5e7eb;
  opacity: 0.9;
}

#play-again-btn:active {
  box-shadow: none;
}

/* .welcome-page {
  visibility: hidden;
} */
