/* Định nghĩa màu sắc và kiểu dáng cho các điểm số */
.score-5 {
    background-color: rgb(0, 142, 44); /* Màu xanh lá cây đậm */
    color: #ffffff; /* Màu trắng cho số điểm */
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.score-4 {
    background-color: rgb(57, 229, 0); /* Màu xanh lá cây sáng */
    color: #ffffff; /* Màu trắng cho số điểm */
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.score-3 {
    background-color: rgb(194, 229, 0); /* Màu vàng */
    color: #ffffff; /* Màu trắng cho số điểm */
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.score-2 {
    background-color: rgb(229, 106, 0); /* Màu cam */
    color: #ffffff; /* Màu trắng cho số điểm */
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.score-1 {
    background-color: rgb(229, 0, 0); /* Màu đỏ đậm */
    color: #ffffff; /* Màu trắng cho số điểm */
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.score-0 {
    background-color: rgb(255, 0, 0); /* Màu đỏ */
    color: #ffffff; /* Màu trắng cho số điểm */
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}


/* Video Container (Chồng banner và video) */
#videoContainer {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background-color: #000; /* Để xem vùng videoContainer */
}

#bannerImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

#videoPlayer {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

/* Hint Guide */
.hint-guide {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    z-index: 10;
    transition: opacity 0.3s;
}

.hint-guide.d-none {
    opacity: 0;
    visibility: hidden;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* Hiện/ẩn bằng JS */
    justify-content: center;
    align-items: center;
    z-index: 100;
}

/* Loading Progress */
.loading-progress {
    text-align: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

#loadingText {
    margin-bottom: 10px;
}

#loadingBarContainer {
    width: 80%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

#loadingBarInner {
    width: 0%;
    height: 100%;
    background-color: #007bff;
    transition: width 0.1s linear;
}

#loadingInfo {
    color: #fff;
    margin-top: 5px;
    font-size: 14px;
    font-weight: normal;
}

/* Timeline Container */
.timeline-container {
    position: relative;
    width: 100%;
    height: 20px;
    margin-top: 0;
    overflow: hidden;
}

/* Timeline Background */
#timeline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Timeline Progress */
#timelineProgress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #28a745;
    z-index: 2;
    transition: width 0.1s linear;
}

/* Position Container */
#position {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 3;
    pointer-events: none;
}

/* Review Segments */
#position div {
    position: absolute;
    height: 100%;
    background-clip: padding-box;
    z-index: 3;
}

/* Flag Area */
#flagArea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

/* Flag Icon */
.flag-huy {
    position: absolute;
    height: 20px;
    width: 20px;
    z-index: 5;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Function Box */
.function-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(27, 27, 27, 0.95);
    padding: 10px;
}

/* Nút trong Function Box */
.function-box .custom-button {
    margin: 0 10px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    background-color: #3498db;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.function-box .custom-button:hover {
    background-color: #2980b9;
}

/* Nút Play/Pause và Rewind */
.custom-play-pause,
.custom-rewind {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    outline: none;
}

.custom-play-pause .icon-image,
.custom-rewind .icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Controls Container */
.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
}

/* Removed CSS for .controls .btn and .controls .btn:hover */

/* Information Row Container */
.info-row-container {
    background-color: #34495e;
    border-radius: 8px;
    padding: 20px;
    color: #ecf0f1;
    margin: 20px 0;
}

/* Information Row */
.info-row {
    display: flex;
    flex-direction: column;
}

/* Hàng trên chứa thông tin */
.info-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 15px;
}

/* Mục thông tin */
.info-item {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* Hàng dưới chứa các nút */
.info-row-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 15px;
}

.huytn-hangthu2cacnut {
    background-color: #e67e22;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s;
}

.huytn-hangthu2cacnut:hover {
    background-color: #d35400;
}

/* Modal Styles */
#xemgoiy .modal-dialog {
    max-width: 100%;
}

.modal-content {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    background-color: #3498db;
    color: #fff;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

.modal-footer .btn {
    margin-left: 10px;
}

/* Scenario list */
.ul {
    cursor: pointer;
}

.ul:hover .tt {
    color: #007bff;
    text-decoration: underline;
}


