body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

.wrapper {
  position: relative;
  text-align: center;
  z-index: 1;
  width: 800px;
  height: 800px;
}

.background-image {
  margin-top: 20px;
  position: absolute;
  top: 40%;
  left: 0%;
  width: 50%;
  height: 50%;
  background-image: url('dollars.png');
  background-size: 100% 100%;
  background-position: center;
  opacity: 0.5;
  transform: translate(-50%, -50%);
  animation: float 5s ease-in-out infinite;
  z-index: 5;
}

.header {
  margin-top: 350px;
  font-size: 3.5rem;
}

.animated-text1 {
  font-size: 6.5rem;
  background-image: url("https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExdHd4dWdseWZrbzVjMWdxNG92bHpkZXZlcW5qYTNmZTA1cWkxbW1teiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/5kFbMBOEdWjg1nItoG/giphy.gif");
  background-size: cover;
  -webkit-background-clip: text;
  color: transparent;
  animation: txt 3s ease-in-out infinite;
}

p {
  z-index: -3;
  text-align: left;
  font-size: 5rem;
  position: absolute;
  margin-top: -50px;
  margin-left: -310px;
}

.animated-text {
  z-index: 3;
  font-size: 6.5rem;
  background-image: url("https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExdHd4dWdseWZrbzVjMWdxNG92bHpkZXZlcW5qYTNmZTA1cWkxbW1teiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/5kFbMBOEdWjg1nItoG/giphy.gif");
  background-size: cover;
  -webkit-background-clip: text;
  color: transparent;
  animation: txt 3s ease-in-out infinite;
}

@keyframes txt {
  0% {
    transform: translate(-50%, -50%) translateY(-10px);
    font-variation-settings: 'wght' 400, 'opsz' 26; 
  }

  50% {
    transform: translate(-50%, -50%) translateY(-5px);
    font-variation-settings: 'wght' 600, 'opsz'96; 
  }

  100% {
    transform: translate(-50%, -50%) translateY(-10px);
    font-variation-settings: 'wght' 400, 'opsz' 26; 
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(10px);
  }
}
