@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700;800&display=swap");

body {
  font-family: "Open Sans", sans-serif;
  background-color: #2d3142;
}

.form-wrapper {
  gap: 15px;
}

.search-form {
  position: relative;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #fff;
  height: 56px;
}
.search-form label {
  background: #e3875e;
  width: 200px;
  font-size: 20px;
  font-weight: bold;
  line-height: normal;
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  padding-left: 1rem;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  -webkit-animation: bounce 2s infinite;
  -moz-animation: bounce 2s infinite;
  -o-animation: bounce 2s infinite;
}

.search-form label span {
  border: 2px solid #fff;
  border-radius: 50px;
  width: 25px;
  height: 25px;
  display: grid;
  place-content: center;
  margin-right: 0.4rem;
}

.search-form label img {
  height: 100%;
  right: 0;
  position: absolute;
  top: 0;
  transform: translateX(20px);
}
.search-form input {
  outline: none !important;
  box-shadow: none !important;
  border: none;
  padding-left: 0;
  padding-right: 0;
  border: none;
}

.logo {
  width: 270px;
}

h4 {
  font-size: 20px;
  margin-top: 0.5rem !important;
}

button#button-search {
  position: relative;
  background: url(../images/manifying.png) no-repeat center 16px / contain;
  border: none;
  height: 100%;
  outline: none;
  box-shadow: none;
  margin-right: 10px;
}

.search-form input {
  overflow: hidden;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.15em;
  width: 780px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 240px;
}

.search-form input[type="search"]:invalid {
  animation: typing 4s steps(40, end) infinite;
}

/* The typing effect */
@keyframes typing {
  0%,
  100% {
    width: 0;
  }
  40% {
    width: 780px;
  }
  100% {
    width: 780px;
  }
}

/* clears the ‘X’ from Internet Explorer */
input[type="search"]::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}
input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}
/* clears the ‘X’ from Chrome */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

@-webkit-keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    width: 200px;
  }
  40% {
    width: 210px;
  }
  60% {
    width: 205px;
  }
}

@-moz-keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    width: 200px;
  }
  40% {
    width: 210px;
  }
  60% {
    width: 205px;
  }
}

@-o-keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    width: 200px;
  }
  40% {
    width: 210px;
  }
  60% {
    width: 205px;
  }
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    width: 200px;
  }
  40% {
    width: 210px;
  }
  60% {
    width: 205px;
  }
}

@media screen and (max-width: 991px) {
  header img {
    order: 1;
  }
  header h1 {
    order: 2;
  }
  h1 {
    font-size: 24px;
    text-align: left;
    width: 100%;
    margin-top: 1rem;
    font-weight: bold;
  }
  h4 {
    font-size: 16px;
    line-height: 23px;
  }
  .search-form label {
    font-size: 16px;
  }
  .search-form input {
    left: 215px;
    font-size: 14px;
  }
  @-webkit-keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
      width: 170px;
    }
    40% {
      width: 180px;
    }
    60% {
      width: 175px;
    }
  }

  @-moz-keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
      width: 170px;
    }
    40% {
      width: 180px;
    }
    60% {
      width: 175px;
    }
  }

  @-o-keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
      width: 170px;
    }
    40% {
      width: 180px;
    }
    60% {
      width: 175px;
    }
  }
  @keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
      width: 170px;
    }
    40% {
      width: 180px;
    }
    60% {
      width: 175px;
    }
  }
}


@media screen and (max-width: 767px) {
  header img.logo {
    order: 1;
    width:180px;
  }
  header h1 {
    order: 2;
    font-size: 18px;
  }
  h1 {
    font-size: 24px;
    text-align: left;
    width: 100%;
    margin-top: 1rem;
    font-weight: bold;
  }
  h4 {
    font-size: 16px;
    line-height: 23px;
  }
  .search-form label {
    font-size: 16px;
    padding-left: 10px;
  }
  .search-form input {
    left: 75px;
    font-size: 14px;
  }
  @-webkit-keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
      width: 40px;
    }
    40% {
      width: 50px;
    }
    60% {
      width: 45px;
    }
  }

  @-moz-keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
      width: 40px;
    }
    40% {
      width: 50px;
    }
    60% {
      width: 45px;
    }
  }

  @-o-keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
      width: 40px;
    }
    40% {
      width: 50px;
    }
    60% {
      width: 45px;
    }
  }
  @keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
      width: 40px;
    }
    40% {
      width: 50px;
    }
    60% {
      width: 45px;
    }
  }
}
