
#auto-complete-container {
  font-family: Avenir Next, Avenir, SegoeUI, sans-serif;
} 

#auto-complete-container {
  margin: 2em 0;
}

.modal #auto-complete-container {
  margin: 0 0 36px;
}

/**
* Make the field a flex-container, reverse the order so label is on top.
*/
 
.field {
  display: flex;
  flex-flow: column-reverse;
  margin-bottom: 1em;
}
/**
* Add a transition to the label and input.
* I'm not even sure that touch-action: manipulation works on
* inputs, but hey, it's new and cool and could remove the 
* pesky delay.
*/
.auto-complete > label, input {
  transition: all 0.2s;
  touch-action: manipulation;
}

.auto-complete > input {
  width: 80%;
  font-size: 16px;
  line-height: 16px;
  color: #212b36;
  font-weight: 400;
  /* border: 0;
  border-bottom: 1px solid #ccc; */
  border: 1px solid rgba(33,43,54,0.3);
  font-family: inherit;
  -webkit-appearance: none;
  border-radius: 3px;
  padding: 14px 12px;
  cursor: text;
  text-transform: none;
}

.auto-complete > input:focus {
  outline: 0;
  border-bottom: 1px solid #666;
}

.auto-complete > label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
/**
* Translate down and scale the label up to cover the placeholder,
* when following an input (with placeholder-shown support).
* Also make sure the label is only on one row, at max 2/3rds of the
* field—to make sure it scales properly and doesn't wrap.
*/
.auto-complete > input:placeholder-shown + label {
  cursor: text;
  max-width: 66.66%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: left bottom;
  transform: translate(0, 2.125rem) scale(1.5);
}
/**
* By default, the placeholder should be transparent. Also, it should 
* inherit the transition.
*/
.auto-complete > ::-webkit-input-placeholder {
  opacity: 1;
  transition: inherit;
}
/**
* Show the placeholder when the input is focused.
*/
.auto-complete > input:focus::-webkit-input-placeholder {
  opacity: 1;
}
/**
* When the element is focused, remove the label transform.
* Also, do this when the placeholder is _not_ shown, i.e. when 
* there's something in the input at all.
*/
.auto-complete > input:not(:placeholder-shown) + label,
.auto-complete > input:focus + label {
  transform: translate(0, 0) scale(1);
  cursor: pointer;
}

@media only screen and (max-width: 422px) {
  .auto-complete > input {
      width: 74%;
  }
}