.search {
    background: #fff;
    padding: 12px 16px 12px 48px;
    position: relative;
    /*display: table;*/
    
    display: block;
    width: 36vw;
    min-width: 355px;

    margin: auto;
    box-shadow: 0 4px 16px -1px rgba(18, 22, 33, 0.3);
    transition: background 0.1s ease, transform 0.1s ease, padding 0.5s ease 0.1s;
  }
  .search .bar {
    position: absolute;
    left: 16px;
    top: 15px;
    width: 32px;
    height: 32px;
    overflow: hidden;
  }
  .search .bar span {
    display: block;
    color: #fff;
    position: absolute;
    left: 12px;
    top: 0;
    line-height: 32px;
    font-weight: 500;
    font-size: 16px;
    opacity: 0;
    right: 16px;
    overflow: hidden;
    white-space: nowrap;
    padding-left: 15px;
  }
  .search .bar:before {
    content: "";
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    bottom: 0;
    right: 16px;
    border-radius: 16px 0 0 16px;
    background: #2d5c27;
    opacity: 0;
  }
  .search .bar .icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    background: #2d5c27;
    border-radius: 50%;
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    transform-style: preserve-3d;
    transform-origin: 0 0;
    transform: scale(0.8);
    transition: transform 0.4s ease 0s, background 0.1s ease;
  }
  .search .bar .icon:before, .search .bar .icon:after {
    content: "";
    display: block;
    position: absolute;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    border-radius: 50%;
  }
  .search .bar .icon:before {
    background: #fff;
    left: 4px;
    top: 4px;
    right: 4px;
    bottom: 4px;
    z-index: 2;
    transform: rotateY(0deg);
    transition: background 0.1s ease;
  }
  .search .bar .icon:after {
    background: #2d5c27;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    transform: rotateY(180deg);
    transition: background 0.1s ease;
  }
  .search .bar .icon i {
    left: 75%;
    top: 84%;
    position: absolute;
    display: block;
    transform: rotate(-45deg);
    transform-origin: 0 0;
  }
  .search .bar .icon i:before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: #2d5c27;
    display: block;
    transform-origin: 50% 0;
    transition: transform 0.4s ease 0s, background 0.1s ease;
  }
  .search form {
    display: block;
    padding: 0;
    margin: 0;
  }
  .search form input,
  .search form span {
    white-space: pre;
    font-size: 16px;
    font-family: inherit;
    padding: 8px 16px 8px 12px;
    display: block;
    line-height: 22px;
    font-weight: 500;
  }
  .search form input {
    color: #7AC143;
    caret-color: #7AC143;
    border: 0;
    background: 0;
    outline: none;
    transition: color 0.1s ease;
    min-width: 310px;
    max-width: 100%;
  }
  .search form span {
    display: none;
  }
  .search .close {
    border-radius: 50%;
    position: absolute;
    right: 16px;
    width: 24px;
    height: 24px;
    background: #e4ecfa;
    top: 19px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translate(-8px, 0);
    transition: transform 0.3s ease 0s, opacity 0.3s ease 0s, visibility 0.3s ease 0s;
  }
  .search .close:before, .search .close:after {
    content: "";
    position: absolute;
    width: 2px;
    border-radius: 1px;
    height: 10px;
    background: #6c7486;
    display: block;
    left: 50%;
    top: 50%;
    transition: background 0.3s ease;
  }
  .search .close:before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .search .close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  .search ul {
    min-width: 280px;
    height: 217px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 8px 0 24px 0;
    list-style: none;
    position: absolute;
    left: 16px;
    top: 62px;
    white-space: nowrap;
    width: 95%;
  }
  .search ul.show li {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
  }
  .search ul.show li:nth-child(1) {
    transition-delay: 0s;
  }
  .search ul.show li:nth-child(2) {
    transition-delay: 0.3s;
  }
  .search ul li {
    margin: 0 0 20px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translate(0, -6px);
  }
  .search ul li:last-child {
    margin-bottom: 0;
  }
  .search ul li a {
    display: block;
    font-size: 12px;
    text-decoration: none;
    position: relative;
  }
  .search ul li a img {
    display: block;
    left: 0;
    width: 20px;
    top: 50%;
    position: absolute;
    transform: translate(0, -50%);
  }
  .search ul li a img.queble {
    width: 24px;
  }
  .search ul li a h5 {
    margin: 0;
    color: #151924;
    font-size: 12px;
  }
  .search ul li a p {
    margin: 4px 0;
    color: #6c7486;
  }
  .search ul li a span {
    display: block;
    font-size: 10px;
    color: #6c7486;
    opacity: 0.6;
    font-style: italic;
  }
  .search ul li:nth-child(1) {
    transition-delay: 0.3s;
  }
  .search ul li:nth-child(2) {
    transition-delay: 0s;
  }
  .search ul li:hover {
    transition: transform 0.3s ease 0s;
    transform: translate(0, -2px);
  }
  .search.submit {
    background: #2d5c27;
    transform: scale(0.92);
  }
  .search.submit .bar .icon {
    background: #fff;
  }
  .search.submit .bar .icon:before {
    background: #2d5c27;
  }
  .search.submit .bar .icon:after {
    background: #fff;
  }
  .search.submit .bar .icon i:before {
    background: #fff;
  }
  .search.submit form input {
    color: #fff;
  }
  .search.prepare .bar:before {
    opacity: 1;
    transition: opacity 0s ease 1.25s;
  }
  .search.prepare .bar .icon {
    transform: scale(1);
    transform-origin: 50% 50% 0;
    transition: transform 0.4s ease 0.85s, transform-origin 0s ease 1.25s, background 0.1s ease;
  }
  .search.prepare .bar .icon i:before {
    transform: scaleY(0);
    transition: transform 0.4s ease 0.4s, background 0.1s ease;
  }
  .search.animate .bar .icon {
    transform: rotateY(75deg);
    transition: transform 0.6s ease 0s;
  }
  .search.animate .bar span {
    opacity: 1;
  }
  .search.done {
    padding-right: 39px;
    transition: padding 0.4s ease;
    max-height: 290px;
    height: 295px !important;
  }
  .search.done .bar .icon {
    transform: rotateY(180deg);
    transition: transform 0.7s ease 0s;
  }
  .search.done .close {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
    transition: transform 0.4s ease 0.5s, opacity 0.4s ease 0.5s, visibility 0.4s ease 0.5s;
  }
  .search.done .close:hover {
    background: #7AC143;
    transition: background 0.3s ease;
  }
  .search.done .close:hover:before, .search.done .close:hover:after {
    background: #fff;
  }
  .search.reset .bar:before {
    opacity: 0;
    transition: opacity 0s ease 0.4s;
  }
  .search.reset .bar .icon {
    transform: rotateY(0deg);
    transition: transform 0.4s ease 0s;
  }
  
  .search em {
    color: #6c7486;
    font-size: 12px;
    margin: 24px 0 0 0;
    display: block;
    text-align: center;
    font-style: italic;
  }
  .search em strong {
    font-weight: bold;
  }

  .search * {
    box-sizing: inherit;
  }
  .search *:before, .search *:after {
    box-sizing: inherit;
  }
  
  .search-d {
    min-height: 100vh;
    font-family: Roboto, Arial;
    color: #adafb6;
    background: #2f3545;
    display: flex;
    justify-content: center;
    align-items: center;
  }
