
.memory-game {
  width:100%;
  max-width: 370px;
  background-origin: border-box;
  background-clip:  border-box;
  margin: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

.game-count {
  padding-left: 1rem;
}

.memory-game table {
  border-collapse: unset;
}

.gcard {
  line-height: 0px;
  padding: 0px;
}

.memory-card {
  width : 80px;
  height : 80px;  
  position: relative;
  -webkit-box-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
  box-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transition: -webkit-transform .5s;
  transition: -webkit-transform .5s;
  -o-transition: transform .5s;
  transition: transform .5s;
  transition: transform .5s, -webkit-transform .5s;
  border-radius: 5px;
  cursor: pointer;
}

.memory-card:active {
  -webkit-transform: scale(0.97);
  -ms-transform: scale(0.97);
  transform: scale(0.97);
  -webkit-transition: -webkit-transform .2s;
  transition: -webkit-transform .2s;
  -o-transition: transform .2s;
  transition: transform .2s;
  transition: transform .2s, -webkit-transform .2s;
}

.memory-card.flip {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}
.ncard {
  width : 80px;
  height : 80px;  
}
.matching {
  border-radius: 5px;
  border: 0px solid #f43003;
  background: #31f904;
  box-shadow: 0 0 5px #ffffff, 0 0 10px #2eb2d3, 0 0 20px #46d8fc,
      0 0 30px #160727;      
}

.memory-bottom {
  width: 100%;
  max-width: 370px;
  padding: 10px 10px 0px 10px;
  margin: auto;
  text-align: center;
}
.game-btnarea {
  width : 100%;
}
.time-table {
  width:100%;
  border-radius: 2px;
  border: 1px solid #D9D9D9;
  background: #FFF;
  height:14px;
  font-size:16px;
  color:#13e8f5;
  text-align:left;
  line-height:0px;
  overflow:hidden;
}
.time-bar {
  width:0px;
  height:10px;
  border-radius: 2px;
  background: linear-gradient(270deg, #BA0000 0%, #565555 100%);
}

.td-level {
  text-align: center;
}
.td-level:first-child {
  text-align : right;
}
.td-level:last-child {
  text-align : left;
}
.td-level img {
  width: 90%;
}

#puzzle {
  height: 340px;
  width: 340px;
  margin-left: 5px;
}






.front-face,
.back-face {
  width: 100%;
  height: 100%;
  padding: 20px;
  position: absolute;
  border-radius: 5px;
  background: #c2e5e0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.front-face {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}


.heart {
  --size: 6px;
  background-color: var(--c);
}
.heart::before, .heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--c);
  border-radius: 50%;
}
.heart::before { left: -50%; }
.heart::after { top: -50%; }


@media (max-width: 640px) {

  .memory-card {
    width : 74px;
    height : 74px;
  }
  .gcard {
    width : 74px;
    height : 74px;
  }

  .ncard {
    width : 74px;
    height : 74px;  
  }

  #puzzle {
    height: 320px;
    width: 320px;
    margin-left: 0px;
   }

}