main {
  position: relative;
}

#back-to-top {
  position: sticky;
  bottom: 1rem;
  margin-bottom: 1rem;
  float: right;
  margin-right: 1.5rem;
  z-index: 100;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background-color: #2980b9; /* Adjust to match your theme */
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.2s ease;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top:hover {
  transform: translateY(-3px);
}
