body{
  background: #ddd;
}

button{
  padding: 8px;
  width: 184px;
  border: 3px solid #21526f;
  margin: 10px 0;
  color: #fff;
  background: #21526f;
  transition: all .25s linear;
}

button:hover{
  background: #fff;
  color: #21526f;
  cursor: pointer;
}

#landing{
  background: url(earth.jpeg) center center;
  height: 400px;
  background-size: cover;
  position: relative;
}

#landing h1{
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 4em;
  color: #fff;
  text-shadow: 3px 3px 2px #111;
}

#selection{
  margin-top: 30px;
  text-align: center;
  padding: 0 25px;
}

#selection h3{
  color: #164b61;
}

#query{
  padding: 10px;
  margin: 10px 0;
}

#msg{
  margin: 50px 15px;
  text-align: center;
}

#results{
  display: flex;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto;
}

.single-result{
  width: 23%;
  margin: 15px 1%;
  position: relative;
  transition: all .25s linear;
}

.single-result:hover{
  cursor: pointer;
  transform: scale(.90);
}

.single-result img{
  border-style: none;
  width: 100%;
  border: 10px solid #fff;
  box-shadow: 0px 0px 15px #333;
  box-sizing: border-box;
  height: 300px;
  object-fit: cover;
}

.single-result .title{
  color: #8dbbde;
  text-align: center;
  padding: 8px 15px 3px 15px;
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  background: rgba(0,0,0, .75);
  margin: 0 10px;
  font-weight: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#pagination{
  margin-bottom: 100px;
  text-align: center;
}

#pagination button{
  font-size: 25px;
  width: 50px;
  margin: 20px 5px;
  display: none;
}

#overlay{
  width: 100%;
  height: 100%;
  padding-top: 50px;
  overflow-y: scroll;
  color: #fff;
  position: fixed;
  display: none;
  text-align: center;
  background: rgba(0,0,0, .85);
  top: 0;
}

#overlay img{
  max-width: 75%;
}

#overlay p{
  padding: 25px;
  margin-bottom: 150px;
  line-height: 1.5em;
}

/* Media Queries*/
@media screen and (max-width:1250px){
  .single-result{
    width: 31.333333%;
  }
}

@media screen and (max-width:980px){
  .single-result{
    width: 48%;
  }
}

@media screen and (max-width:600px){
  .single-result{
    width: 95%;
    margin: 15px 2.5%;
  }
}
