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

body {
  box-sizing: border-box;
}
body {
  background-image: linear-gradient(90deg, #7d5fff, #8176b3);
  font-family: "Roboto", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}
.search {
  position: relative;
  height: 50px;
  border: 0;
}
.input {
  background-color: #fff;
  border: 0;
  font-size: 18px;
  height: 40px;
  width: 0px;
  transition: width 0.3s ease;
}
.search .btn {
  background-color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 25px;
  position: absolute;
  top: 0;
  right: 0;
  height: 50px;
  width: 50px;
  transition: transform 0.3s ease;
}
.btn:focus,
.input:focus {
  outline: none;
}
.active .input {
  width: 300px;
  height: 50px;
}
.search .active .btn {
  transform: translateX(198px);
}
