* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  font-size: 62.5%;
}

.container {
  width: 100%;
  height: 100vh;
  background-color: #161a1d;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-bar {
  width: 8rem;
  height: 8rem;
  text-align: right;
  background-color: #fff;
  border-radius: 10rem;
  box-shadow: 0 1rem 6rem rgba(0, 0, 0, 0.6);
  position: relative;
  transition: width 0.5s cubic-bezier(0.9, 0, 0.3, 0.9);
}

.change .search-bar {
  width: 45rem;
}

.search-bar input {
  width: 100%;
  height: 100%;
  border-radius: 5rem;
  border: none;
  background-color: none;
  padding: 1rem 7.5rem 1rem 2rem;
  font-family: "Signika Negative", sans-serif;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.5s;
}

.change .search-bar input {
  opacity: 1;
  transition: opacity 0.5s 0.3s;
}

.search-bar i {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 7rem;
  height: 7rem;
  background: #ed3758;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s 0.3s;
}

.search-bar i:nth-child(3) {
  opacity: 0;
}

.change .search-bar i:nth-child(3) {
  opacity: 1;
}

.change .search-bar i:nth-child(2) {
  opacity: 0;
}
