/* Estilos das tags principais */

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: linear-gradient(to top, #6A5ACD 0%, #48C9B0 100%);
}

  h1{
    font-family: "Pokemon Hollow";
    height: 100px;
    color: blue;
    font-size: 60px;
    text-align: center;
    font-weight: bold;
    text-shadow: 
        1px 1px 0px yellow, 
        2px 2px 0px yellow, 
        3px 3px 0px yellow, 
        4px 4px 0px yellow, 
        5px 5px 0px yellow;
  }

  h1:hover{
    transition: 0.5s ease;
    cursor: pointer;
    transform: scale(1.05);
  }

  main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 80px;
  }

  .logo{
    width: 450px;
  }

  .logo:hover{
    transition: 1s ease-in-out;
    transform: scale(1.1);
    cursor: pointer;
  }

  /* Estilos dos botões pokébolas */

  .generation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .generation-buttons button {
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    color: #000;
    font-weight: 600;
    box-shadow: -2px 3px 0 #222, -4px 6px 0 #000;
    border: none;
    background-color: silver;
  }

  .generation-buttons button:hover {
    transition: ease-in-out 0.7s;
    transform: scale(1.1);
    background-image: none;
  }
  
  .generation-buttons #btn-gen1:hover {
    background-color: #d45959;
  }

  .generation-buttons #btn-gen2:hover {
    background-color: #90fc95;
  }

  .generation-buttons #btn-gen3:hover {
    background-color: #7ccfe4;
  }

  .generation-buttons #btn-gen4:hover {
    background-color: #c4e746;
  }

  .generation-buttons #btn-gen5:hover {
    background-color: #ad64f1;
  }

  .pokeball_image{
    width: 100px;
  }

  /* Estilos da pokédex e dos cards pokémons */

  .pokedex {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 40px;
  }

  @keyframes slit-in-vertical {
    0% {
      transform: translateZ(-800px) rotateY(90deg);
      opacity: 0;
    }
    54% {
      transform: translateZ(-160px) rotateY(87deg);
      opacity: 1;
    }
    100% {
      transform: translateZ(0) rotateY(0);
    }
  }
  
  .pokemon {
    background-color: #eee;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    padding: 10px;
    animation: slit-in-vertical 0.5s ease-out both;
    position: relative;
  }

  .pokemon:hover{
    border: 3px solid #016288;
    transition: ease-in-out 0.4s;
    cursor: pointer;
  }
  
  .pokemon img {
    width: 100px;
    height: 100px;
  }

  .pokemon img:hover{
    transform: scale(1.1);
    transition: 0.4s ease-in-out;
  }
  
  .pokemon-name {
    font-size: 1.8rem;
    color: black;
    text-transform: capitalize;
    font-weight: 700;
  }

  .pokemon-name:hover{
    font-family: "Pokemon Solid", "Arial";
    color: #fff;
    text-shadow: -4px -4px 0 #000, 4px -4px 0 #000, -4px 4px 0 #000, 4px 4px 0 #000;
    transition: 0.4s ease-in-out;
  }

  .pokemon-id{
    position: absolute;
    top: 0;
    left: 5;
    font-size: 0.7rem;
    color: #000;
    font-weight: 900;
  }

  .type-container {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
  }
  
  .pokemon .type-container .type-icon{
    width: 50px; /* Tamanho do ícone */
    height: 50px;
  }

  /* Estilos do card ampliado */

  .pokemon-extended{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
  }

  .pokemon-details{
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fff;
    padding: 20px;
    border: 8px solid #016288;
    border-radius: 10px;
    max-width: 400px;
    height: 95vh;
    text-align: center;
    position: relative;
  }

  .pokemon-details img{
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    padding: 5%;
  }

  .pokemon-details img:hover{
    transition: 1s ease-in-out;
    transform: scale(1.1);
    cursor: pointer;
  }

  .pokemon-details h2{
    color: black;
    font-weight: 900;
    text-transform: capitalize;
    font-size: 2rem;
  }

  .pokemon-details .pokemon-info{
    font-family: "Roboto";
    font-size: 1.5rem;
    color: #000;
    max-height: 120px;
    overflow-y: auto;
    padding: 10px;
    background-color: rgba(102, 101, 101, 0.2);
    border-radius: 10px;
  }

  .pokemon-details .pokemon-id-extended{
    position: absolute;
    font-weight: 900;
    color: #016288;
  }

  /* Personalizar a barra de rolagem */
.pokemon-details p::-webkit-scrollbar {
  width: 10px; /* Largura da barra de rolagem */
}

.pokemon-details p::-webkit-scrollbar-thumb {
  background: #016288; /* Cor da parte "móvel" da barra */
  border-radius: 5px; /* Bordas arredondadas */
  border: 2px solid #fff; /* Espaçamento ao redor */
}

.pokemon-details p::-webkit-scrollbar-track {
  background: #f0f0f0; /* Cor do trilho */
  border-radius: 5px; /* Bordas arredondadas no trilho */
}

/* Estilos dos botões de navegação */

.btn-next,
.btn-prev {
  background: none;
  border: none;
  cursor: pointer;
}

.btn-next img,
.btn-prev img {
  width: 75px;
  height: 75px;
}

.btn-next:hover img,
.btn-prev:hover img {
  transform: scale(1.2);
  transition: 0.4s ease-in-out;
}

.btn-prev:disabled img,
.btn-next:disabled img {
  opacity: 0.3;     /* deixa a seta transparente */
  cursor: default;  /* remove a mãozinha */
  transform: none;  /* cancela o efeito de hover */
}