
@media all and (min-height: 50px) and (max-height: 599px) {
  body {
      font-size: 8px;
    }
}

@media all and (min-height: 600px) and (max-height: 1999px) {
  body{
    font-size: 1.5vh;
  }
}

@media all and (min-height: 2000px) {
  body {
    font-size: 30px;
  }
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  min-width: 1000px;
  min-height: 700px;
}

body {
  height: 100%;
  font-family: 'Quicksand', sans-serif;
  background-color: black;
  background-image: url("../imagens/fundo2.png");
  background-size: 100%;
  background-repeat: no-repeat;
  margin-top: 5%;
}

h2{
   color:white;
   font-size: 1.7em;
}
.explicacao{
  line-height: 2em;
  margin-top: 10%;
}
.modal .solucao{
  letter-spacing: 28px;
  font-size: 1.7em;
}

.wrap {
  position: relative;
  height: 100%;
  min-height: 500px;
  margin-top: 1%;
  margin-left: 19%;
  margin-right: 17%;
}

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


@keyframes matchAnim {
  0% {
    background:rgb(255,217,42,0.30);
  }
}
.card {
  float: left;
  width: 16%;
  height: 20%;
  display: block;
  -webkit-perspective: 500px;
          perspective: 500px;
  position: relative;
  cursor: pointer;
}
@media (max-width: 800px) {
  .card {
    width: 16%;
    height: 16.666%;
  }
}
.card .inside {
  width: 100%;
  height: 100%;
  display: block;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  transition: .4s ease-in-out;

}
.card .inside.picked, .card .inside.matched {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}
.card .inside.matched {
  -webkit-animation: 1s matchAnim ease-in-out;
          animation: 1s matchAnim ease-in-out;
  -webkit-animation-delay: .4s;
          animation-delay: .4s;
}
.card .front, .card .back {
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 5px;
}
.card .front img, .card .back img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  max-height: 100%;
}
.card .front {
  -webkit-transform: rotateY(-110deg);
          transform: rotateY(-180deg);
}
@media (max-width: 800px) {
  .card .front {
    padding: 2px;
  }
}
.card .back {
  -webkit-transform: rotateX(0);
          transform: rotateX(0);
}
@media (max-width: 1200px) {
  .card .back {
    padding: 5px;
  }
}

.modal-overlay {
  display: none;
}

.modal {
  display: none;
}
.modal .winner {
  font-size: 1.7em;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  color: white;
  line-height: 2em;

}

a {
   color:rgb(255,214,131);
   text-decoration:none; 
}
a:visited{
  text-decoration: none;
}
a:hover{
  color: rgb(98,161,212);
}