/* Buttons */
/* Back to top button */

.backToTopBtn {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 99;
  cursor: pointer;
  border-radius: 5px;
  width: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s;
  padding: 0.30rem;
}

.backToTopBtn:hover,
.backToTopBtn:focus {
  /* Ensure focus state is also styled for accessibility */
  background-color: var(--clr-background);
  transform: translateY(-5px);
  /* Slight movement on hover/focus for feedback */
}


.css-button-sliding-to-top--green {
  cursor: pointer;
  line-height: 1.2;
  letter-spacing: 3px;
  font-family: var(--font-secondary);
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 300;
  white-space: nowrap;
}

.css-button-sliding-to-top--green {
  min-width: 130px;
  height: 40px;
  color: #fff;
  padding: 5px 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  outline: none;
  border-radius: 5px;
  z-index: 0;
  background: orangered;
  overflow: hidden;
  border: 2px solid #57cc99;
  color: whitesmoke;
}

.css-button-sliding-to-top--green:hover {
  color: #fff;
}

.css-button-sliding-to-top--green:hover:after {
  height: 100%;
}

.css-button-sliding-to-top--green:after {
  content: "";
  position: absolute;
  z-index: -1;
  transition: all 0.3s ease;
  left: 0;
  bottom: 0;
  height: 0;
  width: 100%;
  background: #57cc99;
}

