* {
  border: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
section {
  height: 100vh;
  background-color: rgb(39, 41, 68);
}
.score {
  color: rgb(221, 220, 220);
  height: 20vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.win-score {
  height: 50px;
  width: 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: rgb(45, 117, 96);
}
.score h2 {
  font-size: 30px;
}
.score p {
  font-size: 20px;
  text-align: center;
  padding: 10px;
}
.intro {
  height: 60vh;
  color: rgb(221, 220, 220);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: opacity 0.5s ease;
}
.intro h1 {
  font-size: 40px;
}
.intro button,
.options button,
.newgame button {
  border: none;
  background: none;
  font-size: 20px;
  color: rgb(221, 220, 220);
  height: 50px;
  width: 150px;
  background: rgb(45, 117, 96);
  border-radius: 4px;
}
.match {
  height: 30vh;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease 0.5s;
}
.winner {
  font-size: 50px;
  color: rgb(221, 220, 220);
  text-align: center;
}
.hands,
.options {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.player-hand {
  transform: rotateY(180deg);
}
.newgame {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1; /* Sit on top */
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: rgb(255, 255, 255);
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  border-radius: 5px;
  height: 150px;
  width: 40%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

/* The Close Button */
.close {
  color: rgb(9, 78, 57);
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-body {
  color: rgb(45, 117, 96);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 20px 16px;
}
.modal-body button {
  border: none;
  margin-top: 15%;
  background: none;
  font-size: 10px;
  color: rgb(221, 220, 220);
  height: 30px;
  width: 70px;
  background: rgb(45, 117, 96);
  border-radius: 4px;
}

div.fadeIn {
  opacity: 1;
  pointer-events: all;
}
div.fadeOut {
  opacity: 0;
  pointer-events: none;
}
div.avoid-clicks {
  opacity: 0;
  pointer-events: none;
}
@keyframes shakePlayer {
  0% {
    transform: rotateY(180deg) translateY(0px);
  }
  15% {
    transform: rotateY(180deg) translateY(-50px);
  }
  25% {
    transform: rotateY(180deg) translateY(0px);
  }
  35% {
    transform: rotateY(180deg) translateY(-50px);
  }
  45% {
    transform: rotateY(180deg) translateY(0px);
  }
  55% {
    transform: rotateY(180deg) translateY(-50px);
  }
  65% {
    transform: rotateY(180deg) translateY(0px);
  }
  75% {
    transform: rotateY(180deg) translateY(-50px);
  }
  85% {
    transform: rotateY(180deg) translateY(0px);
  }
  95% {
    transform: rotateY(180deg) translateY(-50px);
  }
  100% {
    transform: rotateY(180deg) translateY(0px);
  }
}
@keyframes shakeComputer {
  0% {
    transform: translateY(0px);
  }
  15% {
    transform: translateY(-50px);
  }
  25% {
    transform: translateY(0px);
  }
  35% {
    transform: translateY(-50px);
  }
  45% {
    transform: translateY(0px);
  }
  55% {
    transform: translateY(-50px);
  }
  65% {
    transform: translateY(0px);
  }
  75% {
    transform: translateY(-50px);
  }
  85% {
    transform: translateY(0px);
  }
  95% {
    transform: translateY(-50px);
  }
  100% {
    transform: translateY(0px);
  }
}
