:root {
  /* Farben für Pokémon-Typen */
  --fire: #f08030;
  --water: #6890f0;
  --grass: #78c850;
  --electric: #f8d030;
  --ice: #98d8d8;
  --fighting: #c03028;
  --poison: #a040a0;
  --ground: #e0c068;
  --flying: #a890f0;
  --psychic: #f85888;
  --bug: #a8b820;
  --rock: #b8a038;
  --ghost: #705898;
  --dragon: #7038f8;
  --dark: #705848;
  --steel: #b8b8d0;
  --fairy: #f0b6bc;
  --normal: #d3d3d3;
}

body,
html {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #1c1e26;
  color: #ffffff;
  margin: 0;
  padding: 0;
  flex: 1;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: relative;
}

header .pokeball-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: auto;
}

.header h1 {
  margin: 0;
  font-size: 24px;
  color: #f8d030;
}

.header input {
  padding: 10px;
  border-radius: 5px;
  border: none;
  width: 200px;
}

.pokemon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px;
  flex: 1;
}

.pokemon-card {
  background-color: #2a2d3b;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: block; /
}


.pokemon-card.normal {
  background-color: #2a2d3b;
  border: 2px solid var(--normal);
}

.pokemon-card img {
  width: 100px;
  height: 100px;
  transition: transform 0.3s;
}

.pokemon-card:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.footer {
  text-align: center;
  padding: 10px;
  background-color: #333;
  color: #ffffff;
  position: sticky;
  bottom: 0;
  width: 100%;
}

.footer a {
  color: #f8d030;
  text-decoration: none;
}

.load-more-btn {
  padding: 10px 20px;
  background-color: #f8d030;
  border: none;
  color: #1c1e26;
  font-size: 16px;
  cursor: pointer;
  margin: 20px auto;
  display: block;
  border-radius: 5px;
}

.load-more-btn:hover {
  background-color: #e5c127;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.popup-content {
  background-color: #2a2d3b;
  border-radius: 15px;
  padding: 20px;
  width: 400px;
  max-width: 90%;
  text-align: center;
  color: #ffffff;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
}
