@import url('./reset.css');
:root {
  --bg-color: #96bbf1;
  --card-bg: #ffffff;
  --primary-color: #ff5050;
  --text-dark: #333;
  --transition: all 0.3s ease;
}
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
}
body {
  background-color: var(--bg-color);
  color: var(--text-dark);
}

header {
  height: 300px;
  text-align: center;
  background-image: url('../assets/img/header.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

h1 {
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

#filterName {
  padding: 12px 20px;
  width: 100%;
  max-width: 400px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 1.6rem;
  margin-bottom: 30px;
  outline: none;
  transition: var(--transition);
}

#filterName:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(255, 80, 80, 0.2);
}

.pokemon-cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

.pokemon-card {
  width: 220px;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  color: white;
}

.pokemon-card:hover img {
  transition: all 0.5s ease;
  transform: scale(1.5);

}

.pokemon-card h2 {
  margin: 0 0 10px 0;
  text-transform: capitalize;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  font-size: 3rem;
}

.sprite img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.types {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.types span {
  background: rgba(14, 5, 5, 0.403);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 2rem;
  backdrop-filter: blur(8px);
}

.more-pokemons-btn-wrapper {
  margin: 40px 0;
}

.more-pokemons-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.more-pokemons-btn:hover {
  background-color: #e64545;
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: #333;
}

.close_pokemon {
  height: 25px;
  width: 25px;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  transition: var(--transition);
}

.pokemon_image {
  position: relative;
  height: 200px;
  background: #f8f9fa;
  border-radius: 15px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pokemon_image img {
  height: 100%;
  scale: calc(1.5);
}

img.pokemons_gif {
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 60px;
  height: 60px;
}

.no_pokemons {
  flex-grow: 1;
  text-align: center;
  font-size: 3rem;
  color: #ffffff;
  margin-top: 50px;
}

.stats-links {
  list-style: none;
  display: flex;
  justify-content: space-around;
  padding: 0;
  margin: 15px 0;
  border-bottom: 1px solid #eee;
}

.stats-links li {
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  color: #888;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.stats-links li:hover {
  color: var(--primary-color);
}

.stats-links li.active_link {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.stats-content-wrapper {
  height: 220px;
  text-align: left;
}
.stats-content {
  display: none;
}
.stats-content.active {
  display: block;
}

.stats-content p {
  margin: 8px 0;
  font-size: 1.6rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #eee;
}

.stats-content canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 200px;
}
.stats-content span {
  font-weight: bold;
  color: var(--primary-color);
}

.buttons-wrapper {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.buttons-wrapper button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition: var(--transition);
}

button[color="prev"] {
  background-color: #ddd;
  color: #666;
}

button[color="next"] {
  background-color: var(--primary-color);
  color: white;
}

.buttons-wrapper button:hover {
  opacity: 0.9;
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  body {
    font-size: 1.2rem;
  }
  header {
    height: 200px;
  }
}