/* Body styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 2000px; /* Simulate a long page for scrolling */
}

/* Back to Top Button Styles */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20%;
  transform: translateX(-50%);
  padding: 15px 25px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 1000;
  display: none; /* Hidden by default */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon styles */
.back-to-top i {
  margin-right: 10px; /* Space between the icon and the text */
  font-size: 18px;
}

/* Hover effect */
.back-to-top:hover {
  background-color: #0056b3;
  transform: translateX(-50%) scale(1.1);
}

/* Show button when scrolling */
.back-to-top.show {
  display: flex;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .back-to-top {
      padding: 10px 20px;
      font-size: 14px;
  }

  .back-to-top i {
      font-size: 16px; /* Smaller icon on mobile */
  }
}
