.digimon-card {
  background-color: #5a5a5a;
  color: #fff;
}

.child {
  background-color: #fbbc04;
  color: #1a1a1a;
}

.baby-ii, .baby-i {
  background-color: #a0e7e5;
  color: #0f2b33;
}

.adult {
  background-color: #ff6b6b;
  color: #fff;
}

.perfect {
  background-color: #9d4edd;
  color: #fff;
}

.ultimate {
  background-color: #ffd166;
  color: #1a1a1a;
}

.armor {
  background-color: #c9c9c9;
  color: #000;
}

.unknown {
  background-color: #b0bec5;
  color: #000;
}

/* Indicador de Carregamento */
.loading-container {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #6f38f6;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Lista */
.digimons {
  display: grid;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 5px;
  gap: 1rem;
  color: #000;
  border: solid 5px #000;
  border-radius: 30px;
}

/* Card Digimon */
.digimon {
  margin: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: solid 1px #ccc;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  color: inherit;
}

.digimon:hover {
  transform: scale(1.02);
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
}

.digimon .name {
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: capitalize;
}

.digimon .detail {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.digimon .detail .types {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
}

.digimon .detail .types .type {
  text-align: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 1rem;
  filter: brightness(1.1);
  color: inherit;
}

.digimon .detail img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  align-self: center;
}

/* Paginação */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem;
}

.pagination button {
  background-color: #3b4cca;
  border: none;
  border-radius: 1rem;
  color: #fff700;
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  cursor: pointer;
  margin: 0.25rem;
  transition: all 0.3s ease-in-out;
}

.pagination button:hover {
  border: solid 1px red;
}

/* Busca */
.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.input {
  border: solid 1px #000;
  border-radius: 0.3rem;
  color: #000;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  margin: 0.25rem;
}

.btnSearch,
.btnClear {
  border: solid 1px #000;
  border-radius: 5px;
  background-color: #3b4cca;
  color: #fff700;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  margin: 0.25rem;
  transition: all 0.3s ease-in-out;
}

.btnSearch:hover,
.btnClear:hover {
  border: solid 1px red;
}

/* Footer */
.footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  background-color: #e2cc09;
  box-sizing: border-box;
}

.footer-link {
  border: solid 1px #000;
  border-radius: 5px;
  background-color: #3b4cca;
  color: #fff700;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  margin: 0.25rem;
}

/* Responsivo - Tablet */
@media screen and (min-width: 576px) {
  .digimons {
    grid-template-columns: 1fr 1fr;
  }

  .content {
    max-width: 576px;
    margin: 0 auto;
    height: 100vh;
  }
}

/* Responsivo - Desktop */
@media screen and (min-width: 992px) {
  .digimons {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .content {
    max-width: 992px;
    margin: 1rem auto;
    height: auto;
    border-radius: 1rem;
  }

  body {
    background-color: #f6f8fc;
  }

  .input {
    width: 50%;
  }

  .input::placeholder {
    text-align: left;
  }
}
