* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
header {
  background-color: gray;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

h1 {
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: bold;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 20px;
}

#campo-input {
  display: flex;
  width: 100%;
  justify-content: center;
}

#galeria-personagens {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 20px;
  flex-wrap: wrap;
}

#digitar-anime {
  width: 70%;
  min-height: 30px;
  border-radius: 5px;
}

#buscar-personagens {
  min-height: 30px;
  width: 15%;
  border-radius: 5px;
  color: white;
  background-color: rgb(40, 101, 255);
  cursor: pointer;
}

img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
}

.card-personagem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 250px;
  transition: transform 0.2s;
}
.card-personagem:hover {
  transform: scale(1.1);
}

.descricao-personagem {
  text-align: center;
  margin-top: 10px;
  color: rgb(0, 0, 0);
}

/* Responsividade */
@media (max-width: 768px) {
  #campo-input {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  #digitar-anime {
    width: 90%;
  }

  #buscar-personagens {
    width: 50%;
    min-height: 40px;
  }

  h2 {
    text-align: center;
    padding: 0 15px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  #buscar-personagens {
    width: 90%;
  }
  
  .card-personagem {
    width: 100%;
  }
}

