/* Back to Top */
.square-button {
   width: 40px; /* Độ rộng */
   height: 40px; /* Chiều cao */
   background-color: black; /* Màu nền đen */
   border: none; /* Xóa viền */
   color: white; /* Màu chữ trắng */
   text-align: center; /* Canh giữa nội dung */
   text-decoration: none; /* Xóa gạch chân khi hover */
   display: flex; /* Hiển thị như khối và canh giữa */
   justify-content: center; /* Canh giữa theo chiều ngang */
   align-items: center; /* Canh giữa theo chiều dọc */
   font-size: 14px; /* Cỡ chữ */
   cursor: pointer; /* Bộ chỉa con trỏ */
   border-radius: 5px; /* Bo tròn 4 cạnh */
   padding-top: 5px /* thay đổi khoảng cách giữa chữ và phần trên của nút */
}

#btn-back-to-top {
position: fixed;
bottom: 20px;
left: 20px;
display: none;
opacity: 0.3; /* Điều chỉnh giá trị opacity từ 0 đến 1, 0 là hoàn toàn trong suốt, 1 là không trong suốt */
}





/* Contact social */
.contact-buttons {
  position: fixed;
  bottom: 10px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact-buttons button {
  margin-bottom: 10px; /* Khoảng cách giữa các nút */
  padding: 10px 20px; /* Kích thước của nút */
  border: none;
  background-color: #007bff; /* Màu nền của nút */
  color: white; /* Màu chữ của nút */
  cursor: pointer;
  position: relative; /* Để định vị bóng mờ tương đối với nút */
  overflow: hidden; /* Ẩn bớt bóng mờ không nằm trong phạm vi của nút */
  animation: ripple-animation 2s infinite; /* Sử dụng animation "ripple-animation" với thời gian 1 giây, lặp vô hạn */
}

@keyframes ripple-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.5); /* Bắt đầu với bóng mờ không */
  }
  100% {
    box-shadow: 0 0 0 20px rgba(0, 123, 255, 0); /* Kết thúc với bóng mờ lớn hơn */
  }
}





/* spinner loading page */
.canhan-loader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7f9fb;
    transition: opacity 0.75s, visibility 0.75s;
}

.canhan-loader-hidden{
    opacity: 0;
    visibility: hidden;
}

.canhan-loader::after{
    content: "";
    width: 75px;
    height: 75px;
    border: 15px solid #dddddd;
    border-top-color: #7449f5;
    border-radius: 50%;
    animation: loading 0.75s ease infinite;
}

@keyframes loading{
    from{
        transform: rotate(0turn);
    }
    to{
        transform: rotate(1turn);
    }
}





/* spinner upload file */
.spinner {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #7449f5;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
