:root {
  --rv-floating-ball-size: calc(48 * 2px);
  --rv-floating-ball-z-index: 8;
}

.rv-floating-ball {
  user-select: none;
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: var(--rv-floating-ball-z-index);
}

.rv-floating-ball__base {
  cursor: pointer;
  position: relative;
  width: var(--rv-floating-ball-size);
  height: var(--rv-floating-ball-size);
}

.rv-floating-ball__menu {
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.rv-floating-ball__menu__item {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(0);
  transition: all 0.4s ease;
}

.rv-floating-ball__menu__item:nth-child(1) {
  transition-delay: 0s;
}

.rv-floating-ball__menu__item:nth-child(2) {
  transition-delay: 0.05s;
}

.rv-floating-ball__menu__item:nth-child(3) {
  transition-delay: 0.1s;
}

.rv-floating-ball__menu__item:nth-child(4) {
  transition-delay: 0.15s;
}

.rv-floating-ball__menu__item:nth-child(5) {
  transition-delay: 0.2s;
}

.rv-floating-ball--active .rv-floating-ball__menu {
  opacity: 1;
  visibility: visible;
}

.rv-floating-ball--active .rv-floating-ball__menu__item:nth-child(1) {
  transform: translateY(-150%);
}

.rv-floating-ball--active .rv-floating-ball__menu__item:nth-child(2) {
  transform: translate(-110%, -110%);
}

.rv-floating-ball--active .rv-floating-ball__menu__item:nth-child(3) {
  transform: translateX(-150%);
}

.rv-floating-ball--active .rv-floating-ball__menu__item:nth-child(4) {
  transform: translate(-110%, 110%);
}

.rv-floating-ball--active .rv-floating-ball__menu__item:nth-child(5) {
  transform: translateY(150%);
}

.rv-floating-ball--active .rv-floating-ball__menu--left .rv-floating-ball__menu__item:nth-child(2) {
  transform: translate(110%, -110%);
}

.rv-floating-ball--active .rv-floating-ball__menu--left .rv-floating-ball__menu__item:nth-child(3) {
  transform: translateX(150%);
}

.rv-floating-ball--active .rv-floating-ball__menu--left .rv-floating-ball__menu__item:nth-child(4) {
  transform: translate(110%, 110%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical .rv-floating-ball__menu__item:nth-child(1) {
  transform: translateY(-600%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical .rv-floating-ball__menu__item:nth-child(2) {
  transform: translateY(-480%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical .rv-floating-ball__menu__item:nth-child(3) {
  transform: translateY(-360%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical .rv-floating-ball__menu__item:nth-child(4) {
  transform: translateY(-240%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical .rv-floating-ball__menu__item:nth-child(5) {
  transform: translateY(-120%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical.list-1 .rv-floating-ball__menu__item:nth-child(1) {
  transform: translateY(-120%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical.list-2 .rv-floating-ball__menu__item:nth-child(1) {
  transform: translateY(-240%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical.list-2 .rv-floating-ball__menu__item:nth-child(2) {
  transform: translateY(-120%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical.list-3 .rv-floating-ball__menu__item:nth-child(1) {
  transform: translateY(-360%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical.list-3 .rv-floating-ball__menu__item:nth-child(2) {
  transform: translateY(-240%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical.list-3 .rv-floating-ball__menu__item:nth-child(3) {
  transform: translateY(-120%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical.list-4 .rv-floating-ball__menu__item:nth-child(1) {
  transform: translateY(-480%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical.list-4 .rv-floating-ball__menu__item:nth-child(2) {
  transform: translateY(-360%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical.list-4 .rv-floating-ball__menu__item:nth-child(3) {
  transform: translateY(-240%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical.list-4 .rv-floating-ball__menu__item:nth-child(4) {
  transform: translateY(-120%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical.rv-floating-ball__menu--top .rv-floating-ball__menu__item:nth-child(1) {
  transform: translateY(120%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical.rv-floating-ball__menu--top .rv-floating-ball__menu__item:nth-child(2) {
  transform: translateY(240%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical.rv-floating-ball__menu--top .rv-floating-ball__menu__item:nth-child(3) {
  transform: translateY(360%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical.rv-floating-ball__menu--top .rv-floating-ball__menu__item:nth-child(4) {
  transform: translateY(480%);
}

.rv-floating-ball--active .rv-floating-ball__menu--vertical.rv-floating-ball__menu--top .rv-floating-ball__menu__item:nth-child(5) {
  transform: translateY(600%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal .rv-floating-ball__menu__item:nth-child(1) {
  transform: translateX(-600%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal .rv-floating-ball__menu__item:nth-child(2) {
  transform: translateX(-480%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal .rv-floating-ball__menu__item:nth-child(3) {
  transform: translateX(-360%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal .rv-floating-ball__menu__item:nth-child(4) {
  transform: translateX(-240%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal .rv-floating-ball__menu__item:nth-child(5) {
  transform: translateX(-120%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal.list-1 .rv-floating-ball__menu__item:nth-child(1) {
  transform: translateX(-120%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal.list-2 .rv-floating-ball__menu__item:nth-child(1) {
  transform: translateX(-240%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal.list-2 .rv-floating-ball__menu__item:nth-child(2) {
  transform: translateX(-120%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal.list-3 .rv-floating-ball__menu__item:nth-child(1) {
  transform: translateX(-360%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal.list-3 .rv-floating-ball__menu__item:nth-child(2) {
  transform: translateX(-240%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal.list-3 .rv-floating-ball__menu__item:nth-child(3) {
  transform: translateX(-120%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal.list-4 .rv-floating-ball__menu__item:nth-child(1) {
  transform: translateX(-480%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal.list-4 .rv-floating-ball__menu__item:nth-child(2) {
  transform: translateX(-360%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal.list-4 .rv-floating-ball__menu__item:nth-child(3) {
  transform: translateX(-240%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal.list-4 .rv-floating-ball__menu__item:nth-child(4) {
  transform: translateX(-120%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal.rv-floating-ball__menu--left .rv-floating-ball__menu__item:nth-child(1) {
  transform: translateX(120%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal.rv-floating-ball__menu--left .rv-floating-ball__menu__item:nth-child(2) {
  transform: translateX(240%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal.rv-floating-ball__menu--left .rv-floating-ball__menu__item:nth-child(3) {
  transform: translateX(360%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal.rv-floating-ball__menu--left .rv-floating-ball__menu__item:nth-child(4) {
  transform: translateX(480%);
}

.rv-floating-ball--active .rv-floating-ball__menu--horizontal.rv-floating-ball__menu--left .rv-floating-ball__menu__item:nth-child(5) {
  transform: translateX(600%);
}