#app {
  font-family: 'Roboto', 'Google Sans', sans-serif;
  text-align: left;
  max-width: 620px;
  width: 80%;
}

/* Entire searchbar */
.searchBar{
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: solid 1px white;
  background-color: white;
  margin: 0 auto;
  position: relative;
  display: table;
}

/* Contains searchbar elements, used to maintain size*/
.searchItems{
  height: 100%;
  width: 100%;
  position: relative;
  left:0%;
  right:0%;
  top:0%;
  bottom:0%;
  margin:auto;
  display: table-cell;
}

/* FontAwsome search icon */
.fa-search{
  width: 3%;
  margin-left: 1.5%;
  display: inline !important;
  font-size: 100%;
  top: 30%;
}

/* The input text */
.searchText{
  vertical-align: middle;
  border: 0;
  height: inherit;
  outline: none;
  box-shadow: none;
  padding: 0;
  width: 85%;
  font-family: Roboto;
  font-size: 18px;
  margin-left:2.5%;
  background-color: transparent;
  font-weight: lighter;
}

/* Contains all results */
#resultBox {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: white;
  transition: "max-height 0.2s ease";
  width: 100%;
  overflow: hidden;
  display: none;
}

/* The title at the top of the searchbar */
.resultHeader {
  margin-top: 10px !important;
  margin-left: 10px !important;
  font-size: 12px;
  font-weight: normal;
  font-family: Roboto;
  color: rgb(183, 183, 183);
}

#chat-window {
  display: block;
  width: 100%;
}

/* Each result is stored in an item box */
.itemBox {
  height: 55px;
  padding-left: 15px;
  display: table;
  width: 100%;
  border-bottom: 0.1px solid #e8e8e8;
  background-color: white;
  text-decoration: none;
}

/* The result text */
.itemText {
  font-size: 15px;
  margin-left: 15px;
  max-width: 80%;
  line-height: 100%;
  display: inline-block;
  vertical-align: middle;
  color: rgb(71, 118, 152);
}

/* The result image */
.itemImage {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  margin-left: 10px;
  margin: 7px  auto;
  vertical-align: middle;
  display: inline-block;
  object-fit: contain;
}
/* The showmore section that contains the arrows */
#showMore {
  top: 10px !important;
  font-size: 12px;
  height: 25px;
  text-align: center;
  text-decoration: none;
  cursor:pointer;
  color: rgb(71, 118, 152);
  display: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background-color: white;
  position: -webkit-sticky;
  position: -moz-sticky;
  position: -ms-sticky;
  position: -o-sticky;
  position: sticky;
}

/* Stars in the search bar */
#starLabel{
  display: table-cell;
  vertical-align: middle;
}

/* The arrows within the showmore */
#arrow {
  padding: 5px;
}

/* Contains the resultBox and showMore, used to maintain consistent size of 50% of the window*/
.results {
  margin-top: 10px;
  text-align: left;
  position: absolute;
  width: 100%;
  z-index: 999999999999999999999;
  box-shadow: 0px 10px 20px rgba(136, 136, 136, 0.21);
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  max-width: 620px;
  background-color: white;
}


@media screen and (max-width: 620px) {
  .app{
    vertical-align: center;
  }
  .searchBar {
    width: 100%;
    text-align: center;
  }

  .searchText {
    font-size: 3.5vw;
    padding: 0px;
    width: 80%;
  }

  .fa-search {
    font-size: 2.5vw;
  }

  .itemImage {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
  }
  .itemText {
    font-size: 100%;
    width: 80%;
    margin: auto;
    padding: 2%;
    vertical-align: middle;
    text-align: left;
  }

  .itemBox {
    padding: 0px;
    width: 100%;
    vertical-align: middle;
  }

  #resultBox {
    text-align: center;
    width: 100%;
    z-index: 0;
  }

  .resultHeader {
    text-align: left;
    font-size: 3vw;
  }

  .results {
    display: table;
    float: left;
    margin-top: 3px;
    position: inherit;
    left:0;
    right:0;
    margin-left: auto;
    margin-right: auto;

  }
}
@media screen and (max-width: 300px) {
  .app{
    display: none;
  }
  .results{
    display: none;
  }
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
  select,
  textarea,
  input {
    font-size: 16px;
  }
}
