html {
  scroll-behavior: smooth;
}

#scroll-to-top {
  background-color: rgba(19,20,25,0.6);
  width: 40px;
  height: 40px;
  position: fixed;
  bottom: 12px;
  right: 40px;
  border-radius: 13px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  text-align: center;
  transition: opacity 0.5s ease, transform 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

/* Class added by JavaScript when scrolling down */

#scroll-to-top.show {
  opacity: 0.5;
  pointer-events: auto;
}

#scroll-to-top i {
  color: var(--accent-2);
  font-size: 34px;
  line-height: 37px;
}

#scroll-to-top:hover {
  opacity: 1 !important;
  transform: scale(1.1);
}

