/*------------------------------------*
  $SEARCHFORM OVERLAY
*------------------------------------*/
#searchform-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 100;
}

#searchform-overlay .container {
  position: relative;
  max-width: 550px;
  height: 100%;
}

#searchform-overlay a.search-overlay-close {
  position: absolute;
  top: -50px;
  left: 50%;
  margin-left: -30px;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.2);
  text-align: center;
  border-radius: 2px;
}

#searchform-overlay a.search-overlay-close:hover {
  background-color: rgba(255,255,255,0.3);
}

#searchform-overlay a.search-overlay-close span {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
}

#searchform-overlay a.search-overlay-close:before,
#searchform-overlay a.search-overlay-close:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  width: 100%;
  margin-top: 6px;
  background-color: #fff;
  border-radius: 5px;
}

#searchform-overlay a.search-overlay-close:before {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#searchform-overlay a.search-overlay-close:after {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

body.admin-bar #searchform-overlay a.search-overlay-close {
    top: 50px;
}

#searchform-overlay form {
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -33px;
  width: 100%;
  text-align: center;
}

#searchform-overlay form input, #searchform-overlay form label {
  font-size: 22px;
  line-height: 1.3;
  padding: 18px 0;
  margin: 0;
  min-height: 50px;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

#searchform-overlay form input {
  position: relative;
  border: 0;
  background-color: transparent;
  border-bottom: 1px solid #444;
  z-index: 2;
  transition: border-color .3s ease;
  -webkit-transition: border-color .3s ease;
  -moz-transition: border-color .3s ease;
  -o-transition: border-color .3s ease;
  -ms-transition: border-color .3s ease;
}

#searchform-overlay form input:hover {
  border-color: #777;
}

#searchform-overlay form input:focus {
  border-color: #fff;
}

#searchform-overlay form label {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  cursor: text;
  opacity: .5;
  z-index: 1;
}

#searchform-overlay form label i {
  display: inline-block;
  background-color: #fff;
  width: 3px;
  height: 3px;
  margin-left: 3px;
  -webkit-animation: blink 1s linear infinite;
  -moz-animation: blink 1s linear infinite;
  -o-animation: blink 1s linear infinite;
  animation: blink 1s linear infinite;
}

#searchform-overlay form label i + i {
  -webkit-animation-delay: .2s;
  -moz-animation-delay: .2s;
  -o-animation-delay: .2s;
  animation-delay: .2s;
}

#searchform-overlay form label i + i + i {
  -webkit-animation-delay: .4s;
  -moz-animation-delay: .4s;
  -o-animation-delay: .4s;
  animation-delay: .4s;
}

#searchform-overlay form.search-filled label {
  opacity: 0;
  -webkit-transition-duration: 150ms;
  -moz-transition-duration: 150ms;
  -o-transition-duration: 150ms;
  transition-duration: 150ms;
}

body #wrap #searchform-overlay .container {
  max-width: 550px;
}