* {
  font-family: 'Fredoka', sans-serif;
}
body {
  background-color: #f5f5f5;
  padding: 0;
  margin: 0;
  /* height: 100vh; */
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 75vh;
}
.board {
  display: grid;
  grid-template-columns: repeat(3, 14rem);
  grid-template-rows: repeat(3, 14rem);
  gap: 0.8rem;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.cell {
  background-color: #ff2f7f;
  color: white;
  font-size: 7.2rem;
  font-weight: 700;
  /* font-family: 'Arial Rounded MT Bold', sans-serif; */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cell:hover {
  transform: scale(1.05);
}
.choice-container {
  /* background-color: #fff; */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  /* grid-template-columns: repeat(2, 140px); */
}
/* PLayer-Symbooooooooooooooool */
.choice-board {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
  background-color: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}
.choice-cell {
  background-color: #ff2f7f;
  color: #fff;
  font-size: 2.6rem;
  font-weight: 700;
  /* font-family: 'Arial Rounded MT Bold', sans-serif; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  border-radius: 0.8rem;
  cursor: pointer;
  padding: 1rem;
  width: 10rem;
  height: 10rem;
  transition: transform 0.2s ease;
}
.player-symbol {
  font-size: 4.5rem;
}
.choice-cell-hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
  /* color: black; */
  /* color: #ff2f7f;
  background-color: #fff; */
}

.btn-background {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem;
  background-color: #fff;
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  border-radius: 0.8rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}
.reset {
  border: none;
  background-color: #ff2f7f;
  color: #fff;
  font-size: 3.2rem;
  font-weight: 500;
  border-radius: 0.8rem;
  padding: 1.5rem 3rem;
  transition: transform 0.2s ease;
}
.reset:hover {
  transform: scale(1.03);
}
/* Score container */
.score-board {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 1rem;
  right: 2rem;
  border-radius: 0.8rem;
  padding: 1rem;
  background-color: #fff;
  gap: 0.8rem;
}
.player-board {
  background-color: #ff2f7f;
  width: 12rem;
  height: 10rem;
  padding: 1rem;
  border-radius: 0.8rem;
  color: #fff;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 3rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}
.score {
  font-size: 4.8rem;
}
.modal {
  position: absolute;
  font-weight: 500;
  color: #222;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45%;

  background-color: white;
  padding: 6rem;
  border-radius: 5px;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  z-index: 10;

  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  font-size: 2.4rem;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 5;
}

.hidden {
  display: none;
}
.modal-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.continue-btn,
.new-game-btn {
  /* flex: 1; */
  width: 20rem;
  border: none;
  background-color: #ff2f7f;
  color: #fff;
  font-size: 3.2rem;
  font-weight: 500;
  border-radius: 0.8rem;
  padding: 1rem;
  cursor: pointer;
  /* margin: 0.8rem; */
}
/* {
  border: none;
  background-color: #ff2f7f;
  color: #fff;
  font-size: 3.2rem;
  font-weight: 500;
  border-radius: 0.8rem;
  padding: 1rem 2rem;
  cursor: pointer;
  margin: 0.8rem;
} */
.congratulation {
  font-size: 3.2rem;
  /* font-weight: 600; */
}

/* **************************** */
/* BELOW 550PX ( Mobile phones) */
/* **************************** */
@media (max-width: 35em) {
  .board {
    grid-template-columns: repeat(3, 8rem);
    grid-template-rows: repeat(3, 8rem);
    padding: 1rem;
  }

  .cell {
    font-size: 4rem;
  }

  .score {
    font-size: 2.4rem;
  }

  .player-board {
    width: 6rem;
    height: 5rem;
    font-size: 1.5rem;
    /* padding: 0.5rem; */
  }
  .score-board {
    padding: 0.7rem;
  }

  .reset {
    font-size: 2rem;
    padding: 1rem 2rem;
  }

  .modal {
    width: 80%;
    padding: 2rem;
    font-size: 2rem;
  }

  .continue-btn,
  .new-game-btn {
    font-size: 2rem;
    padding: 0.8rem;
    width: 12rem;
  }

  .congratulation {
    font-size: 2.4rem;
  }
  .who-will-play {
    text-align: center; /* center horizontally */
    word-wrap: break-word; /* allow breaking long words */
    white-space: normal;
  }
}
