/*#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #757474;
  color: white;
  border: none;
  border-radius: 20%;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
  transition: opacity 0.3s, visibility 0.3s;
}

#backToTopBtn.show {
  display: block;
}*/

.scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  display: none;
  justify-content: center;
  align-items: center;
  background: #dc3545; /* Semi-transparent background */
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background 0.4s ease;
}

.scrollToTopBtn:hover {
  background: #063970; /* Semi-transparent background on hover */
  transform: rotate(360deg);
}

.scrollToTopBtn.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scrollToTopBtn.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

@keyframes float {
  0% {
      transform: translatey(0px);
  }
  50% {
      transform: translatey(-10px);
  }
  100% {
      transform: translatey(0px);
  }
}

.scrollToTopBtn.show {
  animation: float 2s infinite;
}
