
  .wrap {
    position: relative;
    height: 100%;
    min-height: 500px;
    padding-bottom: 20px;
    width: 100%;
    margin: 0px auto;
  }

  /* .game {
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
    -webkit-perspective: 500px;
            perspective: 500px;
    min-height: 100%;
    height: 100%;
  } */

  .game {
    display: -ms-grid;
    display: grid;
    justify-items: center;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    grid-auto-columns: 1fr;
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    -ms-grid-columns: 1fr 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    -ms-grid-rows: auto;
    grid-template-rows: auto;
    text-align: center;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-perspective: 500px;
    perspective: 500px;
  }
@media (max-width: 767px) {
  .game {
    -ms-grid-columns: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .card {
    width: 100%;
  }
}
@media (max-width: 479px) {
  .game {
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
  }
}

  @-webkit-keyframes matchAnim {
    0% {
      background: #bcffcc;
    }
    100% {
      background: white;
    }
  }

  @keyframes matchAnim {
    0% {
      background: #bcffcc;
    }
    100% {
      background: white;
    }
  }
  .card {
    /* float: left; */
    width: 140px;
    height: 180px;
    /* padding: 5px; */
    text-align: center;
    display: block;
    -webkit-perspective: 500px;
    perspective: 500px;
    position: relative;
    cursor: pointer;
    z-index: 50;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    /* margin: 8px 20px; */
  }
  @media (max-width: 800px) {
    .card {
      /* width: 25%; */
      /* height: 134px; */
    }
    .wrap
    {
      width: 100%;
    }
    .swal-modal
    {
      width: 100% !important;
      height: auto !important;
    }
  }
  .card .inside {
    width: 100%;
    height: 100%;
    display: block;
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
    transition: .4s ease-in-out;
    background: white;
  }
  .card .inside.picked, .card .inside.matched {
    -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
  }
  .card .inside.matched {
    -webkit-animation: 1s matchAnim ease-in-out;
            animation: 1s matchAnim ease-in-out;
    -webkit-animation-delay: .4s;
            animation-delay: .4s;
  }
  .card .front, .card .back {
    border: 1px solid transparent;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
  }
  .card .front img, .card .back img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    max-height: 100%;
  }
  .card .front {
    -webkit-transform: rotateY(-180deg);
            transform: rotateY(-180deg);
  }
  @media (max-width: 800px) {
    .card .front {
      padding: 5px;
    }
  }
  .card .back {
    -webkit-transform: rotateX(0);
            transform: rotateX(0);
  }
  @media (max-width: 800px) {
    .card .back {
      padding: 10px;
    }
  }

  .modal-overlay {
    display: none;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .modal {
    display: none;
    position: relative;
    width: 500px;
    height: 400px;
    max-height: 90%;
    max-width: 90%;
    min-height: 380px;
    margin: 0 auto;
    background: white;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    padding: 30px 10px;
  }
  .modal .winner {
    font-size: 80px;
    text-align: center;
    font-family: "Anton", sans-serif;
    color: #4d4d4d;
    text-shadow: 0px 3px 0 black;
  }
  @media (max-width: 480px) {
    .modal .winner {
      font-size: 60px;
    }
  }
  .modal .restart {
    font-family: "Anton", sans-serif;
    margin: 30px auto;
    padding: 20px 30px;
    display: block;
    font-size: 30px;
    border: none;
    background: #4d4d4d;
    background: linear-gradient(#4d4d4d, #222);
    border: 1px solid #222;
    border-radius: 5px;
    color: white;
    text-shadow: 0px 1px 0 black;
    cursor: pointer;
  }
  .modal .restart:hover {
    background: linear-gradient(#222, black);
  }
  .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;
  }
  @media (max-width: 767px) {
    footer .disclaimer {
      font-size: 8px;
    }
  }
  /* .back
  {
    width: 100%;
    height: 100%;
    background-color: #bceef1;
    background-image: url(/images/Card-Back.jpg);
    background-position: 50% 50%, 50% 50%;
    background-size: 60px, auto;
    background-repeat: no-repeat, no-repeat;
  } */
  .back {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #fff;
    background-image: url('/images/Card-Back.jpg');
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .front{
    width: 100%;
    height: 100%;
    background-position: 50% 50%;
    background-size: contain;
    background-repeat: no-repeat;
  }
  /*sweet alert css */
  .swal-modal
  {
    width: 574px !important;
    height: 408px !important;
    border: 2px solid black;
    border-radius: unset;

  }

  .swal-icon img {
    max-width: 20% !important;
    max-height: 20% !important;
}

.swal-text {
  font-size: 16px;
  position: relative;
  float: none;
  line-height: normal;
  vertical-align: top;
  text-align: left;
  display: inline-block;
  margin: 0;
  padding: 0 10px;
  font-weight: 400;
  color: rgba(0,0,0,.64);
  max-width: calc(100% - 20px);
  overflow-wrap: break-word;
  box-sizing: border-box;
  width: 408px;
  height: 84px;
  font-family: KoHo;
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: center;
  color: #000000;
}

swal-icon:first-child {
  margin-top: 7px !important;
}
.swal-icon
{
  margin: 7px auto !important;
}

.swal-button-container {
  display: block;
  /* position: relative; */
  /* width: 22%; */
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
}
.swal-button,.swal-button:hover {
  background-color: #000000 !important;
  color: #fff;
  border: none;
  box-shadow: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  margin: 0;
  cursor: pointer;
  width: 151px;
  height: 39px;
  border-radius: 19.5px;
}
.swal-button:focus
{
  box-shadow: none !important;
}
.swal-title
{
  color: #000000 !important;
  font-family: KoHo,sans-serif !important;
  font-weight: normal !important;
  font-size: 36px !important;
}
@media (max-width: 800px) {
   .swal-modal
  {
    width: 100% !important;
    height: auto !important;
  }
  .swal-button-container {
    display: block;
    position: relative;
    width: 50%;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
}
}
.swal-footer
{
  margin-top:0px;
}
.swal-text
{
  width: 100%;
  height: auto;
}
  /*end of sweet alert css */
  @media screen and (max-width:440px)
  {
      .card
      {
        margin: 0px 0px;
      }
  }

  @media screen and (min-width:768px) and (max-width:1024px)
  {
    .card
      {

          /* width: 19%; */
          height: 180px;

          }
  }
  @media only screen and (max-width: 500px)
  {
      .card
      {
        margin: 0px 0px;
      }
  }
  .swal-modal
  {
    height: auto !important;
  }
