.scroll_to_top {
  position: fixed;
  right: 25px;
  bottom: 25px;

  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #000;
  border-radius: 50%;

  background: #000;
  color: #fff;

  cursor: pointer;
  z-index: 9999;

  font-size: 17px;

  opacity: 0;
  animation: scrollTopShow 0.4s ease forwards;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.scroll_to_top:hover {
  background: #fff;
  color: #000;

  transform: translateY(-5px);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.scroll_to_top svg {
  transition: transform 0.3s ease;
}

.scroll_to_top:hover svg {
  transform: translateY(-3px);
}

@keyframes scrollTopShow {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .scroll_to_top {
    right: 15px;
    bottom: 15px;

    width: 44px;
    height: 44px;

    font-size: 15px;
  }
}