/* these are the autocomplete rules - note that the input id MUST be "myInput" since
that's what the javascript is looking for
*/

.autocomplete {
  /*the container must be positioned relative:*/
  position: relative;
  display: inline-block;
  width: 66%;
}

input[type=submit] {
  background-color: #FFF;
  color: #115E67;
  cursor: pointer;
  display: block;
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  font-family: "myriad-pro", arial, sans-serif;
	font-size: 2em;
	font-weight: 300;
	margin-bottom: 2em;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff; 
  border-bottom: 1px solid #d4d4d4; 
}

.autocomplete-items div:hover {
  /*when hovering an item:*/
  background-color: #e9e9e9; 
}

.autocomplete-active {
  /*when navigating through the items using the arrow keys:*/
  background-color: #e9e9e9 !important; 
  color: #000; 
}

/* MEDIA QUERIES*/

@media only screen and (max-width:945px) {
	.autocomplete-items {
		font-size: 1.8em;
	}
}

@media only screen and (max-width:860px) {
	.autocomplete {
		width: 100%;
	}
}

@media only screen and (max-width:640px) {
	input.modalbutton {
		margin: 1.5em 0 0 0;
	}
}