/* ---- reset ----*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* --- page layout --- */
body
{
  background-color: #afd6ff;
  font-family: 'Roboto', sans-serif;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
}
/* -- main container (grid for the board) ---*/
.container
{
   display: grid;
   grid-template-rows: 
    auto auto auto auto;
    gap: 1rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
}
/* --- title --*/
h1 {
  font-size: 2rem;
  margin-top: 0.5rem;
}
/* -- player turn display ---*/
.display{
  font-weight: bold;
}
.display-player{

}
.display-player.player-x,
.player-x {   /*  red for X   */
  color: #d32f2f;
}  
.display-player.player-o,
.player-o {
  color: #1976d2;  /*  blue for O  */
}    

/* --- game board ---*/
.board {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: repeat(3,1fr);
  gap: 5px;
  border: 3px solid #333;
}

/* individual tiles */ 
.tile {
  background: #fff;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  transition: background-color 0.2s;
}
.tile:hover {
     background-color: #e0e0e0;
    }   /* color of the background when mouse is hovering */

/* hide the name */
.hide {
  display: none; 
}
/* -- reset btn --*/
.reset{
  background-color: #c62828;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}
