h1 {
  font-size: 3rem;
  text-align: center;
  color: #2f84f4
}

/* set a flexbox */
.search{
  display: flex;   
  justify-content: center;
  align-items: center; 
  gap: 8px;
  margin: 20px auto;
  max-width: 40%;
}

.search-input {
  flex: 1; 
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.search-botton {
  background-color: #2f84f4;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

.search-botton:hover {
  background-color: #166FE5;
}

/* set a grid for 3 columns */
.all-pets {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  justify-items: center;
  row-gap: 30px;
  column-gap: 20px;
  max-width: 1200px;
  margin:0 auto;
}

/* set media queries for Medium screens */
@media (max-width: 900px) {
  .all-pets {
    grid-template-columns: 1fr 1fr;  /* 2 columns */
    max-width: 500px;
  }
}

/* set media queries for small screens */
@media (max-width: 600px) {
  .all-pets {
    grid-template-columns: 1fr;  /* 1 column */
    max-width: 300px;
  }
}

.pet {
  border-width: 1px;
  border-style: solid;
  border-color: rgb(172, 171, 171);
}


.pet-picture {
  width: 100%;
  aspect-ratio: 9 / 12;
  object-fit: cover;
} 

.name {
  font-weight: bold;
  font-size: 1.3rem;
  margin-left: 15px;
  margin-top: 5px;
  margin-bottom: 10px;
}

.button {
  font-size: 1rem;
  color: white;
  background-color: #2f84f4;
  border: none;
  padding: 15px 30px;
  margin-left: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  cursor: pointer;
}

.button:hover {
  background-color: #166FE5;
}