#toTop {
  position: fixed;
  right: 25px;
  bottom: 25px;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  transition: all 0.35s ease;
  transform: scale(0.7);
  width: 46px;
  height: 46px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: pulseColor 2.5s infinite ease-in-out;
}

#toTop svg {
  pointer-events: none;
}

#toTop:hover {
  background-color: #004dda;
  animation: none;
}

#toTop.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

@keyframes pulseColor {
  0% { background-color: rgba(0,0,0,0.6); }
  50% { background-color: #004dda; }
  100% { background-color: rgba(0,0,0,0.6); }
}