* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}
body {
    background-image:url(assets/background_image.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    font-family: Arial, Helvetica, sans-serif;
    height: auto;   
    max-width: 1200px;
  }
  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    gap: 20px;
    padding: 20px;
  }
  h1 {
    font-family: 'Reggae One';
    margin: 20px;
  }
  .generation-buttons {
    display: flex;
    flex-direction: row;
    justify-content:center;
    gap: 10px;
  }
  
  button {
    height: 35px;
    width: 70px;
    background-color: #69d2ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  .pokemonNumber {
    font-family: 'Reggae One';
    font-size: 400;
    margin-bottom: 20px;
  }
 
  #search {
    border: 1px solid aqua;
    border-radius: 5px;
    padding: 10px;
    width: 200px;
  }
  
  button:hover {
    background-color: #4a4848;
  }
  
  .cards {
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    grid-gap: 0.5rem;
    padding: 0.5rem;
}
  
  .card {
    display: grid;
    background:rgb(11, 11, 11);
    height: auto;
    width: auto;
    margin: 2rem 1rem;
    border-radius: 20px;
    box-shadow: 1px 1px 4px rgba(132, 66, 92, 0.674);
    cursor: pointer;
    position: relative;
}

.card:hover {
  transform: rotate(-2deg);
}

.card:hover > .poke-img:hover {
  animation: shake 0.5s;
  animation-iteration-count: infinite;
}
@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}
  
  .card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
  }
  .id {
    background-color: #1ecff7; 
    text-align: center;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.poke-name {
  font-family: 'Reggae One';
  font-size: 24px;
  color: #9ea7ac;
  text-align: center;
  padding: 5px;
}
.type {
  background-color: #333;
  padding: 2px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  margin-top: 5px;
  text-align: center;
}
  .type img{
    max-width: 10%;
    height: auto;
    border-radius: 5px;
    margin: 10px;
  }
  .poke-size {
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px;
  }

#scrollToTopButton {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #1ecff7; 
  color: white;
  border: 1px solid gray;
  border-radius: 5px;
  box-shadow: 1px 1px 4px rgba(66, 132, 68, 0.674);
  padding: 10px;
  cursor: pointer;
}
#scrollToTopButton:hover {
  background-color: rgba(194, 185, 178, 0.75);
}
footer {
  margin-top: 600px;
}