@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  background-image: linear-gradient(90deg, #5fffea, #4fb6a5);
  font-size: 62.5%;
}

.search {
  position: relative;
  height: 5rem;
  border-radius: 5rem;
  /* width: 0; */
}

.search .input {
  background-color: #fff;
  border: 0;
  font-size: 1.8rem;
  padding: 1.5rem;
  height: 5rem;
  width: 5rem;
  transition: width 0.3s ease;
}

.btn {
  background-color: rgb(235, 235, 235);
  border: 0;
  cursor: pointer;
  font-size: 2.4rem;
  position: absolute;
  top: 0;
  right: 0;
  height: 5rem;
  width: 5rem;
  transition: transform 0.3s ease;
}

.btn:focus,
.input:focus {
  outline: 0;
}

.search.active .input {
  width: 40rem;
}

.search.active .btn {
  transform: translateX(19.8 rem);
}
