@import url('https://fonts.googleapis.com/css?family=Lato:300,400&display=swap');

* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(to right, #a8dadc, #457b9d); /* Blue-green gradient */
  font-family: 'Lato', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
}

h1 {
  letter-spacing: 3px;
  color: #1d3557; /* Dark blue */
  margin-bottom: 20px;
}

.search-container {
  margin-bottom: 30px;
  display: flex;
  gap: 10px;
}

#pokemonSearch {
  padding: 10px 15px;
  border: 2px solid #1d3557; /* Dark blue border */
  border-radius: 25px;
  font-size: 1rem;
  width: 300px;
  transition: border-color 0.3s ease;
}

#pokemonSearch:focus {
  outline: none;
  border-color: #e63946; /* Red on focus */
}

#searchBtn {
  background-color: #e63946; /* Red button */
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#searchBtn:hover {
  background-color: #c0392b; /* Darker red on hover */
}

.pokemon-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: space-between;
  justify-content: center;
  margin: 0 auto;
  max-width: 1200px;
}

.pokemon-card {
  background-color: #f1faee; /* Light background for card */
  border-radius: 15px; /* More rounded */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Softer shadow */
  margin: 15px;
  padding: 25px;
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

.pokemon-card:hover {
  transform: translateY(-5px); /* Slight lift on hover */
}

.pokemon-card .image-container {
  background-color: rgba(255, 255, 255, 0.8); /* More opaque background for image */
  border-radius: 50%;
  width: 130px; /* Slightly larger image container */
  height: 130px; /* Slightly larger image container */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px; /* Centered and more margin */
}

.pokemon-card .image-container img {
  max-width: 90%;
  max-height: 90%;
}

.pokemon-card .details {
  margin-top: 15px;
}

.pokemon-card .details .pokemon-id {
  background-color: rgba(29, 53, 87, 0.1); /* Dark blue with transparency */
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9em; /* Slightly larger font */
  color: #1d3557; /* Dark blue */
  font-weight: bold;
}

.pokemon-card .details .pokemon-name {
  margin: 15px 0 10px;
  letter-spacing: 1px;
  color: #1d3557; /* Dark blue */
  text-transform: capitalize;
  font-size: 1.3em;
}

.pokemon-card .details .pokemon-type {
  font-size: 0.9em;
  color: #457b9d; /* Medium blue */
}