*{
  margin: 0;
  padding:0;
  font-family: 'Poppins',sans-serif;
  box-sizing: border-box;
}

body{
  background-color: #39297b;
  color: #fff;
}

h1{
  text-align: center;
  margin: 100px auto 50px;
  font-weight: 600;
}

form{
  width: 90%;
  max-width: 600px;
  margin: auto;
  height: 80px;
  background:#434989;
  display: flex;
  align-items: center;
  border-radius: 8px;
}

form input{
  flex: 1; /* it will take entire space in the form */
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  padding: 0 30px;
}

form button{
  padding: 0 40px;
  height: 100%;
  background-color: #ff3929;
  color: #fff;
  font-size: 18px;
  border: 0;
  outline: 0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  cursor: pointer;
}

::placeholder{
  color: #fff;
  font-size: 18px;
}

#show-more-btn{
  background: #ff3929;
  color: #fff;
  border: 0;
  outline: 0;
  padding: 10px 20px;
  border-radius: 4px;
  margin: 10px auto 100px; /* first number for top second for left and right third is for bottom*/
  cursor: pointer;
  display: none; /* makes button block element allowing margin auto to center it horizontally*/
}

#search-result{
  width: 80%;
  margin: 100px auto 50px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 40px;
}

#search-result img{
  width: 100%;
  height: 230px;
  object-fit: cover; /*it cover the grid container*/
  border-radius: 5px;
}