@import url('https://fonts.googleapis.com/css2?family=Pattaya&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Concert+One&family=Gloria+Hallelujah&family=Permanent+Marker&family=Reggae+One&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-image:linear-gradient(rgba(0,0,0,0.9),rgba(0,0,0,0.9)),url(../images/tic.jpg) ;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  font-family: 'Pattaya', sans-serif;
  color:#F7B219 ;
}

#player_choose {
  /* display: none; */
  /* display: flex;
  justify-content: center;
  align-items: center; */
  /* text-align: center; */
  width: 100%;
  height: 100%;
  top: 0;
  background-image:linear-gradient(rgba(0,0,0,0.9),rgba(0,0,0,0.9));
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  font-size: 2.5rem;
}

#player_choose button {
  font-size: 2.5rem;
  font-weight: bold;
  padding: 10px 30px;
  border-radius: 5%;
  cursor: pointer;
  background: wheat;
  font-family: 'Pattaya', sans-serif;
  margin: 20px;
}

#player_choose button:hover {
  background: white;
  transform: translateY(-20px);
}

@media (max-width: 829px) { 
  #player_choose  {
    position: fixed;
  }

  #game_title {
    display: none;
  }
}

@media (max-width: 280px) { 
  #button #prev_btn {
    padding-left: 130px;
  }

  #title #action_turn, #title #winning_message {
    margin-left: 40px;
  }
}

@media (max-width: 320px) { 
  #button #prev_btn {
    padding-left: 130px;
  }

  #title #action_turn, #title #winning_message {
    margin-left: 40px;
  }
}
@media (max-width: 414px) { 

  #title #action_turn, #title #winning_message {
    font-size: 2rem;
  }
  
  #title {
    width: 100%;
    padding-left: 190px;
  }
  #button {
    padding-left: 160px;
  }

  #button button {
    margin: 0px 20px;
  }
}

#main {
  /* display: flex;
  justify-content: center; */
  text-align: center;
  margin: 50px auto;
  /* width: 35vw; */
  border-radius: 5%;
}

#title {
  display: flex;
  flex-direction: column;
  margin: 10px;
}

#title #game_title {
  margin-bottom: 20px;
}

#action_turn {
  margin: auto;
  font-size: 4rem;
}

#winning_message {
  /* background-color: green; */
  margin: auto;
  border-radius: 5px;
  font-size: 4rem;
  animation-name: winning_message;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: reverse;
}

@keyframes winning_message {
  from {
    color: #F7B219;
  }
  to {
    color:white;
  }
}

#gameboard {
  /* display: grid;
  grid-template-columns: repeat(3, 6vw);
  grid-template-rows: repeat(3, 6vw);
  align-items: center;
  margin: 50px auto; */
  display: grid;
  grid-template: repeat(3, 1fr)/repeat(3, 1fr);
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.3);
  width: 35rem;
  height: 35rem;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 50px auto;
}


#gameboard > div {
  font-family: 'Concert One', cursive;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:4rem;
  height: 100%;
  width: 100%;
  cursor: pointer;
  border-radius: 5%;
 
}
.winning_pattern {
  color:#F7B219 ;
  animation-name: winning_pattern;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: reverse;
}

@keyframes winning_pattern {
  from {
    color: #F7B219;
  }
  to {
    color:white;
    font-size: 6rem;
  }
}


#gameboard > div:hover {
  background: gray;
}

#a, #b, #c {
  border-bottom: 3px solid #fff;
}

#a, #b, #d, #e, #g, #h {
  border-right: 3px solid #fff;
}

#g, #h, #i {
  border-top: 3px solid #fff;
}

#button {
  width: 30%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 50px auto;
}

#button button {
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 2.5rem;
  color:#F7B219 ;
  background-image:linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7));
  background: none;
  border: none;
  font-family: 'Pattaya', sans-serif;

}

#button #restart_btn {
  border: none;
background: none;
}

#button button:hover {
  color: #fff;
  /* background: wheat; */
}