/* ===============================
   1. Biến màu dùng toàn trang (Root)
   =============================== */
   :root {
    --primary-color: #880404;        /* Màu chính (đỏ đậm) */
    --secondary-color: #dd9933;      /* Màu phụ (cam vàng) */
    --dark-color: #1a1a1a;           /* Màu nền tối */
    --darker-color: #111;            /* Màu tối hơn nữa */
    --light-color: #ffffff;          /* Màu trắng */
    --gray-color: #333333;           /* Màu xám đậm */
    --light-gray: #f8f9fa;           /* Màu xám nhạt */
}

/* ===============================
   2. Cài đặt chung cho trang web
   =============================== */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-color); /* nền tối */
    color: var(--light-color);           /* chữ trắng */
}

/* Thanh menu */
.navbar {
    background-color: var(--primary-color);
}

/* Tiêu đề */
.hero-section {
    display: flex;
    align-items: center;
    text-align: center;
}


.section-title {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 700;
}


.footer {
    background-color: var(--gray-color);
    padding: 5px 0;
}

/* Nút button*/
.btn-custom {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 25px;
    padding: 10px 30px;
    transition: background-color 0.3s;
}
.btn-custom:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

/* ===============================
   8. Phần mô tả nội dung
   =============================== */
.description {
    display: block;
    max-width: 1000px;
}

#section_description {
    padding-top: 30px;
    padding-bottom: 30px;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

#main_img {
    width: 100%;
}

/* Responsive ảnh khi màn hình > 550px */
@media (min-width:550px) {
    #main_img {
        width: 85%;
    }
}

/* ===============================
   9. Menu Dropdown (trò chơi)
   =============================== */
.dropdown button {
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.7); /* trắng nhạt */
    margin-top: 1.5px;
}

/* Phần dropdown menu */
.dropdown .dropdown-menu {
    margin-top: 0;
    background: var(--dark-color);
    color: var(--light-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(136, 4, 4, 0.5);
}

/* Hiện menu khi hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Các mục trong dropdown */
.dropdown .dropdown-item {
    display: block;
    margin-top: 0;
    background: var(--dark-color);
    color: var(--light-color);
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-left: 3px solid transparent;
}

/* Hiệu ứng hover của mục dropdown */
.dropdown .dropdown-item:hover {
    background: #8c1414;
    color: var(--light-color);
    border-left: 3px solid #040404;
    transform: translateX(5px);
}

/* Hiệu ứng mũi tên khi hover */
.dropdown-toggle::after {
    transition: transform 0.3s ease;
}
.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Chữ của toggle khi hover */
.dropdown-toggle {
    transition: all 0.3s ease;
}
.dropdown:hover .dropdown-toggle {
    color: var(--secondary-color);
}

/* ===============================
   10. Phần liên hệ
   =============================== */
#lienhe {
    padding: 50px 0;
}
#lienhe h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}
#lienhe p {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* ===============================
   11. Nút Chat (nổi dưới góc)
   =============================== */
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.chat-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.chat-button i {
    font-size: 24px;
    color: var(--light-color);
}

/* ===============================
   12. Hộp thoại chat popup
   =============================== */
.chat-popup {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 250px;
    background-color: var(--dark-color);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header span {
    font-size: 14px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 20px;
    cursor: pointer;
}

.chat-body {
    padding: 10px;
}

/* Mỗi lựa chọn trong hộp thoại */
.chat-option {
    display: flex;
    align-items: center;
    padding: 10px;
    color: var(--light-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.chat-option:hover {
    background-color: var(--gray-color);
    border-radius: 5px;
    color: var(--secondary-color);
}

.chat-option i {
    margin-right: 10px;
    font-size: 20px;
}
/* ===============================
   13. Responsive cho các thiết bị di động
   =============================== */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-section img {
        width: 100%;
        height: auto;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-custom {
        padding: 8px 20px;
    }

    .description {
        font-size: 0.9rem;
    }
}