* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: #f8ffff;
  padding: 10px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #fff;
  padding: 10px 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.logo {
  width: 100px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #0072ff;
}

.search-bar {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.search-bar input {
  padding: 8px;
  border: 2px solid #0072ff;
  border-radius: 8px;
  font-size: 16px;
  width: 180px;
}

.search-bar button {
  background: #0072ff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-bar button:hover {
  background: #005ccc;
}

.result{
  margin: 0;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  margin: 100px 0 20px;
  border-bottom: 2px solid #000;
  width: fit-content;
}

.intro-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  margin-top: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.intro-text {
  flex: 1 1 300px;
  max-width: 600px;
}

.intro-text h1 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #0072ff;
}

.intro-text p {
  font-size: 12px;
  margin-bottom: 10px;
  line-height: 1.6;
  color: #333;
}

.starter-list {
  list-style: square inside;
  padding-left: 0;
  margin-top: 10px;
}

.starter-list li {
  font-size: 12px;
  margin-bottom: 5px;
  color: #444;
}

.intro-image {
  flex: 1 1 300px;
  text-align: center;
  align-self: center;
}

.intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.poke-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: white;
  border-radius: 20px;
  padding: 20px;
  width: 300px;
  margin: 20px auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.poke-card img {
  width: 150px;
  margin-bottom: 10px;
}

.poke-name {
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.poke-id {
  font-size: 16px;
  color: #eee;
}

.type-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.type-badges span {
  background-color: white;
  color: black;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0072ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none;
}


@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .search-bar {
    width: 100%;
    justify-content: space-between;
  }

  .intro-section {
    flex-direction: column;
    align-items: center;
  }

  .intro-text,
  .intro-image {
    max-width: 100%;
    text-align: center;
  }

  .search-bar input {
    flex: 1;
  }
}
