@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: GILROY;
}
html,
body {
  width: 100%;
  height: 100%;
}

main {
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  background-color: #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.search {
  display: flex;
  justify-content: center;
  position: relative;
  height: 150px;
  width: 90%;
  align-items: center;
}

.search .input {
  border: 0;
  font-size: 18px;
  padding: 15px;
  height: 50px;
  width: 50px;
  border-radius: 10px;
  transition: width 0.3s ease;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.btn {
  background-color: black;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 24px;
  position: absolute;
  height: 50px;
  width: 50px;
  color: white;
  transition: transform 0.5s ease;
  box-shadow: 0px 4px 4px 0 rgba(0, 0, 0, 0.2);
}

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

.search.active {
  transform: translateX(-20px);
}

.search.active .input {
  width: 200px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}

.search.active .btn {
  background-color: white;
  color: black;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  transform: translateX(125px);
}
