html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-size: 16px; /* Thiết lập kích thước font mặc định bằng rem */
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Ensure the video stays in the background */
}

#background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/pictures/backgroud.jpg'); /* Đường dẫn đến hình nền của bạn */
    background-size: cover; /* Đảm bảo hình ảnh bao phủ toàn bộ màn hình */
    background-position: center; /* Đảm bảo hình ảnh luôn ở giữa */
    background-repeat: no-repeat; /* Không lặp lại hình ảnh */
    z-index: -1; /* Đảm bảo hình nền nằm ở nền */
}

.center-logo {
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Đảm bảo logo nằm trên video */
    max-width: 30%;
    max-height: 30%;
    width: auto;
    height: auto;
}


.menu {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2; /* Đảm bảo menu nằm trên video */
}

.menu-icon {
    font-size: 1.3rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.menu-content {
    display: none;
}

.menu-content a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

/* .menu-content a:hover {
    background: rgba(255, 255, 255, 0.2);
} */

.menu:hover .menu-content {
    display: block;
}

/* CSS cho các biểu tượng mạng xã hội */
.social-media {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; /* Đảm bảo biểu tượng nằm trên video */
    padding: 0.5rem;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    margin: 0 2rem;
    text-decoration: none;
}

.social-icon:hover {
    color: #ddd; /* Màu sắc khi hover */
}

.menu-word {
    color: white;
    font-size: 1.1rem;
    margin-top: 2.3rem;
    margin-left: 4.0rem;
}

.copyright{
    color: white;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; /* Đảm bảo biểu tượng nằm trên video */
    padding: 0.5rem;
}
/* Media query cho thiết bị nhỏ hơn */
@media (max-width: 700px) {
    .social-media {
        position: absolute;
        bottom: 3rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2; /* Đảm bảo biểu tượng nằm trên video */
        padding: 0.5rem;
    }

    .menu-icon {
        font-size: 1.0rem;
        color: white;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 0.5rem;
    }

    .menu-word {
        color: white;
        font-size: 1.0rem;
        margin-top: 2.13rem;
        margin-left: 3.5rem;
    }

    .center-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1; /* Đảm bảo logo nằm trên video */
        max-width: 50%;
        max-height: 50%;
        width: auto;
        height: auto;
    }

    .social-icon {
        font-size: 1.5rem; /* Giảm kích thước font cho màn hình nhỏ */
        margin: 0 0.5rem; /* Giảm khoảng cách giữa các biểu tượng */
    }

    .menu-content a {
        display: block;
        color: white;
        text-decoration: none;
        padding: 0.5rem 0;
        font-size: 1.0rem;
        margin-left: 0.5rem;
    }
    .copyright{
        color: white;
        position: absolute;
        bottom: 1rem;
        left: 50%;
        font-size: 0.5rem;
        transform: translateX(-50%);
        z-index: 2; /* Đảm bảo biểu tượng nằm trên video */
        padding: 0.5rem;
        white-space: nowrap;
    }
}
