.memory-score-container,
.memory-elapsed-time-container {
    width: 30% !important;
    text-align: center;
    display: inline-block;
}

.memory-score-time-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Poster Gothic ATF', sans-serif !important;
    width: 60%;
}

.memory-score-time-container .memory-score-container-bg {
    background-image: url(/frontend/themes/wrt/assets/img/game/score-bg.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100%;
    padding: 10px 10px 20px 10px;
}


.memory-game-container {
    position: relative;
    min-height: 735px;
    width: 100%;
    margin: auto;
    text-align: center;
    font-family: sans-serif;
    overflow: hidden;
    border-radius: 30px;
    background-image: url(/frontend/themes/wrt/assets/img/game/memory/memory-game-bg.jpg);
    background-size: cover;
    background-position: center bottom;
    /*background: #1D1D1B;
    background: linear-gradient(180deg,rgba(29, 29, 27, 1) 0%, rgba(29, 29, 27, 0) 100%);*/
    height: 100%;
    padding: 90px 20px 20px 20px;
    justify-content: center;
}


.memory-game-container.not-registered {
  padding: 20px;
  min-height: 500px;
}

.memory-game-container .bg-overlay {
  background: rgba(0,0,0,0.66);
  background: linear-gradient(180deg,rgba(29, 29, 27, 0.66) 0%, rgba(29, 29, 27, 0.33) 100%);
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 0;
  top: 0;
  left: 0;
}

#memoryCountdownOverlay {
    position: absolute;
    font-size: 80px;
    color: white;
    top: 40%;
    width: 100%;
    text-align: center;
    z-index: 10;
    font-family: 'Poster Gothic ATF', sans-serif !important;
}

#memoryGameStartScreen,
#memoryGameOverScreen {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    text-align: center;
    z-index: 10;
    /*background: linear-gradient(180deg,rgba(29, 29, 27, 1) 0%, rgba(29, 29, 27, 0) 100%);*/
    padding: 20px;
    color: white;
    z-index: 10;
}

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

@keyframes matchAnim {
  0% {
    background: rgba(124, 186, 53, 1);
  }
  100% {
    background: rgba(240,240,240,1);
  }
}

.memory-card {
  width: 100%;
  text-align: center;
  display: block;
  perspective: 500px;
  position: relative;
  cursor: pointer;
  z-index: 50;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.memory-card .inside {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: .4s ease-in-out;
  border-radius: 25px;
  background-color: rgba(240,240,240,1);
}

.memory-card .inside.picked,
.memory-card .inside.matched {
  transform: rotateY(180deg);
}

.memory-card .inside.matched {
  animation: 1s matchAnim ease-in-out;
  animation-delay: .4s;
}

.memory-card .front,
.memory-card .back {
  overflow: hidden;
  border-radius: 25px;
  overflow: hidden;
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.memory-card .front img,
.memory-card .back img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  max-height: 100%;
}

.memory-card .front {
  transform: rotateY(-180deg);
}

.memory-card .back {
  transform: rotateX(0);
  border: 8px solid #f2f2f2;
}

