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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

section {
  position: relative;
  width: 100%;
  height: 100vh;
}

section .box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

section .box.box2 {
  background-color: #f5df4d;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

section .box h2 {
  color: #f5df4d;
  font-size: 5vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  animation: animate 3s ease-in-out infinite;
}

section .box.box2 h2 {
  color: #fff;
}

section .box h2 span:nth-child(2) {
  line-height: 1em;
  font-size: 2em;
}

@keyframes animate {
  0%,
  45% {
    transform: translateY(-70%);
  }
  55%,
  90% {
    transform: translateY(70%);
  }
  100% {
    transform: translateY(-70%);
  }
}
