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

:root {
  --card-size: calc(75vh / 4);
}

.game {
  font-family: 'Hind Madurai', sans-serif;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: auto auto;
      grid-template-columns: auto auto;
  -ms-grid-rows: 15% 85%;
      grid-template-rows: 15% 85%;
  height: 100vh;
  background-color: #0D7796;
}

h1.title {
  -ms-grid-column: 1;
      grid-column-start: 1;
  grid-column-end: 2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding-right: 10%;
  color: white;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  font-weight: normal;
  text-transform: uppercase;
}

.controls {
  -ms-grid-column: 2;
      grid-column-start: 2;
  grid-column-end: 3;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  padding-left: 10%;
}

.controls button {
  background: white;
  border: none;
  color: #0D7796;
  padding: 0.5em 1em;
  font-family: 'Hind Madurai', sans-serif;
  font-size: 1.5em;
  text-transform: lowercase;
  cursor: pointer;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
}

.controls button:focus, .controls button:active {
  outline: none;
}

.controls button:hover {
  background: transparent;
  color: white;
  -webkit-box-shadow: 0 0 0 3px white;
          box-shadow: 0 0 0 3px white;
}

.cards {
  grid-column: span 2;
  display: -ms-grid;
  display: grid;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-grid-columns: (var(--card-size))[5];
      grid-template-columns: repeat(5, var(--card-size));
  -ms-grid-rows: (var(--card-size))[4];
      grid-template-rows: repeat(4, var(--card-size));
  grid-gap: 10px;
}

.card-wrappper {
  pointer-events: none;
  -webkit-perspective: 500px;
          perspective: 500px;
}

.card {
  background-color: white;
  position: relative;
  -webkit-transition: all 1s;
  transition: all 1s;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  width: 100%;
  height: 100%;
}

.card img {
  max-width: 90%;
  pointer-events: none;
}

.card .front, .card .back {
  pointer-events: none;
  position: absolute;
  background-color: white;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.card .front img {
  max-width: 50%;
}

.card .back {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

.card .cheat {
  display: none;
}

.card.show {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

.card.show img {
  opacity: 1;
}

.card.remove {
  opacity: 0;
}

.win {
  color: white;
  background: #0D7796;
  position: absolute;
  bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  height: 85vh;
}

.win h1 {
  font-size: 8em;
  -webkit-animation: bounce-zoom 0.25s ease 2;
          animation: bounce-zoom 0.25s ease 2;
}

@-webkit-keyframes bounce-zoom {
  from {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  to {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes bounce-zoom {
  from {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  to {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
/*# sourceMappingURL=style.css.map */