@keyframes moveUpDownControlled {
  0%,
  10% {
    transform: translateY(0);
  }
  5% {
    transform: translateY(-10px);
  }
  15% {
    transform: translateY(-10px);
  }
  20% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes draw-circle {
  0% {
    stroke-dashoffset: 314;
  }

  50% {
    stroke-dashoffset: 100;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes fill {
  from {
    fill: transparent;
  }

  to {
    fill: var(--white);
  }
}

@keyframes growPath {
  0%,
  10% {
    transform: scaleY(1);
  }
  5% {
    transform: scaleY(1.3);
  }
  15% {
    transform: scaleY(1.3);
  }
  20%,
  100% {
    transform: scaleY(1);
  }
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateX(5px) rotate(-14deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(-14deg);
  }
}

.interactions-float {
  position: fixed;
  right: -150px;
  bottom: 10px;
  z-index: 999999;
  transition: right 0.8s ease;
}

.interactions-float.show {
  right: 0px;
}

#rocket {
  animation: moveUpDownControlled 10s ease-in-out infinite;
}
.rocket-body {
  stroke: var(--xtra-light-gray);
  stroke-width: 5;
  fill: var(--primary-color);
  fill-rule: nonzero;
}

.rocket-line {
  fill: var(--gray);
  stroke: none;
  stroke-width: 2;
  animation: growPath 10s ease-in-out infinite;
  transform-origin: center;
}

.rocket-circle {
  fill: var(--white);
  stroke: var(--primary-color);
  stroke-width: 2;
  animation: draw-circle 5s linear 1, fill 5s linear 1;
}

/*  interactions SVG */
.interactions-svg,
.interactions-svg .intro-text {
  text-align: center;
}

.tooltip-container {
  cursor: pointer;
}

.interactions-svg svg {
  pointer-events: none;
  width: 110px;
  height: 120px;
}

.interactions-svg .tooltip-container {
  transform: rotate(14deg);
  display: inline-block;
  position: relative;
}

.tooltip-text {
  position: absolute;
  bottom: 40%;
  right: 85%;
  visibility: hidden;
  opacity: 0;
  font-size: 11.5px;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 0.5em 1em;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 100;
  text-decoration: none;
  transform: rotate(-14deg);
  border: 0;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 152px;
  border-width: 8px;
  border-style: solid;
  border-color: var(--primary-color) transparent transparent transparent;
  transform: rotate(270deg);
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  animation: fadeSlideUp 1s ease-in-out;
}
.tooltip-text:hover::after {
  border-color: var(--secondry-color) transparent transparent transparent;
}
.tooltip-container .tooltip-text:hover {
  background-color: var(--secondry-color);
  color: var(--white);
}
