@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  background-color: #333;
  color: #fff;
  font-family: 'Roboto', sans-serif;
}

#wrapper {
  width: 100%;
  height: 100%;
  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-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

#gameWrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 100%;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  text-align: center;
}

#main, #app {
  min-height: calc(100vh - 136px);
}

#game {
  -ms-grid-columns: (1fr)[4];
      grid-template-columns: repeat(4, 1fr);
  -ms-grid-rows: (1fr)[4];
      grid-template-rows: repeat(4, 1fr);
  display: -ms-grid;
  display: grid;
  -webkit-perspective: 1000px;
          perspective: 1000px;
}

#game .card {
  margin: 0.3rem;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background-image: url(../img/card-bg.jpg);
  padding: .2rem;
  position: relative;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-transition: all ease .5s;
  transition: all ease .5s;
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

#game .card img {
  max-width: 100%;
  opacity: 0;
  -webkit-transition: all ease .5s;
  transition: all ease .5s;
  max-height: 200px;
}

#game .card.selected, #game .card.found {
  background-color: #000;
  -webkit-transition: all ease .5s;
  transition: all ease .5s;
  -webkit-transform: rotateY(0deg);
          transform: rotateY(0deg);
}

#game .card.selected img, #game .card.found img {
  opacity: 1;
  -webkit-transition: all ease .5s;
  transition: all ease .5s;
}

#game .card.found {
  -webkit-filter: grayscale(1);
          filter: grayscale(1);
  -webkit-transition: all ease .5s;
  transition: all ease .5s;
}

#modal {
  position: fixed;
  width: 40rem;
  height: 20rem;
  top: 10%;
  left: calc(50% - 20rem);
  background: #000;
  padding: 1rem;
  text-align: center;
  border: 1px solid #777;
  -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
          box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1;
  display: none;
}

#modal.active {
  display: block;
}

#modal .modal-body {
  padding: 1rem;
  position: relative;
  z-index: 2;
}

footer {
  color: #999;
}

.active .nav-link {
  position: relative;
}

.active .nav-link:after {
  content: '';
  background: #999;
  width: 100%;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: 5px;
}

.loader {
  height: 100vh;
  width: 100vw;
  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;
  background: #000;
  top: 0;
  bottom: 0;
}

.loader.done {
  bottom: 100%;
  top: -100%;
  position: absolute;
  -webkit-transition: all ease .3s;
  transition: all ease .3s;
}

.lds-dual-ring {
  display: inline-block;
  width: 80px;
  height: 80px;
}

.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #fff;
  border-color: #fff transparent #fff transparent;
  -webkit-animation: lds-dual-ring 1.2s linear infinite;
          animation: lds-dual-ring 1.2s linear infinite;
}

@-webkit-keyframes lds-dual-ring {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes lds-dual-ring {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

img {
  max-width: 100%;
  height: auto;
}
/*# sourceMappingURL=styles.css.map */