@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;900&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html{
  font-family: 'Montserrat', sans-serif;
  font-size: 100%;
}
body{
  background-color: #DBE2E9;
}
img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
section{
  min-height:100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 100px 0;
}
.container{
  background-color: white;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0px 0px 61px 7px #5e849c40;
  padding: 50px 20px;
  border-radius: 20px;
}
.header{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.header h1{
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -2px;
}
form{
  margin-top: 30px;
  width: 80%;
  max-width: 300px;
  position: relative;
}
input{
  border: none;
  border-bottom: 2px solid rgba(128, 128, 128, 0.479);
  font-size: 20px;
  width: 100%;
  outline: none;
  color: gray;
  background-color: transparent;
}
input::placeholder{
  opacity: .5;
  color: gray;
  font-family: 'Montserrat';
}
#suggest:after {
  line-height: 1.3em;
  pointer-events: none;
  border-bottom: 2px solid rgba(128, 128, 128, 0.479);
  display: inline-block;
  width: 20em;
  content: "Try Deer";
  position: absolute;
  top: 1px;
  padding: 5px;
  background-color: #fff;
  color: #999;
  animation: animText 30s linear infinite;
}

input:focus + #suggest {
  display: none;
}

@keyframes animText {
  0% {
    content: "Try \"Bison\"";
  }
  20% {
    content: "Try \"National Park\"";
  }
  40% {
    content: "Try \"Nature\"";
  }
  60% {
    content: "Try \"Yosemite\"";
  }
  80% {
    content: "Try \"Colorado\"";
  }
  100% {
    content: "Try \"Animals\"";
  }
}
form ion-icon{
  position: absolute;
  right: 0;
  font-size: 20px;
  opacity: .5;
  color: gray;
}
.gallery{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) ;
  margin-top: 50px;
  grid-gap: 20px;
}
.item{
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  border-radius:8px;
  transition: .3s ease box-shadow;
}

.item:hover{
  box-shadow: 0px 0px 20px 3px #00000042;
}
.item:nth-last-child(1){
  margin-bottom: 0;
}
.item h3{
  width: 100%;
  padding: 20px;
  position: absolute;
  background-color: #00000040;
  color: aliceblue;
  bottom: -70px;
  font-weight: 300;
  transition: .5s ease-in-out bottom;
}
.item:hover h3{
  bottom: 0;
}
@media only screen and (min-width: 900px){
 .container{
   max-width: 1160px;
   padding: 200px;
 }
 .header{
   flex-direction: row;
   justify-content: space-between;
 }
 .header h1{
   font-size: 50px;
 }
 .header input{
   font-size: 24px;
 }
 .header ion-icon{
   font-size: 24px;
 }
 .gallery{
   grid-gap: 30px;
 }
 
}
.navbar {
  overflow: hidden;
  background-color: #333;
  /*position: relative;*/
  top: 0;
  width: 100%;
}

.navbar a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}
.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 16px;  
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}
.navbar a:hover .dropdown:hover .dropbtn {
  background: #ddd;
  color: black;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ddd;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}