html {
  font-family: "Comic Neue", cursive;
}

main {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

a {
  text-decoration: none;
}

#bee-title {
  text-align: center;
  font-size: calc(4em + 2.5vw);
  margin: 0;
  user-select: none;
}

#bee-title:hover {
  animation: buzz 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

#buzz-text {
  text-align: center;
  font-weight: bold;
  text-transform: capitalize;
  font-size: xx-large;
}

#buzz-text > span {
  display: inline-block;
  opacity: 0;
  animation: pop-up 4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

#buzz-text > span:last-child {
  animation-delay: 0.5s;
}

#subtitle {
  font-size: large;
  height: 1em;
  line-height: 1em;
  text-align: center;
  overflow-y: hidden;
  display: flex;
}

#subtitle #sliding-text {
  flex-direction: column;
  animation: slide-up 4s linear infinite alternate;
}

@keyframes buzz {
  10%,
  90% {
    transform: translate(0, -0.25px);
  }

  20%,
  80% {
    transform: translate(0, 0.5px);
  }

  30%,
  50%,
  70% {
    transform: translate(0, -1px);
  }

  40%,
  60% {
    transform: translate(0, 1px);
  }
}

@keyframes pop-up {
  0% {
    opacity: 0;
    transform: translate(0, 28px);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(0, 10px);
  }
}

@keyframes slide-up {
  0%,
  45% {
    transform: translate(0, 0);
  }
  55%,
  100% {
    transform: translate(0, -1em);
  }
}
