* {
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  width: 100vw;
  height: 100vh;
  display: -ms-grid;
  display: grid;
  place-items: center;
}

img {
  width: 100%;
  height: 100%;
  display: block;
}

.memory_game {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  width: 70vw;
  height: 95vh;
  -webkit-perspective: 1000px;
          perspective: 1000px;
}

@media screen and (max-width: 1220px) {
  .memory_game {
    width: 100vw;
  }
}

.memory_game .memory_card {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin: 10px;
  width: calc(16.666% - 20px);
  height: calc(33.333% - 20px);
  position: relative;
  -webkit-transform: scale(1);
          transform: scale(1);
  -webkit-transition: 0.2s;
  transition: 0.2s;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-box-shadow: 1px 1px 4px 2px rgba(0, 0, 0, 0.2);
          box-shadow: 1px 1px 4px 2px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  cursor: pointer;
}

.memory_game .memory_card:active {
  -webkit-transform: scale(0.97);
          transform: scale(0.97);
}

.memory_game .memory_card .front_face,
.memory_game .memory_card .back_face {
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  position: absolute;
}

.memory_game .memory_card .front_face.front-face,
.memory_game .memory_card .back_face.front-face {
  z-index: 2;
  -webkit-transform: rotateY(0deg);
          transform: rotateY(0deg);
}

.memory_game .memory_card .front_face.back_face,
.memory_game .memory_card .back_face.back_face {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
  border-radius: 10px;
  -webkit-box-shadow: 1px 1px 4px 2px rgba(0, 0, 0, 0.2);
          box-shadow: 1px 1px 4px 2px rgba(0, 0, 0, 0.2);
}

.memory_game .memory_card.flip {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

.turn-phone-container {
  position: fixed;
  display: none;
  width: 100vw;
  height: 100vh;
  z-index: 4;
  background-color: #fff;
}

.turn-phone-container.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.turn-phone-container .turn-phone-wrapper {
  margin: 20px;
  background-color: #fff;
  border-radius: 10px;
}

.turn-phone-container .turn-phone-wrapper img {
  width: 30px;
  margin: 21px auto;
  -webkit-animation: turningPhone 1.5s alternate infinite;
          animation: turningPhone 1.5s alternate infinite;
}

.turn-phone-container .turn-phone-wrapper p {
  font-family: sans-serif;
  font-size: 14px;
  line-height: 21px;
  text-align: center;
  color: #222;
}

@-webkit-keyframes turningPhone {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  50% {
    -webkit-transform: rotate(-110deg);
            transform: rotate(-110deg);
  }
  100% {
    -webkit-transform: rotate(-110deg);
            transform: rotate(-110deg);
  }
}

@keyframes turningPhone {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  50% {
    -webkit-transform: rotate(-110deg);
            transform: rotate(-110deg);
  }
  100% {
    -webkit-transform: rotate(-110deg);
            transform: rotate(-110deg);
  }
}

.modal-bg {
  display: none;
  position: fixed;
  inset: 0 0 0 0;
  z-index: 3;
}

.modal-bg.active {
  display: -ms-grid;
  display: grid;
  place-items: center;
  -webkit-animation: fadeIn 0.2s forwards;
          animation: fadeIn 0.2s forwards;
}

.modal-bg .modal {
  background-color: #fff;
  border-radius: 10px;
  padding: 40px;
  font-family: sans-serif;
  color: #222;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.modal-bg .modal h2 {
  font-weight: bold;
  font-size: 24px;
  line-height: 36px;
  margin-bottom: 36px;
}

.modal-bg .modal p {
  font-size: 18px;
  line-height: 36px;
}

.modal-bg .modal span {
  font-size: 14px;
  line-height: 21px;
  margin-bottom: 21px;
  color: #686675;
}

.modal-bg .modal button {
  padding: 15px 30px;
  font-size: 18px;
  background-color: #87e;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}

.modal-bg .modal button:hover {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}

@-webkit-keyframes fadeIn {
  0% {
    background-color: transparent;
  }
  100% {
    background-color: rgba(0, 0, 0, 0.5);
  }
}

@keyframes fadeIn {
  0% {
    background-color: transparent;
  }
  100% {
    background-color: rgba(0, 0, 0, 0.5);
  }
}
/*# sourceMappingURL=style.css.map */