* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: rgb(245, 232, 232);
}

h1 {
  text-transform: uppercase;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 2px;
  color: brown;
}

h2 {
  text-align: center;
  text-transform: capitalize;
  margin-bottom: 10px;
}

main p {
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-container {
  display: flex;
  align-items: center;
  max-width: 300px; /* Adjust this value as needed */
  margin: 0 auto; /* Center the container horizontally */
  border: 2px solid #ccc;
  border-radius: 5px;
  padding: 5px;
}

.search-container input[type="text"] {
  flex: 1;
  border: none;
  padding: 5px;
  outline: none;
  background: none;
}

.search-icon {
  width: 20px;
  height: 20px;
  background-image: url("./images/search-icon.svg");
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  padding: 5px;
}

.pagination button {
  margin: 5px;
  padding: 5px;
}

.pokemon-container {
  padding: 30px;
  margin: 20px 0 20px 0;

  display: flex;
  justify-content: space-around;
  gap: 15px;
  flex-wrap: wrap;
}

.pokemon-cell {
  height: 250px;
  width: 250px;
  border-radius: 5px;
  border: 1px solid rgb(190, 175, 175);
  background-color: rgb(199, 255, 239);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.pokemon-cell:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pokemon-image {
  width: 100%;
  height: 80%;
  object-fit: contain;
  border-bottom: 0.2px solid rgb(190, 175, 175);
}

.pokemon-name {
  margin-top: 5px;
  font-weight: bolder;
  font-size: 18px;
}

/* style.css */
.pokemon-details-popup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 10px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none;
  width: 50%;
  height: 70%;
  border: 1px solid gray;
  border-radius: 5px;
  background-color: rgb(199, 255, 239);
}

.popup-content {
  display: flex;
  flex-direction: column;
}

.popup-content p {
  margin-top: 10px;
  text-align: justify;
  font-weight: bold;
}

.popup-content img {
  display: flex;
  justify-content: center;
  align-content: center;
  margin-left: 40%;
  margin-right: 40%;
}

.popup-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 20px;
  border: 1px solid gray;
  border-radius: 3px;
  background: rgb(245, 232, 232);
  cursor: pointer;
}

.footer-content {
  width: 100%;
  height: 70px;
  border-top: 1px solid gray;
  background-color: #ccc;
  text-align: center;
  margin-top: 25px;
}

.footer-content p {
  margin-top: 30px;
  font-weight: bold;
}

.footer-content p a {
  text-decoration: none;
}
