/* Import font chữ mạnh mẽ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto+Condensed:wght@400;700&display=swap');

/* Reset một số thuộc tính cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, footer {
    font-family: 'Roboto Condensed', Arial, sans-serif;
}

body {
    background-color: #001B00; /* Xanh lá đậm */
    color: #ADFF2F; /* Vàng xanh để nổi bật trên nền đen */
    transition: background-color 0.3s, color 0.3s;
}

/* Header */
header {
    background-color: #013220; /* Xanh lá cây đậm */
    color: #32CD32; /* Xanh lá */
    padding: 20px 0;
    text-align: center;
    border-bottom: 3px solid #228B22; /* Xanh lá cây đậm */
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin: 0;
    color: #32CD32; /* Xanh lá */
    text-shadow: 0 0 10px #32CD32, 0 0 20px #ADFF2F; /* Ánh sáng xanh lá */
}

/* Navbar */
.navbar {
    margin-bottom: 20px;
    background-color: #013220 !important; /* Xanh lá cây đậm */
    border-bottom: 3px solid #228B22; /* Xanh lá cây đậm */
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #32CD32 !important; /* Xanh lá */
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #228B22; /* Xanh lá cây đậm */
    left: 0;
    bottom: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    color: #228B22 !important; /* Xanh lá cây đậm */
    text-shadow: 0 0 5px #228B22;
}

.navbar-brand:hover::after {
    transform: scaleX(1);
}

.nav-link {
    font-size: 1.1rem;
    color: #32CD32 !important; /* Xanh lá */
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #228B22; /* Xanh lá cây đậm */
    left: 0;
    bottom: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #228B22 !important; /* Xanh lá cây đậm */
    text-shadow: 0 0 5px #228B22;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Breadcrumb */
.breadcrumb, footer {
    background-color: #013220; /* Xanh lá cây đậm */
    border-radius: 5px;
}

.breadcrumb-item a, .breadcrumb-item.active, .card, footer {
    color: #ADFF2F; /* Vàng xanh */
}

.breadcrumb-item a {
    color: #32CD32; /* Xanh lá */
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #228B22; /* Xanh lá cây đậm */
}

.breadcrumb-item.active {
    color: #32CD32; /* Xanh lá */
}

/* Cards */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #013220; /* Xanh lá cây đậm */
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.5); /* Ánh sáng xanh lá đậm */
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.7); /* Ánh sáng xanh lá đậm hơn */
    transform: translateY(-5px);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #32CD32; /* Xanh lá */
    text-shadow: 0 0 5px #32CD32;
}

.card-text {
    font-size: 0.95rem;
    flex-grow: 1;
    color: #98FB98; /* Xanh nhạt */
}

.card-img-container {
    overflow: hidden;
    position: relative;
}

.card-img-top {
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s, z-index 0.3s;
    width: 100%;
    position: relative;
    z-index: 1;
}

.card-img-top:hover {
    transform: scale(1.1);
    z-index: 2;
}

/* Buttons */
.btn-primary {
    background-color: #32CD32; /* Xanh lá */
    color: #000;
    border: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    align-self: flex-start;
}

.btn-primary:hover, .navbar-toggler:hover {
    background-color: #228B22; /* Xanh lá cây đậm */
    box-shadow: 0 0 10px #228B22;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #ADFF2F; /* Vàng xanh */
    border-top: 3px solid #228B22; /* Xanh lá cây đậm */
}

.footer-links h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #32CD32; /* Xanh lá */
    text-shadow: 0 0 5px #32CD32;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.footer-links ul li {
    display: inline-block;
}

.footer-links ul li a {
    text-decoration: none;
    color: #013220; /* Màu nền đậm */
    background-color: #32CD32; /* Xanh lá */
    border: 1px solid transparent;
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.3s;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.footer-links ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #228B22; /* Xanh lá cây đậm */
    left: 0;
    bottom: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.footer-links ul li a:hover {
    background-color: #013220; /* Màu nền đậm */
    color: #32CD32; /* Xanh lá */
    border-color: #32CD32; /* Xanh lá */
}

.footer-links ul li a:hover::after {
    transform: scaleX(1);
}

/* Button Change Movie */
.button-change-movie ul li a, .navbar-toggler {
    background-color: #32CD32; /* Xanh lá */
    color: #000;
    border-color: #228B22; /* Xanh lá cây đậm */
    transition: background-color 0.3s, border-color 0.3s;
}

.button-change-movie ul li a:hover {
    background-color: #228B22; /* Xanh lá cây đậm */
    border-color: #006400; /* Xanh lá sậm hơn */
}

/* Autocomplete */
.autocomplete-items {
    position: absolute;
    border: 1px solid #32CD32; /* Xanh lá */
    border-top: none;
    z-index: 999;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #013220; /* Xanh lá cây đậm */
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #ADFF2F; /* Vàng xanh */
}

.autocomplete-items div:hover {
    background-color: #32CD32; /* Xanh lá */
    color: #000;
}

.autocomplete-items img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    margin-right: 10px;
}

.autocomplete-active {
    background-color: #32CD32 !important; /* Xanh lá */
    color: #000;
}

/* Chatbox */
#chatbox-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #32CD32; /* Xanh lá */
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2002; /* Đảm bảo toggle luôn trên cùng */
    box-shadow: 0px 4px 6px rgba(34, 139, 34, 0.3); /* Ánh sáng xanh lá đậm */
    transition: background-color 0.3s, box-shadow 0.3s;
}

#chatbox-toggle:hover {
    background-color: #228B22; /* Xanh lá cây đậm */
    box-shadow: 0px 6px 8px rgba(34, 139, 34, 0.5);
}

#chatbox-container {
    position: fixed;
    top: 80px; /* Đặt phía dưới biểu tượng toggle */
    right: 20px;
    width: 400px;
    max-width: 90%;
    z-index: 2000; /* Tăng z-index để đảm bảo chatbox luôn trên cùng */
    display: none; /* Ẩn chatbox container mặc định */
    flex-direction: column;
    align-items: flex-end;
    background-color: #013220; /* Nền phù hợp với giao diện xanh lá */
    border: 2px solid #228B22; /* Đường viền nổi bật */
    border-radius: 10px;
    overflow: hidden; /* Tránh nội dung tràn ra ngoài */
}

#chatbox-container.active {
    display: flex; /* Hiển thị khi có class active */
}

#chatbox-frame {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 0 0 10px 10px; /* Bo tròn góc dưới */
    box-shadow: 0px 4px 12px rgba(34, 139, 34, 0.5); /* Ánh sáng xanh lá đậm */
    transition: opacity 0.3s ease;
    background-color: #013220; /* Nền iframe phù hợp */
    color: #ADFF2F; /* Vàng xanh để dễ đọc */
}

/* Nút đóng iframe */
#chatbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: #228B22; /* Xanh lá cây đậm */
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    display: none; /* Ẩn nút đóng mặc định */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2001; /* Đảm bảo nút đóng luôn trên cùng */
    transition: background-color 0.3s ease;
}

#chatbox-container.active #chatbox-close {
    display: flex; /* Hiển thị nút đóng khi chatbox active */
}

#chatbox-close:hover {
    background-color: #006400; /* Xanh lá sậm hơn */
}

/* Hiệu ứng glow cho các phần tử chính */
header, .navbar, .card-title, .footer-links h3 {
    text-shadow: 0 0 10px #32CD32, 0 0 20px #ADFF2F;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .nav-link {
        font-size: 1rem;
    }

    .card-img-top {
        height: 250px;
    }

    #chatbox-frame {
        height: 400px;
    }

    .footer-links ul {
        gap: 8px;
    }

    .footer-links ul li a {
        font-size: 12px;
        padding: 4px 8px;
    }
}

@media (max-width: 500px) {
    #chatbox-container {
        width: 95%;
        right: 2.5%;
        left: 2.5%;
        top: 80px;
        align-items: center;
    }

    #chatbox-frame {
        height: 400px;
    }
}
#load-more{
    width: 100%;
}