@import url("https://fonts.googleapis.com/css2?family=Bungee+Spice&family=Roboto:ital,wght@1,300&display=swap");

body {
  display: flex;
  height: 100vh;
  width: 100vw;
  justify-content: center;
  background-image: url("/Tic-Tac-Toe/img/wood.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  user-select: none;
  font-family: "Bungee Spice", sans-serif;
  border: none;
}

#background1 {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: center;
  background-size: cover;
  background-image: url("/Tic-Tac-Toe/img/stars.jpg");
  transition: ease-in-out 500ms;
  border: none;
  overflow: hidden;
}

#background2 {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: center;
  background-size: cover;
  background-image: url("/Tic-Tac-Toe/img/universe.jpg");
  border-image: none;
  transition: ease-in-out 500ms;
  overflow: hidden;
}

.hideBackground1 {
  transform: translateX(-100%);
  visibility: none;
}
.hideBackground2 {
  transform: translateX(200%);
  visibility: none;

}


#buttonContainer {
  background-color: transparent;
  position: absolute;
  width: 100%;
  height: 6vh;
  display: flex;
  justify-content: center;
  left: 0;
  right: 0;
  z-index: 2;
  font-family: "Bungee Spice", sans-serif;
}
#gameContainer {
  position: absolute;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 80%;
  left: 0;
  top: 10%;
  right: 0;
  z-index: 1;
  font-family: "Bungee Spice", sans-serif;
}

table {
  background-color: transparent;
  position: absolute;
  width: 100%;
  height: 100%;
  border-spacing: 5vh;
  text-align: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: "Bungee Spice", sans-serif;
  border: none;
}

#player1Status {
  position: relative;
  display: flex;
  font-size: 150%;
  align-items: center;
  height: 6vh;
  width: 30%;
  background-color: rgb(49, 161, 49, 0.5);
  justify-content: center;
  border: none;
  font-family: "Bungee Spice", sans-serif;

  border-radius: 2rem;
}
#scoreBoard {
  background: inherit;
  height: inherit;
  text-align: center;
  text-decoration: none;
  width: 15%;
  right: 85%;
  font-size: 300%;
  font-family: "Bungee Spice", sans-serif;
}
#player2Status {
  background-color: rgb(168, 19, 19, 0.5);
  display: flex;
  font-size: 150%;
  height: 6vh;
  width: 30%;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 2rem;
  font-family: "Bungee Spice", sans-serif;
}

.cardX {
  background-color: transparent;
  color: transparent;
  width: 10px;
  height: 10px;
  transition: ease-in-out 500ms;
  text-decoration: none;
  cursor: pointer;
  transform-origin: center;
  transform-style: preserve-3d;
  transform: rotateY(-180deg);
  background-image: url("/Tic-Tac-Toe/img/try.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.cardO {
  background-color: transparent;
  color: transparent;
  font-size: 80px;
  width: 10px;
  height: 10px;
  transition: ease-in-out 500ms;
  text-decoration: none;
  cursor: pointer;
  transform-origin: center;
  transform-style: preserve-3d;
  transform: rotateY(-180deg);
  background-image: url("/Tic-Tac-Toe/img/try2.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.gameBoard {
  background-color: rgba(107, 89, 89, 0.7);
  color: rgb(255, 255, 255, 0);
  width: 25%;
  height: 25%;
  cursor: pointer;
  font-size: 50px;
  transform-origin: center;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
  transition-duration: 2000ms;
  background-position: center;
}
.gameBoard:hover {
  box-shadow: 0px 0px 15px 4px green;
  transition: ease-in-out 0ms;
}
.choose {
  position: absolute;
  width: 100%;
  height: 15vh;
  top: 45vh;
  z-index: 1;
  left: 0;
}

.choosen {
  position: absolute;
  width: 100%;
  height: 6vh;
  transition: ease-in-out 500ms;
  top: 90vh;
  z-index: 1;
  left: 0;
}

#switch {
  position: absolute;
  background: rgb(2, 153, 2, 0.5);
  width: 50%;
  height: 100%;
  left: 0;
  border: none;
  font-size: 150%;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  border-radius: 2rem;
  font-family: "Bungee Spice", sans-serif;
}

#switch:hover {
  transition: ease 1000ms;
  box-shadow: 0px 0px 10px 10px green;
  transform: translateY(-10px);
}
#switch2 {
  position: absolute;
  background: rgb(255, 0, 0, 0.5);
  width: 50%;
  height: 100%;
  right: 0;
  border: none;
  font-size: 150%;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  border-radius: 2rem;
  font-family: "Bungee Spice", sans-serif;
}
#switch2:hover {
  transition: ease 1000ms;
  box-shadow: 0px 0px 10px 10px red;
  transform: translateY(-10px);
}
