@import url(https://fonts.googleapis.com/css?family=Open+Sans);

html {
  height: 100%;
}

body {
  background: rgb(242, 242, 242);
  font-family: "Open Sans", sans-serif;
  height: 100%;
  margin: 0;
}

.home {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.home .top-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  overflow: hidden;
  position: sticky;
  top: 0;
  height: 25%;
  width: 100%;
}

.corner-ribbon {
  position: relative;
  top: 35px;
  right: -70px;
  width: 250px;
  text-align: center;
  line-height: 50px;
  letter-spacing: 1px;
  color: #f0f0f0;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  background: #000;
  transition: 0.5s;
}

.corner-ribbon:hover {
  background: #00b4cc;
  transition: 0.5s;
}

.home .query-form {
  display: flex;
  margin: 0 auto;
  flex: 1;
}

#wrap img {
  max-width: 100%;
}

#search {
  display: flex;
  justify-content: center;
}

#searchTerm {
  width: 100%;
  border: 3px solid #00b4cc;
  border-right: none;
  padding: 5px;
  border-radius: 5px 0 0 5px;
  outline: none;
  color: #9dbfaf;
  box-sizing: border-box;
}

#searchTerm:focus {
  color: #00b4cc;
}

#searchButton {
  width: 40px;
  height: 36px;
  border: 1px solid #00b4cc;
  background: #00b4cc;
  text-align: center;
  color: #fff;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 20px;
}

.home .footer {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
}

.home .footer span {
  margin-right: 10px;
}

.overlay {
  position: absolute;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  display: none;
  opacity: 0;
  top: 0;
}

.overlay:target {
  display: flex;
  align-items: center;
  opacity: 1;
}
.popup {
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 60%;
  position: relative;
  transition: all 0.3s ease-in-out;
  overflow: auto;
  max-height: 90%;
}

.popup h2 {
  margin-top: 0;
  color: #333;
  font-family: Tahoma, Arial, sans-serif;
}
.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.popup .close:hover {
  color: #06d85f;
}
.popup .content {
  max-height: 30%;
}

.popup .content p {
  margin-left: 15px;
  margin-right: 15px;
}

.verify-user-form {
  display: flex;
  width: 90%;
  align-items: center;
}

.verify-user-form input {
  flex: 1;
  margin-right: 10px;
}

@media only screen and (max-width: 900px) {
  .popup {
    width: 80%;
  }
}

@media only screen and (max-width: 500px) {
  .query-form {
    width: 80%;
  }

  #searchTerm {
    height: 50px;
    font-size: 20px;
  }
  #searchButton {
    height: 50px;
    width: 50px;
  }
  .popup {
    width: 90% !important;
  }

  .verify-user-form {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
  }
  .verify-user-form button {
    margin-top: 10px;
  }
}

/* results page */

.result {
  width: 100%;
  height: 100%;
}
.result .header img {
  height: 100px;
}
.col-xs-12 {
  width: 100%;
  overflow: auto;
}
@media (min-width: 576px){
  .result .header .col-sm-4{
    margin-top: 25px;
  }
}
@media only screen and (max-width: 400px) {
  .result .header img {
    width: 200px;
    height: 80px;
  }
}
@media only screen and (max-width: 575px) {
  .result .header .col-sm-4{
    margin-left: 25px;
  }
}
