body {

    font-family: "Poppins", sans-serif;
    background: url("./img/background.jpg") no-repeat center center fixed;
    background-size: cover;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    height: 100vh;
    animation: gifMove
}

#container {
    width: 90%;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 20px #000;
    border-radius: 10px;
    overflow: hidden;
}

/* MENU */
#menu {
    background: black;
    padding: 0;
    font-size: 18px;
}

#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

#menu ul li {
    position: relative;
}

#menu ul li a {
    display: block;
    padding: 14px 25px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

#menu ul li a:hover {
    background: white;
    color: #000;
}

/* MENU CON */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    background: rgba(25, 25, 25, 0.97);
    border-radius: 0 0 8px 8px;
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.25s ease-in-out;
}

.submenu li {
    display: block;
    margin: 5px 0;
}

.submenu li a {
    display: block;
    padding: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s;
}

#menu ul li:hover>.submenu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.submenu li a {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu li a:hover {
    background: #ffcc00;
    color: #000;
}

/* ----- Banner chính ----- */
#banner {
    background-image: url("./img/banner.jpg");
    /* nền ảnh */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 350px;

    display: flex;
    justify-content: center;
    align-items: center;

    /* Kiểu chữ nổi bật */
    font-size: 52px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;

    /* Hiệu ứng phát sáng */
    text-shadow:
        0 0 12px #7F00FF,
        /* tím neon */
        0 0 25px #4B0082,
        /* tím chàm sâu */
        0 0 35px #0A0AFF,
        /* xanh lam rực */
        0 0 50px #1E90FF,
        /* xanh thiên hà */
        0 0 80px #8A2BE2,
        /* tím ngân hà */
        0 0 120px #00BFFF;
    /* xanh sao băng */

}

/* --- FORM --- */
.form-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.form-container h2 {
    color: #fff;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-container form {
    display: flex;
    flex-direction: column;
}


.form-group label {
    color: #fff;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    outline: none;
    margin-top: 8px;
    font-size: 16px;
}

.btn {
    background-color: #ffae00;
    border: none;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.btn:hover {
    background-color: #ffd633;
    box-shadow: 0 0 10px #ffea80;
}

.form-note {
    color: #fff;
    margin-top: 15px;
}

.form-note a {
    color: #ffea80;
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

/* CONTENT */
#content {
    font-size: 20px;
    padding: 40px;
    line-height: 1.8;
    text-align: center;
}

input,
select {
    margin: 8px 0;
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

input[type="submit"] {
    background: #ffcc00;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

/* Danh sách cung */
.zodiac-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    line-height: 1.8;
    font-size: 18px;
    color: #fff;
}

/* ========================================================================= */
/* I. PHONG CÁCH CHUNG (COMMON/BASE STYLES)                                 */
/* (Áp dụng cho tất cả các nhóm Lửa, Đất, Nước, Khí)                      */
/* ========================================================================= */

/* 1. LAYOUT CHUNG CHO TẤT CẢ CÁC KHỐI SUB-MENU */
.sub-menu-lua,
.sub-menu-dat,
.sub-menu-nuoc,
.sub-menu-khi {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    text-align: center;
    /* Giữ lại cho các menu hex-btn */
    margin-bottom: 25px;
}

/* 2. STYLE CHUNG CHO CÁC NÚT BẤM CƠ BẢN (sub-menu-X button) */
.sub-menu-lua button,
.sub-menu-dat button,
.sub-menu-nuoc button,
.sub-menu-khi button {
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: bold;
}

/* 3. STYLE HOVER CHUNG CHO CÁC NÚT BẤM CƠ BẢN */
.sub-menu-lua button:hover,
.sub-menu-dat button:hover,
.sub-menu-nuoc button:hover,
.sub-menu-khi button:hover {
    transform: scale(1.05);
}

/* 4. STYLE CHUNG CHO KHỐI THÔNG TIN CHI TIẾT (.zodiac-info) */
/* (Hợp nhất tất cả các định nghĩa bị lặp của .zodiac-info) */
.zodiac-info {
    display: none;
    /* Mặc định ẩn */
    margin-top: 30px;
    /* Chọn giá trị lớn hơn để đồng nhất */
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 15px;
    color: #fff;
}

/* 5. STYLE CHUNG CHO TIÊU ĐỀ TRONG KHỐI THÔNG TIN */
.zodiac-info h2 {
    color: #ffcc70;
}

/* 6. STYLE CHUNG CHO NÚT HÌNH LỤC GIÁC (.hex-btn) */
.hex-btn {
    position: relative;
    display: inline-block;
    padding: 25px 30px;
    margin: 0 15px 15px 15px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
    clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
    transition: all 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.hex-btn:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 7. STYLE CHUNG CHO ẢNH TRONG KHỐI THÔNG TIN (.zodiac-img) */
.zodiac-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* II. PHONG CÁCH RIÊNG THEO NHÓM (UNIQUE STYLES)                            */
/* --- NHÀ LỬA--- */
.sub-menu-lua button {
    background-color: #ff4500;
}

.sub-menu-lua button:hover {
    background-color: #970b00;
}

.sub-menu-lua .hex-btn:nth-child(1) {
    background: linear-gradient(135deg, #ff6a00, #ff3c00);
}

.sub-menu-lua .hex-btn:nth-child(2) {
    background: linear-gradient(135deg, #ff9a3c, #ff6a00);
}

.sub-menu-lua .hex-btn:nth-child(3) {
    background: linear-gradient(135deg, #ffdd00, #ff9900);
}

.zodiac-info[style*="2px solid #ff9a3c"] {
    border-top: 2px solid #ff9a3c;
    padding-top: 20px;
}

/* --- NHÀ ĐẤT --- */
.sub-menu-dat button {
    background-color: #ff8a5c92;
}

.sub-menu-dat button:hover {
    background-color: #764202;
}

.sub-menu-dat .hex-btn:nth-child(1) {
    background: linear-gradient(135deg, #d1beab, #d6b39a);
}

.sub-menu-dat .hex-btn:nth-child(2) {
    background: linear-gradient(135deg, #cdae7d, #bab385);
}

.sub-menu-dat .hex-btn:nth-child(3) {
    background: linear-gradient(135deg, #b5c5ea, #97a2d3);
}

.zodiac-info[style*="2px solid #ff6a00"] {
    border-top: 2px solid #ff6a00;
    padding-top: 20px;
}

/* --- NHÀ NƯỚC --- */
.sub-menu-nuoc button {
    background-color: #1894ed92;
}

.sub-menu-nuoc button:hover {
    background-color: #0533a8;
}

.sub-menu-nuoc .hex-btn:nth-child(1) {
    background: linear-gradient(135deg, #9db4c4, #949094);
}

.sub-menu-nuoc .hex-btn:nth-child(2) {
    background: linear-gradient(135deg, #d2b5d1, #0099ff);
}

.sub-menu-nuoc .hex-btn:nth-child(3) {
    background: linear-gradient(135deg, #ced1a8, #3399ff);
}

.zodiac-info[style*="2px solid #0099ff"] {
    border-top: 2px solid #0099ff;
    padding-top: 20px;
}

/* --- NHÀ KHÍ --- */
.sub-menu-khi button {
    background-color: #aebdca92;
}

.sub-menu-khi button:hover {
    background-color: #6584b2;
}

.sub-menu-khi .hex-btn:nth-child(1) {
    background: linear-gradient(135deg, #ddb0c2, #cfad97);
}

.sub-menu-khi .hex-btn:nth-child(2) {
    background: linear-gradient(135deg, #bd9fb8, #d15486);
}

.sub-menu-khi .hex-btn:nth-child(3) {
    background: linear-gradient(135deg, #afd4ba, #f75a5a);
}

.zodiac-info[style*="2px solid #ff6600"] {
    border-top: 2px solid #ff6600;
    padding-top: 20px;
}

/* PHONG CÁCH CHO ABOUT */

.sub-menu-tong {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.sub-menu-tong button {
    background-color: #f68b07;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.sub-menu-tong button:hover {
    background-color: #ffcc00;
    transform: scale(1.05);
}

.zodiac-info {
    display: none;
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 15px;
    color: #fff;
}

.zodiac-info h2 {
    color: #ffcc70;
}

/* ẢNH CUNG HOÀNG ĐẠO */
.zodiac-img {
    width: 250px;
    height: auto;
    display: block;
    margin: 10px auto 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.zodiac-img:hover {
    transform: scale(1.05);
}

#banner-text {
    display: flex;
    justify-content: center;
    font-size: 60px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    overflow: hidden;
}

#banner-text span {
    display: inline-block;
    transform: translate(calc((random(-500px, 500px))),
            calc((random(-500px, 500px)))) rotate(720deg);
    opacity: 0;
    animation: flyIn 2s forwards;
}

#banner-text span:nth-child(1) {
    animation-delay: 0s;
}

#banner-text span:nth-child(2) {
    animation-delay: 0.1s;
}

#banner-text span:nth-child(3) {
    animation-delay: 0.2s;
}

#banner-text span:nth-child(4) {
    animation-delay: 0.3s;
}

#banner-text span:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes flyIn {
    0% {
        transform: translate(var(--x), var(--y)) rotate(720deg);
        opacity: 0;
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
}

.sub-menu-tong {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    position: relative;
}

.sub-menu-tong button {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    background: radial-gradient(circle at top, rgba(255, 180, 0, 0.9), rgba(255, 120, 0, 0.6));
    color: #fff;
    font-size: 18px;
    font-weight: bold;

    box-shadow: 0 0 20px rgba(255, 150, 0, 0.8),
        0 0 40px rgba(255, 100, 0, 0.7),
        inset 0 0 20px rgba(255, 200, 0, 0.8);

    backdrop-filter: blur(4px);
    transition: 0.35s ease;
}

/* Xếp so le – zigzag */
.sub-menu-tong button:nth-child(1) {
    transform: translateY(-15px);
}

.sub-menu-tong button:nth-child(2) {
    transform: translateY(15px);
}

.sub-menu-tong button:nth-child(3) {
    transform: translateY(-15px);
}

.sub-menu-tong button:nth-child(4) {
    transform: translateY(15px);
}

/* Hover hiệu ứng nổi + sáng mạnh */
.sub-menu-tong button:hover {
    transform: translateY(-5px) scale(1.12);
    box-shadow: 0 0 30px rgba(255, 180, 0, 1),
        0 0 60px rgba(255, 100, 0, 1),
        inset 0 0 25px rgba(255, 230, 150, 1);
}

/* Click */
.sub-menu-tong button:active {
    transform: scale(0.92);
}

/*  */
#tt {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 card mỗi hàng */
    gap: 30px;
    /* Khoảng cách giữa các card */
    max-width: 800px;
    /* Giới hạn khung để canh giữa */
    margin: 0 auto;
    /* Căn giữa toàn bộ */
    padding: 20px;
}

.card {

    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.508);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 2px solid black;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h2 {
    margin: 20px 0;
}

p {
    margin: 10px 0;
}

@media (max-width: 780px) {
    .card {
        width: 100%;
        /* Xuống 1 card mỗi hàng trên mobile */
        max-width: 350px;
    }
}

/* ========================================= */
/* MODAL / POPUP STYLE FOR INFO PAGE */
/* ========================================= */

/* Hiệu ứng cho thẻ thành viên để báo hiệu có thể nhấp */
.member-card {
    cursor: pointer;
    /* Biến con trỏ thành bàn tay */
    transition: transform 0.3s, box-shadow 0.3s;
}

.member-card:hover {
    transform: translateY(-5px);
    /* Nổi lên một chút */
    box-shadow: 0 10px 20px rgba(156, 0, 255, 0.5);
    /* Đổ bóng màu tím */
}

/* Modal Container (Hộp chứa toàn bộ modal) */
.modal {
    display: none;
    /* Ẩn mặc định */
    position: fixed;
    z-index: 1000;
    /* Luôn nằm trên các phần tử khác */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* Màu nền đen mờ */
}

/* Modal Content (Nội dung bên trong modal) */
.modal-content {
    background-color: rgba(30, 30, 50, 0.95);
    /* Nền tối, trong suốt nhẹ */
    color: #f0f0f0;
    margin: 10% auto;
    /* 10% từ trên xuống và căn giữa */
    padding: 30px;
    border: 1px solid #550055;
    width: 80%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(156, 0, 255, 0.9);
    position: relative;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nút đóng */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #ffbaff;
    /* Màu tím sáng khi hover */
    text-decoration: none;
    cursor: pointer;
}

/* Styling nội dung chi tiết */
#modal-body-content h2 {
    color: #ffbaff;
    text-align: center;
    margin-bottom: 20px;
}

#modal-body-content h3 {
    color: #ffd633;
    /* Màu vàng cam cho tiêu đề phụ */
    margin-top: 15px;
    border-bottom: 2px solid #550055;
    padding-bottom: 5px;
}

#modal-body-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Container map */
.map-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 450px;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 56, 0.6);
}

/* iframe map + theme */
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: brightness(1) contrast(-0.5);
}

/* Marker */
.marker {
    position: absolute;
    top: 55%;
    left: 49.7%;
    transform: translate(-50%, -100%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, #ffea80 0%, #ffd633 70%);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    animation: glow 2s infinite alternate;
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd633;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    font-family: 'UTM Hanzel', serif;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Hiệu ứng glow marker */
@keyframes glow {
    0% {
        box-shadow: 0 0 8px #ffea80;
    }

    100% {
        box-shadow: 0 0 20px #ffd633;
    }
}

.title {
    font-size: 32px;
    font-weight: 700;
    margin-top: 10px;
    color: #ffffff;
}

.subtitle {
    font-size: 13px;
    color: #ffffffc1;
    margin-bottom: 25px;
}

.info-box .item {
    display: flex;
    align-items: center;
    border: 2px solid #ffea80;
    border-radius: 40px;
    padding: 10px 15px;
    margin-bottom: 15px;
}

.icon {
    font-size: 20px;
    margin-right: 15px;
}

.footer-link {
    text-align: right;
    font-size: 12px;
    color: #ffd633a4;
    margin-top: 10px;
}

/* --- FOOTER --- */
#footer {
    text-align: center;
    color: white;
    background: #000;
    padding: 15px 0;
    margin-top: 40px;
    font-size: 18px;
}