/* CSS đã được bổ sung */
#loadingOverlay {
    position: absolute; /* Đảm bảo nó là một lớp phủ */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column; /* Sắp xếp các phần tử theo cột */
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5); /* Làm tối nền */
    z-index: 9999; /* Đặt lớp phủ cao hơn các phần tử khác */
}

#videoBannerContainer {
    position: relative; /* Cha của overlay và video phải có vị trí tương đối */
}

.loading-text {
    color: white;
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px; /* Khoảng cách giữa dòng "Đang tải" và thanh loading */
}

.loading-bar-container {
    width: 80%;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    height: 20px;
    margin-bottom: 10px; /* Khoảng cách giữa thanh loading và dòng "Đang tải lại lần" */
    position: relative;
}

.loading-bar {
    background-color: #28a745;
    height: 100%;
}

.retry-text {
    color: white;
    font-size: 14px;
    margin-top: 10px; /* Tạo khoảng cách trên giữa thanh loading và dòng "Đang tải lại lần" */
}

#videoPlayer {
    position: relative;
    z-index: 1;
}

.flag-container {
    position: relative;
    height: 50px;
    margin-top: 20px;
    width: 100%;
    background-color: #eee !important;
}

.huy-timeline-container {
    position: relative;
    height: 10px;
    background-color: #ddd !important;
    margin-top: -10px;
    width: 100% !important;
}

#huy-timeline {
    background-color: #28a745 !important;
}

.flag-huy {
    position: absolute;
    width: 20px;
    left: 0;
}

#xemgoiy .modal-dialog {
    max-width: 100%;
}

#examButtonsContainer .btn {
    width: 150px;
}

.pagination-btn {
    margin: 0 5px;
    width: 40px;
    height: 40px;
    border: none;
    cursor: pointer;
    background-color: #DDE8F3;
    color: #000000;
}

.pagination-btn:hover {
    background-color: #1863AD;
    color: #ffffff;
}

.pagination-btn.active {
    background-color: #1863AD;
    color: #ffffff;
}

.progress-huy {
    height: 5px;
    margin-bottom: 0 !important;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-top: -5px;
    border-radius: 0 !important;
    -webkit-box-shadow: inset 0 1px 2px rgb(0 0 0 / 10%);
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 10%);
}

.huytn_table_thi {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    overflow-y: auto;
    border: 2px solid #076db6;
    border-radius: 10px;
}

.huytn-socau {
    overflow: hidden;
    height: 45px;
    background: #ededed;
    padding: 8px 8px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #1d9ceb9e;
}

thead tr {
    background-color: #f2f2f2; /* Màu nền xám nhạt cho hàng tiêu đề */
    color: #ff6600; /* Màu chữ (ví dụ: màu cam) */
    font-weight: bold; /* Chữ in đậm */
}

/* Style for the result section */
#examInfo {
    border: 2px solid #e0e0e0;
    padding: 15px;
    border-radius: 10px;
    background-color: #f5f5f5;
    margin-bottom: 20px;
}

#examInfo p {
    font-size: 16px;
    color: #333;
}

#examInfo p span {
    font-weight: bold;
}

/* Style for the new community section */
#communitySection {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

#communitySection p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

#communitySection a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

#communitySection a:hover {
    text-decoration: underline;
}

#communitySection a:focus {
    outline: none;
    box-shadow: 0 0 5px #007bff;
}

/* CSS cho các nút điều khiển sau thi */
.control-buttons {
    display: flex;
    justify-content: space-between; /* Cách đều các nút */
    margin-top: 20px;
}

.btn-3nut-phu {
    width: 100%; /* Đảm bảo các nút có cùng kích thước */
    padding: 8px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    display: block; /* Nút sẽ được hiển thị bằng JavaScript sau khi bài thi kết thúc */
}

/* Nút "Thi lại đề này" */
#retryCurrentBtn.btn-3nut-phu {
    background-color: #f05a28; /* Màu cam đậm */
    color: white;
}

#retryCurrentBtn.btn-3nut-phu:hover {
    background-color: #d84e23; /* Màu cam khi hover */
    transform: scale(1.05); /* Tăng kích thước khi hover */
}

/* Nút "Thi đề mới" */
#newExamBtn.btn-3nut-phu {
    background-color: #28a745; /* Màu xanh lá */
    color: white;
}

#newExamBtn.btn-3nut-phu:hover {
    background-color: #218838; /* Màu xanh lá khi hover */
    transform: scale(1.05); /* Tăng kích thước khi hover */
}

/* Nút "Ôn tập lại 120 câu" */
#review120Btn.btn-3nut-phu {
    background-color: #007bff; /* Màu xanh dương */
    color: white;
}

#review120Btn.btn-3nut-phu:hover {
    background-color: #0056b3; /* Màu xanh dương khi hover */
    transform: scale(1.05); /* Tăng kích thước khi hover */
}

/* Hiệu ứng chung cho các nút */
.btn-3nut-phu:hover {
    transform: scale(1.05);
}

.btn-3nut-phu:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.btn-3nut-phu:active {
    transform: scale(0.95); /* Thu nhỏ nhẹ khi click */
}

/* Khoảng cách giữa các nút */
.control-buttons .btn-3nut-phu + .btn-3nut-phu {
    margin-left: 10px;
}

/* Căn chỉnh icon với chữ */
button i {
    margin-right: 8px;  /* Khoảng cách giữa icon và chữ */
    font-size: 14px;    /* Giảm kích thước icon */
}

/* Định dạng chung cho nút */
button {
    display: inline-flex;  /* Sử dụng Flexbox để giữ icon và chữ cùng hàng */
    align-items: center;  /* Căn giữa icon và chữ theo chiều dọc */
    padding: 10px;
    font-size: 16px;
}

/* CSS cho nút với icon play (f04b) */
button i.fa-play {
    font-family: 'Font Awesome 5 Free'; /* Font cho biểu tượng FA */
    font-weight: 900; /* Trọng lượng font */
    content: '\f04b'; /* Unicode cho play */
}

/* CSS cho nút với icon pause (f04c) */
button i.fa-pause {
    font-family: 'Font Awesome 5 Free'; /* Font cho biểu tượng FA */
    font-weight: 900; /* Trọng lượng font */
    content: '\f04c'; /* Unicode cho pause */
}

#scoreContainer {
    position: absolute;
    bottom: 22px;
    padding-left: 5px;
    padding-right: 5px;
    right: 2px;
    z-index: 100;
    display: inline-block;
    border: 2px solid #ffffffd1;
    border-radius: 10px;
    color: #4df974;
    box-shadow: none;
}

.score-ghost {
    position: absolute;
    font-size: 20px; /* Kích thước tương tự như điểm */
    color: #4df974; /* Màu xanh lá cây */
    transition: transform 7s ease, opacity 7s ease; /* Thời gian hiệu ứng cho cả di chuyển và opacity là 7 giây */
    pointer-events: none; /* Không cho phép tương tác với phần tử này */
    z-index: 1000; /* Đặt lớp phủ cao hơn để không bị che khuất */
}


.score-ghost.animate {
    transform: translateY(-30px); /* Dịch chuyển lên 30px */
    opacity: 0; /* Biến mất */
}
