﻿html, body {
    height:100%;
    margin: 0;
    display: flex;
    flex-direction: column; /* Sắp xếp các phần tử con theo cột */
}

body {
    margin-bottom: 10px;
    background-image: url('../img/TDBVN.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 90%; /* Chiều rộng 100% */
    overflow-x: hidden;
    margin: auto;
    height:100%;
}


.footer {
    background: linear-gradient(to right, #0074be, #7ac3f2);
    color: white;
    padding-bottom:0px;
    margin-bottom:0px;
    position:absolute;
    bottom:0px;
    width:90%;
}
    .footer p {
        margin-top: 10px;
        margin-bottom: 10px;
        text-align: left;
        font-size: 18px;
        margin-left: 40px;
    }


.container {
    flex-grow: 1;
    height: calc(100vh - 150px); /* 100vh là chiều cao của màn hình, trừ đi 100px cho banner và 50px cho footer */
    overflow-y: auto;
}

.banner {
    width: 100%;
}

#banner {
    color: white;
    text-align: center;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url('../img/Banner.jpg');
}

.logo {
    width: 5%;
    text-align: center;
    padding:1vh;
}

.logo-image {
    width: 8vh;
    height: auto;
    text-align: center;
}
.lichct {
    font-size: 7vh;
    text-transform: uppercase;
    font-family: 'Georgia';
    font-weight: bolder;
    background-image: linear-gradient(to bottom, #125e8e, #0026ff); /* Dải màu gradient */
    -webkit-background-clip: text; /* Chỉ clip nền vào chữ */
    color: transparent; /* Làm cho chữ trong suốt để thấy nền gradient */
    text-align: center;
    vertical-align:middle;
}

@media (max-width: 768px) {
    .banner {
        width: 100%;
    }
    .logo {
        width: 30%;
        padding-left: 0px;
        margin-left:0px;
    }

    .lichct {
        font-size: 4vw; /* Co chữ lớn hơn khi màn hình nhỏ hơn */
    }

    /* Cho kích thước logo nhỏ hơn khi màn hình nhỏ */
    .logo-image {
        width: 8vw;
        padding-left: 0px;
        margin-left: 0px;
    }

    #clock {
        font-size: 4vw; 
    }
}

#clock {
    font-size: 2vw;
    font-weight: bold;
    background-image: linear-gradient(to bottom, #ff0101, #e94242, #4abbbb, #0000FF); /* Dải màu gradient */
    -webkit-background-clip: text; /* Chỉ clip nền vào chữ */
    color: transparent; /* Làm cho chữ trong suốt để thấy nền gradient */
}

.table-container {
    min-height: 400px;
    overflow: hidden;
    position: relative;
    flex: 1;
    font-size: 14pt;
    font-family: 'Myriad Pro';
}

.table-content {
    flex-grow: 1;
    position: absolute; /* Định vị tuyệt đối để có thể chạy lên */
    animation: scroll-up 60s linear infinite; /* Thay đổi thời gian tùy ý */
    will-change: transform; /* Tối ưu hóa hiệu suất */
    width:100%;
}

@keyframes scroll-up {
    0% {
        transform: translateY(30%); /* Bắt đầu từ dưới cùng */
    }

    100% {
        transform: translateY(-100%); /* Kết thúc ở trên cùng */
    }
}

.table {
    padding: 1px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-collapse: collapse;
    color: #0000FF;
}


.noidung_ngay, .noidung_tuan {
    width: 100%;
    color: #0000FF;
    border-collapse: collapse;
    font-family:'Myriad Pro', 'Helvetica', 'Nunito';
    font-size:17px;
}
    .noidung_ngay th, .noidung_ngay td,
    .noidung_tuan th, .noidung_tuan td {
        padding: 8px;
        vertical-align: middle;
        text-align: center;
        border: 1px solid gray;
        border-collapse: collapse;
    }

.tieude {
    background: linear-gradient(to right, #0074be, #7ac3f2);
    font-family:'Myriad Pro', 'Helvetica', 'Nunito';
    font-size: 14pt;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    vertical-align: middle;
    padding: 10px;
    text-indent: initial;
    margin-bottom: 5px; /* Giảm khoảng cách dưới tiêu đề */
    margin-top: 5px;
}

.tieude_ngay {
    background-color: bisque;
    color: red;
}

#ngay {
    width: 5%;
    margin: 5px;
    text-align: center;
}

#sangchieu {
    width: 5%;
    margin: 5px;
}

#tg-diadiem {
    width: 15%;
    text-align: center;
    margin: 5px;
}

#noidung {
    width: 40%;
    text-align: left;
    margin: 5px;
}

#chutri {
    width: 5%;
    margin: 5px;
}

#donvichuanbi {
    width: 10%;
    text-align: center;
    margin: 5px;
}

#thanhphan {
    width: 20%;
    text-align: left;
    margin: 5px;
}

