.back {
  background: #fcebf3;
}
.wrap {
  position: relative;
  height: 100%;
  min-height: 500px;
  padding-bottom: 20px;
}
.game {
  display: block!important;
  transform-style: preserve-3d;
  perspective: 500px;
  min-height: 100%;
  height: 100%;
  display: flex!important;
  flex-wrap: wrap;
  justify-content: center;
}
@keyframes matchAnim {
  0% {
    background: #bcffcc;
  }
  100% {
    background: #fcebf3;
  }
}
.card-2 {
  float: left;
  width: 17.66666%;
  height: 25%;
  padding: 5px;
  text-align: center;
  display: block;
  perspective: 500px;
  position: relative;
  cursor: pointer;
  z-index: 50;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.card-2 .inside {
  width: 100%;
  height: 100%;
  display: block;
  transform-style: preserve-3d;
  transition: 0.4s ease-in-out;
  background: #fcebf3;
  border-radius: 15px;
  z-index: 1;
}
.card-2 .inside.picked, .card-2 .inside.matched {
  transform: rotateY(180deg);
}
.card-2 .inside.matched {
  animation: 1s matchAnim ease-in-out;
  animation-delay: 0.4s;
}
.card-2 .front, .card-2 .back {
  padding: 7px;
  border-radius: 15px;
  border: 1px solid #fcebf3;
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: table;
  align-items: center;
  align-content: center;
}
.card-2 .front img, .card-2 .back img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  max-height: 100%;
}
.card-2 .front {
  transform: rotateY(-180deg);
  position: relative;
  display: flex;
  padding: 0;
  min-height: 213px;
  margin: auto;
  align-items: center;
}
.modal-overlay {
  display: none;
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
img {
  width: inherit;
}
button.restart.button-submit {
    width: fit-content;
    margin: 10px auto;
}
.modal .message {
  text-align: center;
}
.modal .message a {
  text-decoration: none;
  color: #28afe6;
  font-weight: bold;
}
.modal .message a:hover {
  color: #56c0eb;
  border-bottom: 1px dotted #56c0eb;
}
.modal .share-text {
  text-align: center;
  margin: 10px auto;
}
.modal .social {
  margin: 20px auto;
  text-align: center;
}
.modal .social li {
  display: inline-block;
  height: 50px;
  width: 50px;
  margin-right: 10px;
}
.modal .social li:last-child {
  margin-right: 0;
}
.modal .social li a {
  display: block;
  line-height: 50px;
  font-size: 20px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}
.modal .social li a.facebook {
  background: #3b5998;
}
.modal .social li a.facebook:hover {
  background: #4c70ba;
}
.modal .social li a.google {
  background: #d34836;
}
.modal .social li a.google:hover {
  background: #dc6e60;
}
.modal .social li a.twitter {
  background: #4099ff;
}
.modal .social li a.twitter:hover {
  background: #73b4ff;
}
footer {
  height: 20px;
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 0;
}
footer .disclaimer {
  line-height: 20px;
  font-size: 12px;
  color: #727272;
  text-align: center;
}
