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

* {
  box-sizing: border-box;
}

body {
  background-image: linear-gradient(
    60deg,
    rgb(255, 216, 208),
    rgb(164, 166, 238)
  );
  font-family: "Open Sans";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}

.search {
  position: relative;
  height: 50px;
}

.search .input {
  background-color: white;
  border: 0;
  font-size: 1rem;
  padding: 1rem 1rem;
  height: 50px;
  width: 50px;
  transition: width 0.4s ease;
}

.btn {
  background-color: white;
  border: 0;
  cursor: pointer;
  font-size: 1.3rem;
  position: absolute;
  top: 0;
  left: 0;
  height: 50px;
  width: 50px;
  transition: transform 0.4s ease;
}

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

.search.active .input {
  width: 200px;
}

.search.active .btn {
  transform: translateX(198px);
  font-size: 1.1rem;
  color: rgb(150, 150, 150);
}

::placeholder {
  color: rgb(150, 150, 150);
}
