body {
    margin: 0;
    font-family: Inter, sans-serif;
    transition: background 0.5s, color 0.5s;
    display: flex; /* Sử dụng Flexbox */
    justify-content: center; /* Căn giữa theo chiều dọc */
}

body.light-mode {
    background: white;
    color: black;
}

body.dark-mode {
    background: black;
    color: white;
}


/* CSS được tạo tự động từ style inline */

.spacing {
    width: 1530px;
}
.Header {

    width: 100%;
    height: 128px;
    display: flex; /* Sử dụng Flexbox */
    align-items: center; /* Căn giữa theo chiều ngang */
    overflow: hidden;
}
.Logo {
    background: white;
    color: black;
    width: 211.603px;
    height: 66px;
    margin: 31px;

}
.Menu-item{
    font-size: 24px;
    padding-right: 31px;
    width: 114px;
    height: 29px;
    cursor: pointer;/*bàn tay chỉ*/

}

.Search {

    width: 422px;
    height: 52px;
    display: flex; /* Sử dụng Flexbox */
    align-items: center; /* Căn giữa theo chiều ngang */
    padding-right: 31px;

}
.Dau {
    display: flex; /* Sử dụng Flexbox */
    justify-content: center; /* Căn giữa theo chiều dọc */
    align-items: center; /* Căn giữa theo chiều ngang */
    width: 55px;
    height: 52px;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    border: 1.50px black solid;
    cursor: pointer; /* Biến con trỏ thành bàn tay khi hover */
    transition: transform 0.2s ease; /* Hiệu ứng nhấn mượt mà */
}
.Dau:hover {
    opacity: 0.8; /* Làm mờ nhẹ khi hover */
}

.Dau:active {
    transform: scale(0.95); /* Hiệu ứng nhấn nhỏ lại */
}

.search_icon {
    width: 24.68px;
    height: 24px;

    overflow: hidden;
}
.Khung_search {
    background: white;
    color: black;
    display: flex; /* Sử dụng Flexbox */
    align-items: center; /* Căn giữa theo chiều ngang */
    width: 422px;
    height: 52px;
    border-radius: 50px;
    border: 1.50px black solid;
}
.Ten_the_loai{
    width: 297px;
    height: 47px;
    

    justify-content: center;
    display: flex;
    flex-direction: column;
    font-size: 20px;
    font-family: Inter;
    font-weight: 400;
    word-wrap: break-word;
}
.Mic {
    width: 55px;
    height: 55px;
    display: flex; /* Sử dụng Flexbox */
    justify-content: center; /* Căn giữa theo chiều dọc */
    align-items: center; /* Căn giữa theo chiều ngang */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.Mic:hover {
    opacity: 0.8;
}

.Mic:active {
    transform: scale(0.95);
}
#micButton{
    cursor: pointer;/*bàn tay chỉ*/
}
.Ngon_ngu {
    width: 60px;
    height: 40px;
    display: flex; /* Sử dụng Flexbox */
    justify-content: center; /* Căn giữa theo chiều dọc */
    align-items: center; /* Căn giữa theo chiều ngang */
    overflow: hidden;
    padding-right: 31px;
}
.Khung_sun_moon {
    background: white;
    color: black;
    width: 139px;
    height: 52px;
    display: flex; /* Sử dụng Flexbox */
    align-items: center; /* Căn giữa theo chiều ngang */
    border-radius: 50px;
    border: 1.50px black solid;
    margin-right: 31px;
}
.Dau_sun_moon {
    
    display: flex; /* Sử dụng Flexbox */
    justify-content: center; /* Căn giữa theo chiều dọc */
    align-items: center; /* Căn giữa theo chiều ngang */
    width: 52px;
    height: 52px;
}
.Text_sang{
    width: 87px;
    height: 52px;
    display: flex; /* Sử dụng Flexbox */
    justify-content: center; /* Căn giữa theo chiều dọc */
    align-items: center; /* Căn giữa theo chiều ngang */
    font-size: 20px;
    font-family: Inter;
    font-weight: 400;
    word-wrap: break-word;
}
.Dang_nhap {
    display: flex;
    width: 110px;
    height: 38px;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    font-size: 20px;
    font-family: Inter;
    font-weight: 400;
    word-wrap: break-word;
    padding-right: 31px;
    cursor: pointer;/*bàn tay chỉ*/
}
.Dang_ki {
    width: 82px;
    height: 38px;
    opacity: 0.70;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    font-size: 20px;
    font-family: Inter;
    font-weight: 400;
    word-wrap: break-word;
    cursor: pointer;/*bàn tay chỉ*/
}
#ContentTrangChu{
    display: flex; /* Sử dụng Flexbox */

    align-items: center; /* Căn giữa theo chiều ngang */
}
#line {
    margin-left: 38px; /* Loại bỏ khoảng cách bên trái */
    height: 3px; /* Độ dày của đường kẻ ngang */
    background-color: black; /* Màu sắc của đường kẻ */
    border: none; /* Loại bỏ viền mặc định */
}
#line_01{
    height: 3px;
    width: 240px;
    text-align: left; /* Căn chỉnh về phía trái, nếu cần */
    margin-left: 38px; /* Loại bỏ khoảng cách bên trái */
    background-color: black; /* Màu sắc của đường kẻ */
}

.Banner {
    display: flex; /* Sử dụng Flexbox */
    justify-content: center; /* Căn giữa theo chiều dọc */
    align-items: center; /* Căn giữa theo chiều ngang */
    width: 100%;
    height: 566px;
    background: linear-gradient(167deg, rgba(244, 164, 92, 0.65) 0%, rgba(142, 95.44, 53.54, 0.45) 100%);
    overflow: hidden;
}
.banner-slide {
    display: flex; /* Sử dụng Flexbox */
    justify-content: center; /* Căn giữa theo chiều dọc */
    align-items: center; /* Căn giữa theo chiều ngang */
    width: 100%;
    height: 566px;
    background: linear-gradient(167deg, rgba(244, 164, 92, 0.65) 0%, rgba(142, 95.44, 53.54, 0.45) 100%);
    overflow: hidden;
}
.Noi_dung_Banner{
    position: relative;
    display: flex;
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
    flex-direction: column; /* Xếp các phần tử theo chiều dọc */
    height: 100%;
    overflow: hidden;
    margin: 133px;
}
.Image4 {
    position: absolute;
    object-fit: cover;
    width: 518px;
    height: 777px;
    border-radius: 15px;
    opacity: 0.05;

}
.Image3 {
    width: 240px;
    height: 360px;
    border-radius: 15px;
}
.Tieu_de{
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
    width: 617px;
    height: 84px;
    overflow: hidden;

}
.Tua_bai{
    width: 284px;
    height: 84px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    font-size: 32px;
    font-family: Inter;
    font-weight: 600;
    word-wrap: break-word;
}
.Xem_them {
    width: 101px;
    height: 23px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    color: #3149DB;
    font-size: 15px;
    font-family: Inter;
    font-weight: 600;
    word-wrap: break-word;
    align-items: flex-end; /* Chỉnh sang bên phải */
    margin-left: auto; /* Đẩy phần tử sang bên phải nếu trong một container */
    cursor: pointer;/*bàn tay chỉ*/
}
.Noi_dung_gioi_thieu_sach{
    width: 617px;
    height: 200px;
    text-align: justify;
    justify-content: center;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    font-family: Inter;
    font-weight: 600;
    line-height: 25px;
    word-wrap: break-word;
}
.Tac_gia{
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
    width: 617px;
    height: 79px;
    overflow: hidden;
}
.Avartar_tac_gia{
    width: 65px;
    height: 65px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    padding: 8px;

}
.Ho_ten_tac_gia {
    width: 182px;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    font-family: Inter;
    font-weight: 600;
    word-wrap: break-word;
}

.Noi_sinh{
    width: 99px;
    display: flex;
    flex-direction: column;
    color: rgba(0, 0, 0, 0.30);
    font-size: 15px;
    font-family: Inter;
    font-weight: 600;
    word-wrap: break-word;
}
.banner-container {
    position: relative;
    width: 1530px;
    height: 566px;
    margin: 0 auto;
    overflow: hidden;
}

.banner-slider {
    display: flex;
    width: 6120px; /* 1530px * 4 banners */
    transition: transform 0.5s ease;
}




.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background-color: white;
}

.Sach_doc_nhieu_nhat {
    width: 100%;
 

    overflow: hidden;
}
.Tieu_de_main{
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
    width: 100%;
    height: 80px;
    overflow: hidden;
    padding-left: 38px;
    padding-top: 41px;
    

}
.Xem_them_main {
    width: 151px;
    height: 58px;

    justify-content: center;
    display: flex;
    flex-direction: column;
    color: #3149DB;
    font-size: 24px;
    font-family: Inter;
    font-weight: 600;
    word-wrap: break-word;
    align-items: flex-end; /* Chỉnh sang bên phải */
    margin-left: auto; /* Đẩy phần tử sang bên phải nếu trong một container */
    padding-right: 130px;
}
.Tua_bai_main {
    width: 482px;
    height: 66px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    font-size: 36px;
    font-family: Inter;
    font-weight: 600;
    word-wrap: break-word;
}
.Line {
    left: 23px;
    top: 98px;
}
.Khung_chua{
    display: flex;
    flex-wrap: wrap; /* Cho phép xuống hàng khi không đủ không gian */
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
    padding-right: 84px;
    padding-left: 84px;
}
.Sach {
    justify-content: center;
    display: flex;
    flex-direction: column;
    width: 213.33px;
    height: 532px;
    padding: 10px;

}
.Image21 {
    width: 213.33px;
    height: 320px;
    border-radius: 15px;
}

.Tua_sach{
    width: 206px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    font-size: 24px;
    font-family: Inter;
    font-weight: 600;
    word-wrap: break-word;
    padding-top: 18px;
}
.Star{
    width: 24px;
    height: 24px;
    overflow: hidden;
}
.dem_sao{
    display: flex; /* Sử dụng Flexbox */
    align-items: center; 
    padding-top: 8px;
}
.ten_tg {
    justify-content: center;
    display: flex;
    flex-direction: column;
    font-size: 20px;
    font-family: Inter;
    font-weight: 600;
    word-wrap: break-word;
    opacity: 0.2;
    padding-top: 8px;
}
.Footer{
    display: flex;
    padding: 42px;
    width: 100%;
    height: 374px;
    background: linear-gradient(130deg, #DFEFED 0%, rgba(219.68, 230.01, 241.22, 0.80) 30%, rgba(214.98, 203.60, 246.29, 0.30) 100%);
}
.Logo_Footer {
    width: 211.60px;
    height: 66px;
    padding-right: 95px;
}
.Information{
    display: flex;
    padding-right: 95px;
    flex-direction: column;
}
.AboutUs {
    display: flex;
    flex-direction: column;
    font-size: 24px;
    font-family: Inter;
    font-weight: 700;
    word-wrap: break-word;
    text-decoration: underline;
}
.Noi_dung_Footer {
    width: 379px;
    text-align: justify;
    display: flex;
    flex-direction: column;
    
    font-size: 16px;
    font-family: Inter;
    font-weight: 400;
    line-height: 25px;
    word-wrap: break-word;
    padding-top: 18px;
    padding-bottom: 18px;
}
.Group24 {
    display: flex;
    height: 42px;
    margin-top: 27px;
}

.Rectangle6{
    display: flex;
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
    width: 118px;
    height: 42px;
    background: linear-gradient(116deg, #3D5A98 0%, #E1EBFF 100%);
    border-radius: 10px;
    margin-right: 24px;
    
}
.Rectangle7{
    display: flex;
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
    width: 118px;
    height: 42px;
    background: linear-gradient(131deg, rgba(234, 26, 23, 0.30) 0%, rgba(0, 133, 254, 0.30) 42%, rgba(255, 190, 0, 0.30) 73%, rgba(0, 169, 72, 0.30) 100%);
    border-radius: 10px;
}

.image_logo{
    width: 30px;
    height: 30px;
}
.Facebook{
    width: 72px;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    font-family: Inter;
    font-weight: 600;
    word-wrap: break-word;
}
.Email {
    width: 40px;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    font-family: Inter;
    font-weight: 600;
    word-wrap: break-word;
}

.Pages{
    display: flex;
    flex-direction: column;
    font-size: 24px;
    font-family: Inter;
    font-weight: 700;
    word-wrap: break-word;
    padding-right: 95px;
}
.TrangChu{
    justify-content: center;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    font-family: Inter;
    font-weight: 400;
    word-wrap: break-word;
    padding-bottom: 16px;
}
.Noi_dung_The_loai{
    display: flex;
    width: 1206px;
    flex-wrap: wrap; /* Cho phép xuống hàng khi không đủ không gian */
    margin: auto;
    margin-top: 83px;
    
}
.Rectangle72{
    height: 46px; 
    background: #D9D9D9; 
    border-radius: 10px;
    display: flex;
    padding-right: 30px;
    padding-left: 30px;
    padding-top: 11px;
    padding-bottom: 11px;
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
    margin: 5px;
}
.Page{
    width: 460px; 
    height: 40px; 
    border-radius: 5px;
    margin: auto;
    margin-top: 58px;
    margin-bottom: 277px;
}
/* Style for the chatbox */
/* Nút chat chính sử dụng hình ảnh tùy chỉnh */
.chat-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
    margin: 0;
    transition: transform 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.05);
}

.chat-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Chatbox container */
.chat-container {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
    font-family: 'Roboto', Arial, sans-serif;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.chat-header {
    background: #4285F4;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-size: 16px;
    font-weight: 500;
}

.chat-close {
    cursor: pointer;
    font-size: 20px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.chat-close:hover {
    opacity: 1;
}

/* Nội dung chat */
.chat-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f5f5f5;
}

/* Tin nhắn */
.message {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 80%;
    position: relative;
    animation: messageFadeIn 0.3s ease-out;
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    background: #4285F4;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.bot-message {
    background: white;
    color: #333;
    margin-right: auto;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

/* Phần nhập liệu */
.chat-input-container {
    padding: 12px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
}

.chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}

.chat-input:focus {
    border-color: #4285F4;
}

.chat-send {
    margin-left: 10px;
    padding: 10px 16px;
    background: #4285F4;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.chat-send:hover {
    background: #3367D6;
}

/* Hiệu ứng đang nhập */
.typing-indicator {
    display: inline-block;
}

.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    margin-right: 4px;
    animation: typingAnimation 1.4s infinite both;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
    margin-right: 0;
}

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}