﻿
/* floating */
.floating-buttons .btn {
    border-radius: 50%; /* Bo tròn hoàn toàn để tạo nút hình tròn */
    width: 50px; /* Đặt chiều rộng */
    height: 50px; /* Đặt chiều cao */
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-buttons {
    position: fixed;
    right: 20px;
    top: 70%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1030; /* Đảm bảo hiển thị trên các phần tử khác */
}

.btn-floating {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

    .btn-floating:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    }

.btn img {
    width: 60%;
    height: auto;
}

#backToTop {
    display: none; /* Ẩn nút ban đầu */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background-color: #ff5722; /* Màu cam */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#backToTop:hover {
    background-color: #e64a19; /* Màu cam đậm hơn khi hover */
}




@media (max-width: 576px) {
    .floating-buttons {
        right: 10px;
        bottom: 20px; /* Sử dụng bottom thay vì top */
        transform: none; /* Xóa transform nếu dùng bottom */
    }

        .floating-buttons a {
            width: 45px; /* Giảm kích thước nút */
            height: 45px;
        }
}

@media (max-width: 390px) {
    .floating-buttons {
        right: 10px;
        bottom: 20px; /* Sử dụng bottom thay vì top */
        transform: none; /* Xóa transform nếu dùng bottom */
    }

        .floating-buttons a {
            width: 45px; /* Giảm kích thước nút */
            height: 45px;
        }
}
@media (max-width: 430px) {
    .floating-buttons {
        right: 10px;
        bottom: 20px; /* Sử dụng bottom thay vì top */
        transform: none; /* Xóa transform nếu dùng bottom */
    }

        .floating-buttons a {
            width: 45px; /* Giảm kích thước nút */
            height: 45px;
        }
}
