@import url("https://fonts.googleapis.com/css2?family=Poiret+One&display=swap");

* {
  --dark: #836096;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poiret One", cursive;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  min-height: 100vh;
  background-color: var(--dark);
}

.search {
  position: relative;
  height: 50px;
}

.search button {
  background-color: white;
  border: 0;
  color: var(--dark);
  font-size: 24px;
  position: absolute;
  top: 0;
  left: 0;
  height: 50px;
  width: 50px;
  transition: transform 0.5s ease;
  cursor: pointer;
  border-radius: 5px;
}

.search button:hover {
  box-shadow: 1px 2px 4px 3px rgba(54, 38, 63, 0.5);
}

.search input {
  font-size: 18px;
  padding: 1em;
  border: 0;
  height: 50px;
  width: 50px;
  transition: width 0.5s ease;
  border-radius: 5px;
}

.search button:focus,
.search input:focus {
  outline: none;
}

.search.active {
  box-shadow: 0px 7px 10px 4px rgba(54, 38, 63, 0.5);
}

.search.active input {
  /*Para que el conjunto del input y del botón queden centrados*/
  transform: translateX(-25px);
  width: 260px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.search.active button {
  transform: translateX(233px);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.search.active button:hover {
  box-shadow: none;
}

.textContainer h1 {
  font-size: 50px;
  font-weight: normal;
  margin-bottom: 50px;
  color: #ebe76c;
  text-align: center;
  line-height: 50px;
}

.textContainer h1 span {
  font-size: 90px;
}

.imgContainer {
  display: flex;
  max-width: 150px;
  margin-top: 55px;
}

.imgContainer .logo {
  width: 100%;
}
