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

body{
  font-family: 'Ubuntu', sans-serif;
}

main {
  min-height: 70vh;
}

footer {
  min-height: 10.5vh;
}

/* Header */

.containerMenu{
  font-family: 'Play', sans-serif;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  margin: auto;
  max-width: 1200px;
  height: 8.75rem;
  padding: 0 1rem;
}

#linkHomeImg{
  margin: auto 1rem;
  border: none;
  text-decoration: none;
}

.containerMenu nav {
  margin: auto 2rem auto auto;
}

.containerMenu nav a{
  text-decoration: inherit;
  color: #212121;
  width: 100%;
  margin: 2rem;
  text-align: center;
}

.containerMenu nav > a:hover{
  color: #A8A8A8;
}

.menuHamburguer {
  display: none;
}

.ham {
  position: absolute;
  z-index: 100;
  top: 1rem;
  right: 1rem;
  border: none;
  cursor: pointer;
}

.xIcon {
  display: none;
  position: absolute;
  z-index: 99;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background: #006DB9;
  transform: translateY(-100%);
  transition: 0.2s;
  list-style: none;
  padding: 5rem 5rem;
  font-family: 'Play', sans-serif;
}

.showMenu {
  transform: translateY(0);
  position: absolute;
  z-index: 9;
}

li {
  padding: 1rem 0;
}

.menuLink {
  display: inline;
  font-size: 2rem;
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.menuLink:hover {
  text-decoration: underline;
}

.menuIcon, .xIcon {
  width:35px;
  position:absolute;
  margin:2rem;
  right:0;
  top:0;
  z-index:9999;
  cursor:pointer;
  width:35px;
  height:30px;
}

.mobile-nav-button__line {
  width:100%;
  height:4px;
  background:#212121;
  position:relative;
  transition:1s ease;
  margin: 0.5rem 0;
}

.xIcon .mobile-nav-button__line {
  background: white;
}

.mobile-nav-button__line--1 {
  width:100%;
  height:4px;
  background:#f0f0f0;
  position:relative;
  transition:1s ease;
  margin: 0.5rem 0;
  transform: rotate(45deg);
  top: 13px;
  position: absolute;
}

.mobile-nav-button__line--3 {
  width:100%;
  height:4px;
  background:#f0f0f0;
  position:relative;
  transition:1s ease;
  margin: 0.5rem 0;
  transform: rotate(135deg);
  top: 13px;
  position: absolute;        
}

.container-title {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #006DB9;
}

.container-title .title {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 0;
}

.container-title .title > img {
  height: 4rem;
  margin-left: 2rem;
}

.container-title .title > h2 {
  font-size: 3rem;
  color: #efefef;
  display:inline-block;
  margin-left: 2rem;
}

/* search bar */

.wrapper {
  width: 96%;
  max-width: 30rem;
  margin: 3rem auto 2rem auto;
}

.wrapper .search-input {
  position: relative;
  width: 100%;
  max-width: 30rem;
  border-radius: 5px;
  box-shadow: 0px 1px 5px 3px rgba(0,0,0,0.12);
  background: #f9f9f9;
}

.search-input input {
  height: 4rem;
  width: 100%;
  max-width: 30rem;
  outline: none;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1.5rem;
  font-family: Play, Ubuntu, sans-serif;
  font-size: 1.3rem;
  box-shadow: 0px 1px 5px rgba(0,0,0,0.1);
}

.search-input.active input {
  border-radius: 5px 5px 0 0;
}

.search-input .autocom-box {
  padding: 0;
  opacity: 0;
  pointer-events: none;
  max-height: 280px;
  overflow-y: auto;
}

.search-input.active .autocom-box {
  padding: 10px 8px;
  opacity: 1;
  pointer-events: auto;
}

.autocom-box li {
  list-style: none;
  padding: 8px 12px;
  display: none;
  width: 100%;
  cursor: default;
  border-radius: 3px;

  text-transform: capitalize;
}

.search-input.active .autocom-box li {
  display: block;
}

.autocom-box li:hover {
  background: #efefef;
}

.wrapper .search-input .icon {
  position: absolute;
  right: 1rem;
  top: 0.5rem;
  height: 55px;
  width: 55px;
  text-align: center;
  line-height: 55px;
  font-size: 20px;
  color: #212121;
  cursor: pointer;
}

.icon img {
  width: 38px;
  margin-top: 6px;
}

.cards { 
  text-align: center;
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
}

.card-pokemon {
  /* Add shadows to create the "card" effect */
  box-shadow: 5px 5px 60px rgba(0,0,0,0.05);
  transition: 0.3s;
  display: inline-block;
  width: 30%;
  margin: 20px 10px 0 10px;
  padding: 30px 0 0 0;
  border-radius: 1rem;
}

/* On mouse-over, add a deeper shadow */
.card-pokemon:hover {
  transform: scale(1.05);
}

/* Add some padding inside the card container */
.container {
  padding: 2px 0;
}

.nome {
  font-size: 1.4rem;
  text-transform: capitalize;
  font-weight: 500;
}

.imagempokemon {
  padding-top: 10px;
  width: 70%;
} 

/* Cores dos fundos das cartas de acordo com a classe do pokemon */

.card-grass {background-color: #BEFFEF;}

.card-fire {background-color: #FFA99D;}

.card-water {background-color: #9DEDFF;}

.card-normal {background-color: lightgray;}

.card-poison {background-color: #C29DFF;}

.card-psychic {background-color: #FFF9BE;}

.card-ground {background-color: #c0aa98;}

.card-electric {background-color: #f9d11e;}

.card-flying {background-color: #f6f6f6;}

.card-ice {background-color: #cfe5f3;}

.card-bug {background-color: #b9d446;}

.card-dark {background-color: #333333;color: white;}

.card-dragon {background-color: #6f6d3d;}

.card-fairy {background-color: #de5b8f;}

.card-fighting {background-color: #fda14e;}

.card-ghost {background-color: #9a57ff;}

.card-rock {background-color: #ee9c38;}

.card-steel {background-color: #c6dce7;}

.code-pokemon {
  background-color: #a7a7a785;
  font-weight: 500;
  border-radius: 10px;
  padding: 0.1rem 0.4rem;
  font-size: 0.8rem;
}

.type-pokemon{
  padding: 20px 0px 30px;
  text-transform: capitalize;
  font-size: 0.8rem;
}

#back-to-top {
  cursor: pointer;
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 999;
}

#back-to-top img {
  width: 40px;
}

.container-back {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.botao-back {
  cursor: pointer;
  border: none;
  width: 20rem;
  font-family: Play, Ubuntu, sans-serif;
  font-size: 1.2rem;
  background-color: #006DB9;
  border-radius: 2.5rem;
  color: #FFFFFF;
  height: 3rem;
  text-transform: capitalize;
  transition: 0.3s;
}

.botao-back:hover {
  background-color: #FB5555;
}

.container-seemore {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.botao-seemore {
  cursor: pointer;
  border: none;
  width: 20rem;
  font-family: Play, Ubuntu, sans-serif;
  font-size: 1.2rem;
  background-color: #006DB9;
  border-radius: 2.5rem;
  color: #FFFFFF;
  height: 3rem;
  text-transform: capitalize;
  transition: 0.3s;
}

.botao-seemore:hover {
  background-color: #FB5555;
}

footer {
    background-color: #006db9;
    color: #efefef;
    display: flex;
    height: 100px;
    margin-top: 5vh;
    align-items: center;
    justify-content: center;
}

.footer-max {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
}

/* medias */
@media (max-width:1000px) {
  .containerMenu nav a{
    margin: 0.75rem;
  } 
}

@media (max-width:812px) {
  .menuHamburguer {
    display: block;
}

.containerMenu > nav {
    display: none;
}
  #searchfield {
    width: 70vw;
    margin: auto;
    padding: auto;
  }
  .card-pokemon {
    width: 45%;
  }
}

@media (max-width:600px) {
  .card-pokemon {
    width: 90%;
  }
  .container-title .title > img {
    height: 2rem;
  }
  .container-title .title >  h2 {
    font-size: 2rem;
  }
}


@media only screen and (max-width: 453px) {
  .containerMenu {
    height: 6rem;
  }

  #linkHomeImg img {
    width: 6rem;
  }

  .menuIcon, .xIcon {
    margin: 0;
    right:1rem;
    top:0.5rem;
    z-index:9999;
    cursor:pointer;
    width: 28px;
    height: 28px;
  }

  .mobile-nav-button__line {
      width:100%;
      height:4px;
      background:#212121;
      position:relative;
      transition:1s ease;
  }

  .mobile-nav-button__line:nth-child(1) {
      margin-bottom: 0.4rem;
  }

  .mobile-nav-button__line:nth-child(2) {
      margin: 0.4rem 0;
  }

  .mobile-nav-button__line:nth-child(3) {
      margin-top: 0.4rem;
  }
}

#playNow {
  font-size: 1.1rem;
  font-family: 'Play', sans-serif;
  color: white;
  background-color: #006DB9;
  border-radius: 2rem;
  padding: 1rem 2rem 1rem 2rem;
}

#playNow:hover {
  background-color: #FB5555;
}