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

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

body {
  font-family: 'Lato', sans-serif;
  background: linear-gradient(to right, #b8c1ec, #eebbc3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0;
  padding-bottom: 30px;
}

/* Page Title */
h1 {
  margin-top: 20px;
  letter-spacing: 3px;
  color: #232946;
}

/* Search Container */
.search-container {
  margin: 20px 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.search-container input {
  padding: 10px 15px;
  border: 2px solid #232946;
  border-radius: 5px;
  font-size: 16px;
  width: 250px;
}

.search-container button {
  padding: 10px 20px;
  background-color: #232946;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.search-container button:hover {
  background-color: #141B41;
}

/* Cards Container */
.poke-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1400px;
}

/* Individual Pokemon Cards */
.pokemon {
  background-color: #eee;
  border-radius: 10px;
  margin: 10px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  width: 200px;
  transition: transform 0.2s ease;
}

.pokemon:hover {
  transform: scale(1.05);
}

.img-container {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.info {
  margin-top: 10px;
}

.number {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 0.8em;
}

.name {
  margin: 10px 0 5px;
  letter-spacing: 1px;
  text-transform: capitalize;
  font-weight: 600;
}

.type {
  font-size: 1em;
  text-transform: capitalize;
}

/* Modal Styles */
.modal {
  position: fixed; 
  display: none; 
  z-index: 100; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.5); 
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: auto;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
  padding: 20px;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 10px;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
}

.details-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.details-header img {
  width: 150px;
  height: 150px;
}

.details-info {
  margin-top: 20px;
}

.details-info h2 {
  margin-bottom: 10px;
  text-transform: capitalize;
}

.stats-list, .abilities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.stat-item, .ability-item {
  background-color: #eee;
  padding: 5px 10px;
  border-radius: 8px;
}

.stat-item span {
  font-weight: bold;
}
