.autocomplete {
position: relative;
display: inline-block;
color: black;
margin-right: 5%;
flex: 1;
}
input {
  border: 1px solid transparent;
  background-color: #f1f1f1;
  padding: 10px;
  font-size: 16px;
  max-width: 100%;
}
input[type=text] {
  background-color: #f1f1f1;
  width: 100%;
}
input[type=submit] {
  background-color: DodgerBlue;
  color: #fff;
}
.autocomplete-items {
  position: fixed;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  left: 0;
  right: 0;
  text-align: center;
  line-height: 1;

}
.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color:  rgb(207, 231, 255);
  border-bottom: 1px solid #d4d4d4;
  
}



.autocomplete-items div:nth-child(1) {
    background: rgb(49, 152, 255);
    color: whitesmoke;
  }
.autocomplete-items div:nth-child(2) {
    background: rgb(68, 161, 255);
    color: whitesmoke;
  }
  .autocomplete-items div:nth-child(3) {
    background: rgb(89, 172, 255);
    color: whitesmoke;
  }
.autocomplete-items div:nth-child(4) {
    background: rgb(103, 178, 253);
    color: whitesmoke;
  }
  .autocomplete-items div:nth-child(5) {
    background: rgb(131, 192, 253);
    color: whitesmoke;
  }
.autocomplete-items div:nth-child(6) {
    background: rgb(145, 200, 255);
    color: whitesmoke;
  }
  .autocomplete-items div:nth-child(7) {
    background: rgb(164, 209, 255);
  }
  .autocomplete-items div:nth-child(8) {
    background: rgb(182, 217, 252);
  }
  .autocomplete-items div:nth-child(9) {
    background: rgb(207, 231, 255);
  }


.autocomplete-items div:hover {
  background-color: rgb(255, 56, 56);
}
.autocomplete-active {

  background-color: rgb(255,82,82) !important;
  color: #ffffff;
}

@media (max-width: 1000px) {
  .autocomplete-items {
    font-size: 8em;
  
  }

}

@media screen and (orientation: portrait){
    .autocomplete-items {
    flex-direction: column-reverse;
    bottom: 8%;
    font-size: 2em;
    display: flex;
    line-height: 2;

    }
    
  .autocomplete {
    flex: 2;
    }

}
