@charset "UTF-8";

@font-face {
  font-family: 'FontePokemon';
  src: url(fonts/Pokemon\ Solid.ttf);
}

body {
  background-image: url(imagens/plano-de-fundo.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  font-family: arial, sans-serif;
  text-align: justify;
  font-size: 17px;
  line-height: 1.5;
  margin-top: 3%;
}

#menu ul {
  list-style: none;
  background-color: #2e68ac;
  border-radius: 20px;
  width: 20%;
  margin: -2% 0% 0% 20%;
  padding-left: 60%;
}

#menu li {
  display: inline-block;
  transition: background-color 1s;
  border-radius: 5%;
  padding: 0% 7%;
}

#menu li:hover {
  background-color: #1f417b;
}

#menu a {
  color: #ffca06;
  text-decoration: none;
  font-family: 'FontePokemon', sans-serif;
  font-size: 25px;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #1f417b;
}

header h1 {
  font-family: 'FontePokemon', sans-serif;
  text-shadow: 5px 5px #1f417b;
  color: #ffca06;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #2e68ac;
  font-size: 4vw;
  margin-top: -4%
}

header img {
  width: 10%;
  margin: -2% 0% 2% 5%;
}

#resumo {
  background-color: #2e68ac;
  width: 70%;
  margin: auto;
  display: block;
  border-radius: 5px;
  padding: 2% 5% 5% 3%;
  text-indent: 8%;
}

#resumo h2 {
  color: #ffca06;
  font-family: 'FontePokemon', sans-serif;
  font-size: 25px;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #1f417b;
  text-align: center;
}

div.dicas {
  background-color: #ffca06;
  display: block;
  border-radius: 5px;
  padding: 15px;
}

div.dicas img {
  width: 40%;
  border-radius: 5%;
  display: block;
  margin: auto;
}

div h3 {
  text-align: center;
  color: #2e68ac;
}

footer {
  clear: both;
  border-top: 1px solid #ffca06;
  text-align: center;
  font-size: small;
  line-height: 1.5;
}

footer a {
  text-decoration: none;
  color: #1f417b;
}

#listaPokemon {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  margin-top: 50px;

}

.flip-container {
  width: 280px;
  height: 400px;
  perspective: 1000px;
  margin: auto;
}

.flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-container:hover .flipper {
  transform: rotateY(180deg);
}

.front,
.back {
  position: absolute;
  width: 100%;
  height: 80%;
  backface-visibility: hidden;
  text-transform: capitalize;
  border-radius: 5px;
  background: #2e68ac;

}

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

.front h2 {
  font-size: 20px;
  text-align: center;
  background: #ffc906e0;
}

.front img {
  display: block;
  width: 50%;
  margin: auto;
}


.front span {
  background: #ffc906e0;
}

.back p {
  background: #ffc906e0;
  line-height: 1;
  padding: 1%;
}

.front p {
  background: #ffc906e0;
  text-align: center;
}

@media (min-width:800px) and (max-width:1000px) {
  body {
    font-size: 16px;
  }

  .dicas img {
    width: 80%;
  }

  #menu li {
    padding: 0.5% 8.0%;
  }

  #menu a {
    font-size: 19px;
  }

  #resumo h2 {
    font-size: 20px;
  }

  .flip-container {
    width: 240px;
    height: 405px;
    margin-right: auto;
  }

  .front h2 {
    font-size: 20px;
  }
}

@media (min-width:500px) and (max-width:800px) {
  body {
    font-size: 15px;
  }

  .dicas img {
    width: 90%;
  }

  #menu li {
    padding: 0.5% 5.0%;
  }

  #menu a {
    font-size: 17px;
  }

  #interacoes {
    font-size: 15px;
  }

  .flip-container {
    width: 220px;
    height: 380px;
  }
}

@media (min-width:320px) and (max-width:500px) {
  body {
    font-size: 12px;
  }

  header h1 {
    font-size: 20px;
    margin-top: -50px;
    margin-left: 40px;
  }

  header img {
    width: 20%;
    margin-left: 50px;
  }

  .dicas img {
    width: 100%;
  }

  #menu ul {
    border-radius: 20px;
    width: 30%;
    margin-left: 140px;
    padding-left: 5%;
  }

  #menu li {
    padding: 0.5% 1.0%;
    width: 60%;
  }

  #menu a {
    font-size: 14px;
  }

  #interacoes {
    font-size: 12px;
    width: 80px;
    display: flex;
    flex-direction: column;
  }

  #interacoes label {
    justify-content: start;
  }

  #pesquisar {
    width: 250px;
  }

  #resumo {
    margin-top: 20px;
  }

  #resumo h2 {
    font-size: 16px;
  }

  .flip-container {
    width: 220px;
    height: 340px;
    margin-right: auto;
  }

  .front h2 {
    font-size: 15px;
    text-align: center;
  }
}
