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

@font-face {
  font-family: 'RickMorty';
  src: url('../assets/fonts/get_schwifty.ttf') format('truetype');
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #0b1120, #111827);
  color: #f9fafb;
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.logo-site {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.topo {
  background: linear-gradient(90deg, #111827, #1f2937);
  border-bottom: 3px solid #22c55e;
  padding: 32px 0;
  text-align: center;
}

.topo h1 {
  font-size: 2.4rem;
  color: #22c55e;
  margin-bottom: 10px;
}

.topo p {
  color: #d1d5db;
  font-size: 1rem;
}

.hero {
  padding: 50px 0 30px;
  text-align: center;
}

.hero h2 {
  font-family: 'RickMorty', Arial, sans-serif;
  font-size: 2.2rem;
  color: #22c55e;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.hero p {
  max-width: 800px;
  margin: 0 auto;
  color: #e5e7eb;
  font-size: 1.05rem;
}

.personagens {
  padding: 30px 0 60px;
  text-align: center;
}

.personagens h2 {
  font-family: 'RickMorty', Arial, sans-serif;
  color: #22c55e;
  font-size: 2rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.subtitulo {
  color: #d1d5db;
  margin-bottom: 25px;
}

.area-busca {
  background: rgba(31, 41, 55, 0.9);
  padding: 60px;
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 35px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.area-busca input,
.area-busca select {
  padding: 12px 14px;
  min-width: 220px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.area-busca button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: #22c55e;
  color: #111827;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.area-busca button:hover {
  background: #16a34a;
}

#cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: #1f2937;
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.card-conteudo {
  padding: 18px;
}

.card h3 {
  color: #22c55e;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.card p {
  color: #d1d5db;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.status-alive {
  color: #4ade80;
  font-weight: bold;
}

.status-dead {
  color: #f87171;
  font-weight: bold;
}

.status-unknown {
  color: #facc15;
  font-weight: bold;
}

.mensagem {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  color: #e5e7eb;
  font-size: 1rem;
}

.rodape {
  background: #030303;
  text-align: center;
  padding: 22px 0;
  color: #9ca3af;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 16px;
}

.footer-logo {
  max-width: 100%;
  width: 420px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .topo h1 {
    font-size: 2rem;
  }

  .hero h2,
  .personagens h2 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .area-busca {
    padding: 24px;
  }

  .area-busca input,
  .area-busca select,
  .area-busca button {
    width: 100%;
  }

  .card img {
    height: 260px;
  }

  .footer-logo {
    width: 260px;
  }
}