#app {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

.video {
  position: absolute;
  top: 0;
  left: 0;
}

.dialogue {
  position: relative;
  display: flex;
  max-height: 50%;
  min-height: 300px;
  min-width: 1024px;
  width: 60%;
}

.dialogue-blobs {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
  filter: url("#fancy-goo");
  transform: scale(0);
  animation: scale-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s 1 normal forwards;
}

.dialogue-blob-top {
  position: absolute;
  top: 0;
  width: 100%;
  height: 75%;
  background-color: #fdf8e3;
  border-radius: 40% 40% 30% 30%/150% 150% 150% 150%;
  animation: blob 1.5s cubic-bezier(0.37, 0, 0.63, 1) 0.3s infinite alternate;
  transform-origin: center;
}

.dialogue-blob-bottom {
  position: absolute;
  bottom: 0;
  width: 94%;
  height: 40%;
  background-color: #fdf8e3;
  border-radius: 5% 5% 20% 20%/100% 100% 100% 100%;
  animation: blob 1s infinite alternate cubic-bezier(0.37, 0, 0.63, 1);
  transform-origin: center;
}

.dialogue-character-wrap {
  position: absolute;
  animation: character 0.6s infinite alternate cubic-bezier(0.37, 0, 0.63, 1);
}

.dialogue-character {
  display: inline-block;
  margin-right: auto;
  padding: 0.5rem 2rem;
  font-family: "Varela Round", sans-serif;
  font-size: 2rem;
  color: #1a457a;
  background-color: #fadd55;
  border-radius: 30%/100% 100% 120% 120%;
  transform: perspective(2rem) rotateX(1deg) rotateZ(-9deg) translateX(20%) translateY(-45%) scale(0);
  animation: fade-character 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 1s 1 normal forwards;
}

.dialogue-text {
  position: absolute;
  width: 100%;
  padding: 1em 1em 2em 1.5em;
  font-family: "Hind", sans-serif;
  font-size: 3rem;
  line-height: 1.5em;
  color: #807256;
}

.arrow {
  position: absolute;
  bottom: 0;
  left: 50%;
  opacity: 0;
  animation: arrow 0.6s cubic-bezier(0.37, 0, 0.63, 1) 4.5s infinite alternate;
}

@keyframes blob {
  from {
    transform: rotate(0.3deg) scale(1);
  }
  to {
    transform: rotate(-0.3deg) scale(0.99);
  }
}
@keyframes character {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(3px);
  }
}
@keyframes scale-up {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes fade-character {
  from {
    transform: perspective(2rem) rotateX(1deg) rotateZ(0deg) translateX(20%) translateY(-45%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: perspective(2rem) rotateX(1deg) rotateZ(-6deg) translateX(20%) translateY(-45%) scale(1);
    opacity: 1;
  }
}
@keyframes arrow {
  from {
    transform: translateY(33%) translateX(-50%) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(50%) translateX(-50%) scale(0.9);
    opacity: 1;
  }
}
