body {
  position: relative;
  margin: 0;
  padding: 0;
  background-color: #eeffbf;
  font-family: "Kufam", cursive;
}
h1 {
  color: #6ea767;
  font-size: 1.5em;
  margin: 0;
  padding: 10px;
  text-align: center;
  height: 55px;
}
h3 {
  color: #6ea767;
  font-size: 0.9em;
  margin: 1em 0 0;
}
p {
  font-size: 0.8em;
  margin: 0 1em;
}
.wrapper {
  display: flex;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.wrapper > div {
  width: 50%;
}
.wrapper a {
  display: block;
  width: 150px;
  height: 70px;
  line-height: 70px;
  border-radius: 15px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  text-align: center;
  margin: 0 auto;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 1));
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border: 2px solid #fff;
}

.wrapper a.off {
  color: #ccc;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}
#over {
  position: absolute;
  z-index: 2;
  top: 75px;
  left: calc(50% - 68px);
  width: 136px;
}
#card {
  height: 200px;
  margin-bottom: 20px;
}
#over img,
#card img {
  display: block;
  margin: 0 auto;
}
img.turnA {
  -webkit-animation-name: "turnA";
  -webkit-animation-duration: 0.5s;
  -webkit-animation-timing-function: ease-in;
  -webkit-animation-delay: 0.4s;
  animation-fill-mode: both;
}
@-webkit-keyframes "turnA" {
  from {
    -webkit-transform: rotateY(90deg);
  }
  to {
    -webkit-transform: rotateY(0deg);
  }
}
img.turnZ {
  -webkit-animation-name: "turnZ";
  -webkit-animation-duration: 0.3s;
  -webkit-animation-timing-function: ease-out;
  animation-fill-mode: both;
}
@-webkit-keyframes "turnZ" {
  from {
    -webkit-transform: rotateY(0deg);
  }
  to {
    -webkit-transform: rotateY(-90deg);
  }
}

img.draw-card {
  -webkit-animation-name: "drawCard";
  -webkit-animation-duration: 0.5s;
  -webkit-animation-timing-function: ease-out;
  animation-fill-mode: both;
}
@-webkit-keyframes "drawCard" {
  from {
    opacity: 0;
    transform: matrix(1, -0.8, 0.5, 1, 0, 0) scale(1.5) translate(-50px, -50px);
  }
  to {
    opacity: 1;
    transform: matrix(1, 0, 0, 1, 0, 0) scale(1) translate(0, 0);
  }
}
