@import url('https://fonts.googleapis.com/css?family=Yeon+Sung&display=swap');
@import url('https://fonts.googleapis.com/css?family=Libre+Baskerville&display=swap');
body {
  background-color: rgba(107, 102, 102, 0.1);
  padding-bottom: 20px;
  overflow-x: hidden;
  position: relative;
  height: 100vh;
}

noscript {
  position: fixed;
  top: 0;
  left: 35%;
  z-index: 99;
  background-color: red;
  color: #fff;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 23px;
  animation: slide 3s infinite linear;
}

.greet {
  border-radius: 10px;
  border: 2px solid rgb(78, 43, 145);
  text-align: center;
  height: 120px;
}

.greet h2 {
  margin-top: 5px;
  animation: slide 3s infinite linear;
}

.greet h3 {
  animation: slide 3s infinite alternate linear;
  margin-top: 30px;
  font-style: italic;
}

.welcome {
  font-family: 'Libre Baskerville', Impact, sans-serif;
  background-color: #ffffff63;
  width: 380px;
  margin: 70px auto;
}

.overlay {
  top: 0;
  right: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: url(./assets/clip-uploading.png) 370px -220px no-repeat;
}

.box {
  cursor: pointer;
  border: 2px solid gray;
  line-height: 100%;
  text-align: center;
  padding-top: 30%;
  font-size: 70px;
  font-family: 'Yeon Sung', cursive;
  color: rgb(255, 0, 0);
}

.board-wrapper {
  visibility: hidden;
  border: 2px solid silver;
  padding: 0;
  width: 352px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.rules-board-wrap {
  display: none;
}

.show-board {
  display: flex;
  justify-content: space-between;
  width: 800px;
  margin: auto;
}

.turns {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: rgb(65, 24, 139);
  color: #fff;
  margin: 0;
  height: 100px;
  font-size: 20px;
  padding: 35px 0 0 25px;
}

.gameboard {
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  height: 350px;
  width: 350px;
  background-color: #fff;
  transform: perspective(400px) translate3d(-140px, 0, -140px) scale(1);
  transition: transform 2s linear;
}

.form {
  position: relative;
  color: #fff;
  background-color: rgb(34, 46, 116);
  width: 380px;
  height: 350px;
  border-radius: 15px;
  margin: 20px auto;
  text-align: center;
}

.info-name {
  line-height: 5.5;
  font-size: 22px;
  background-color: rgba(76, 0, 130, 0.5);
  border-radius: 15px;
}

.get-info {
  margin-top: 60px;
}

.restart-game {
   border: none;
   border-radius: 10px;
   color: #fff;
   background-color: red;
   padding: 10px 15px;
}

.vibrate {
  animation: vibrate 0.1s 4 forwards;
}

@keyframes vibrate {
  from {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  to {
    transform: translateX(0px);
  }
}

@keyframes slide {
  from {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(10px) scale(0.9);
  }
  to {
    transform: translateY(0px) scale(1);
  }
}

label {
  font-size: 20px;
}

.submit-input {
  border: none;
  background-color: slategrey;
  font-weight: 600;
  font-size: 25px;
  padding: 5px 15px;
  width: 150px;
  margin: 20px auto;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid rgba(19, 0, 128, 0.5);
}

.slide-out {
  position: absolute;
  top: 50%;
  transform: translateX(200px) rotate3d(0, 1, 0, 180deg) scale(0);
  transition: transform 3s;
}

.player2 {
  display: none;
}

input[type="text"] {
  width: 200px;
  height: 30px;
  border-radius: 5px;
  border: none;
  padding-left: 5px;
  font-size: 16px;
  color: rgb(14, 8, 31);
}

.rules {
  height: 0;
  width: 0;
  background-color: rgba(0, 65, 161, 0.7);
  color: #fff;
  font-size: 17px;
  overflow: hidden;
  border: 2px solid gray;
  border-radius: 10px;
  transition: height 2s, width 3s;
}

@media only screen and (max-width: 720px) {
  .rules-board-wrap {
    width: 350px;
    margin: 10px auto 0px auto;
    flex-direction: column;
    justify-content: space-evenly;
    height: 800px;
  }

  .board-wrapper {
    margin-top: 0;
    height: 430px;
  }

  .turns {
    height: 100px;
  }

  .gameboard {
    height: 300px;
  }
}
