#scroll-to-top {
  text-align: center;
  color: white;
  background-color: var(--gray-dark);
  border-radius: 8px;
  position: fixed;
  opacity: 0.50;
  bottom: 1.3em;
  right: 1.3em;
  box-shadow: 0px 0px 15px -3px rgba(0,0,0,1);
  -webkit-box-shadow: 0px 0px 15px -3px rgba(0,0,0,1);
  -moz-box-shadow: 0px 0px 15px -3px rgba(0,0,0,1);
  z-index: 5;
  transform: rotate(-5deg);
  transition: 0.6s;
}

#scroll-to-top a {
  color: var(--white);
  display: block;
  vertical-align: middle;
}

#scroll-to-top a i {
  display: block;
  padding: 6px;
  font-size: 36px;
}

#scroll-to-top:hover, #scroll-to-top:focus {
  border-radius: 0px;
  opacity: 1.00;
  transform: rotate(0deg);
  transition: 0.6s;
}

#scroll-to-top a:hover, #scroll-to-top a:focus {
  text-decoration: none;
}

/* hide when off-canvas sidebar is open (i.e. layout builder) */
.js-off-canvas-dialog-open #scroll-to-top {
  display:none;
}
