.pokemon-card {
  width: 100%;
  max-width: 260px;
  background: white;
  border-radius: 18px;
  padding: 20px;
  border: none;
  cursor: pointer;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-position 0.3s ease;

  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;

  background: linear-gradient(
    135deg,
    var(--type1-color) 45%,
    var(--type2-color) 0
  );
  background-size: 200% 200%;
}

.pokemon-card h2 {
  font-size: clamp(1rem, 1.4vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.pokemon-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  background-position: 100% 100%;
}

.pokemon-card img {
  max-width: 130px;
  max-height: 130px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.pokemon-card .pokemon-id {
  font-size: clamp(0.9rem, 1.1vw, 1.4rem);
  font-weight: 600;
  opacity: 0.9;
  position: absolute;
  top: 12px;
  right: 12px;
}

.card-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pokemon-info {
  font-size: clamp(0.9rem, 1vw, 1.2rem);
  text-align: center;
  margin-top: 10px;
  overflow-y: auto;
  width: 100%;
  height: inherit;
  display: flex;
  align-items: center;
}

.pokemon-info span {
  display: flex;
  justify-content: space-around;
}

.pokemon-info-big-card-moves {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  overflow-y: auto;
  height: 100%;
  flex-grow: 1;
}

.pokemon-moves {
  font-size: clamp(12px, 1vw, 16px);
  transition: 0.2s ease;
  white-space: nowrap;
}

#pokemon-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  z-index: 500;
}
