.gameMemoryContainer {
  background-color: #695aa6;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
}



.wrap {
  position: absolute;
  width: 1024px;
  height: 500px;
  min-height: 500px;
  padding-bottom: 20px;
  z-index: 2000;
  top: 140px;
  left: calc(50% - 512px);
  left: -webkit-calc(50% - 512px);
  left: -moz-calc(50% - 512px);
}

.empty
{
  float: left;
  width: 100%;
  height: 300px;
  display: none;
}

@media (max-width: 990px) {
  .wrap {
    position: absolute;
    width: 800px;
    height: 500px;
    min-height: 500px;
    padding-bottom: 20px;
    z-index: 10;
    top: 80px;
    left: calc(50% - 400px);
    left: -webkit-calc(50% - 400px);
    left: -moz-calc(50% - 400px);
    margin-bottom: 100px;
  }

  .empty
{
margin-top: 500px;
  display: block;
}

}

@media (max-width: 724px) {
  .wrap {
    position: absolute;
    width: 360px;
    height: 500px;
    min-height: 500px;
    padding-bottom: 20px;
    z-index: 10;
    top: 80px;
    left: calc(50% - 180px);
    left: -webkit-calc(50% - 180px);
    left: -moz-calc(50% - 180px);
    margin-bottom: 100px;
  }

  .empty
{
margin-top: 500px;
  display: block;
}

}

.game {
  transform-style: preserve-3d;
  perspective: 500px;
  min-height: 100%;
  height: 100%;
}

@-webkit-keyframes matchAnim {
  0% {
    background: #bcffcc;
  }
  100% {
    background: white;
  }
}

@keyframes matchAnim {
  0% {
    background: #bcffcc;
  }
  100% {
    background: white;
  }
}
.card {
  float: left;
  width: 16.66666%;
  height: 25%;
  padding: 5px;
  text-align: center;
  display: block;
  perspective: 500px;
  position: relative;
  cursor: pointer;
  z-index: 50;
  background-color: #695aa6;
}
@media (max-width: 800px) {
  .card {
    width: 25%;
    height: 16.666%;
  }
}
.card .inside {
  width: 100%;
  height: 100%;
  display: block;
  transform-style: preserve-3d;
  transition: 0.4s ease-in-out;
  background: #efd0f7;
}
.card .inside.picked, .card .inside.matched {
  transform: rotateY(180deg);
}
.card .inside.matched {
  -webkit-animation: 1s matchAnim ease-in-out;
          animation: 1s matchAnim ease-in-out;
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s;
}
.card .front, .card .back {
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  position: absolute;
  top: 4px;
  left: 0;
  width: 100%;
  height: 100%;
}
.card .front img, .card .back img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  max-height: 100%;
  width: 100px;
height: 100px;
}
.card .front {
  transform: rotateY(-180deg);
}
@media (max-width: 800px) {
  .card .front {
    padding: 5px;
  }
  .card .front, .card .back {
    top: 0;
  }
}
.card .back {
  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: 336px;
  max-height: 90%;
  max-width: 90%;
  min-height: 336px;
  margin: 0 auto;
  background: white;
  top: 50%;
  transform: translateY(-50%);
  padding: 30px 10px;
  border-radius: 12px;
}
.modal .winner {
  font-size: 70px;
  text-align: center;
  color: #695aa6;
  position: relative;
  z-index: 3000;
}
.logoGame
{
  width: 120px;
  height: 50px;
  margin-top: 30px;
  cursor: pointer;
  color: #fff;
  z-index: 10000000;
  position: relative;
  font-size: 26px;
  font-weight: bolder;
  left: calc(50% - 80px);
  left: -webkit-calc(50% - 80px);
  left: -moz-calc(50% - 80px);
}

@media (max-width: 480px) {
  .modal .winner {
    font-size: 60px;
  }
}
.modal .restart {
  margin: 30px auto;
  padding: 20px 30px;
  display: block;
  font-size: 30px;
  border: none;
  background: #695aa6;
  border-radius: 24px;
  color: white;
  cursor: pointer;
  position: relative;
  z-index: 3001;
}
.modal .restart:hover {
  background: linear-gradient(#695aa6, #3b5998);
}
.modal .message {
  text-align: center;
}
.modal .message a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}
.modal .message a:hover {
  color: #fff;
}
.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;
  }
}

#confetti {
  position: relative;
  left: -35px;
  top: -350px;
  height: 400px;
  width: 545px;
  z-index: 2900;
}

@media (max-width: 991px) {
  .logoGame
  {
    color: #695aa6;
  }
}

body
{
  background-color: #695aa6;
}

.speakerCloseMed {
  position: absolute;
  width: 50px;
  height: 50px;
  background: url(../imgs/sclose.png) center center no-repeat;
  top: 20px;
  right: 20px;
  z-index: 5000000;
  cursor: pointer;
}

.selectGameContainer
{
  float: left;
  width: 240px;
  height: 60px;
  margin-left: calc(50% - 120px);
}

.selectGame
{
  float: left;
  width: 60px;
  height: 60px;
  margin-right: 30px;
  background-size: contain;
  box-sizing: border-box;
  border-radius: 9px;
  background-color: rgba(255, 255, 255, 0.7);
  margin-top: 50px;
  cursor: pointer;
}

.selectGame[last]
{
  margin-right: 0px;
}

.selectGame[select]
{
  border: 4px solid #efd1f6;
  background-color: rgba(255, 255, 255, 1);
}