.drawer {
    position: fixed !important;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    padding: 10px;
    color: #000;
    padding-top: 20px !important;
    overflow-y: scroll
}

/* Tùy chỉnh thanh cuộn cho Webkit (Chrome, Edge, Safari) */
.drawer::-webkit-scrollbar {
    width: 0px;
}

.drawer::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.3);
    /* Màu xám mờ */
    border-radius: 4px;
}

.drawer::-webkit-scrollbar-track {
    background-color: transparent;
}

.drawer.left {
    top: 0;
    left: 0;
    height: 100%;
    width: 350px;
    z-index: 9999;
    transform: translateX(-100%);
}

.drawer.right {
    top: 0;
    right: 0;
    height: 100%;
    width: 300px;
    transform: translateX(100%);
}

.drawer.top {
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    transform: translateY(-100%);
}

.drawer.bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    transform: translateY(100%);
}

.drawer.open.left,
.drawer.open.right,
.drawer.open.top,
.drawer.open.bottom {
    transform: translate(0, 0);
}

.overlay {
    position: fixed;
    inset: 0;
    display: none;

}

.overlay.show {
    display: block;
}

.navigate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 40px;
background:linear-gradient(90deg, #f3b838 0%, #ff7f02 100%) 0% 0%
}

.controls {
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}

.intruction-start-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-modal,
.controls>#toggleButton {
    margin: 5px;
    /* padding: 10px 15px !important; */
    cursor: pointer;
    font-size: 16px;
    display: none;
    background-color: #666;
    color: white;
    border-radius: 8px;
    height: 50px;
}

.controls>#toggleButton {
    padding: 0 !important;
    border-radius: 8px;

}



.controls>.time-button {
    align-content: center;
    background-color: black !important;
    font-weight: 600 !important;
    border-radius: 8px;
    height: 50px;
    margin: 5px;
    cursor: pointer;
    color: white;
}

.btn-intruction-start,
.controls>.box-question {
    background-color: #ffbe54 !important;
    font-weight: 600 !important;
    border-radius: 8px;
    height: 50px;
    margin: 5px;
    cursor: pointer;
    color: white;
    font-size: 20px;
}

.btn-intruction-start {
    text-transform: uppercase;
}

.btn-intruction-start:hover {
    opacity: 0.7;
}

.controls>#toggleButton:hover {
    opacity: 0.8;
}

.btn-modal {
    background-color: blue !important;
    cursor: pointer;
    font-size: 16px;
}

.part-title {
    font-weight: bold;
    margin: 20px 0 10px;
}

.question-grid {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.question-button {
    width: 45px;
    height: 45px;
    background-color: #aaa;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    font-weight: bold;
    margin: 3px;
}

.question-button:hover {
    background-color: #aaa;
}

.overlay,
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 999;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.overlay.show,
.modal-overlay.show {
    display: block;
}



.controls {
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: right;
    gap: 10px;
}

button {
    margin: 5px;
    /* padding: 10px 15px; */
    cursor: pointer;
    font-size: 16px;
}

/* Modal */
.modal {
    position: fixed;
    /* left: 50% !important;
    transform: translate(-50%, 100%) !important; */
    bottom: 0;
    background: white;
    padding: 20px;
    z-index: 1001;
    display: block;
    border-radius: 10px;
    width: 1000px;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

.modal.show {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: auto;
}

.modal.hiding {
    transition: none;
    /* Tắt hiệu ứng khi đóng */
    transform: translate(-50%, 100%);
    opacity: 0;
}

.question-button.active {
    background-color: blue;

}

.question-button.wrong {
    background-color: var(--danger-10) !important;
}

.question-button.correct {
    background-color: var(--success-10) !important;
}

#modal1 {
    height: 200px;
}

#modal2 {
    height: 400px;
}

.drawer-header {
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f5f5;
    max-height: 40px;
    padding: 5px;
}

.drawer-title {
    margin: 0;
    font-size: 1.1rem;
    /* Giảm kích thước font một chút */
    font-weight: bold;
    /* In đậm tiêu đề */
    color: #333;
    /* Màu chữ đậm hơn */
}

.drawer-close-btn {
    background: none;
    border: none;
    padding: 8px;
    /* Thêm chút padding cho dễ click */
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.6;
    /* Giảm độ mờ ban đầu */
    transition: opacity 0.2s ease-in-out;
    margin: 0;
    /* Thêm hiệu ứng mờ khi hover */
}

.drawer-close-btn:hover {
    opacity: 1;
    /* Tăng độ mờ khi hover */
}

.drawer-close-btn:focus {
    outline: none;
    /* Loại bỏ viền focus mặc định của trình duyệt */
    /* Thêm стили focus tùy chỉnh nếu muốn, ví dụ: */
    /* box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); */
}

.drawer-header strong {
    display: block;


}

.drawer-header strong>h4 {
    font-size: 18px !important;
}

.drawer-header {
    margin-top: 10px;
}

.custom-list {
    list-style: none;
    padding: 0;
    max-width: 100%;
}

.custom-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background-color: #f28c38;
    border-radius: 8px;
    padding: 10px;
    min-height: 80px;
}

.custom-number-circle {
    width: 47px;
    height: 43px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f28c38;
    font-size: 16px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    flex-shrink: 0;
}

.custom-list-content {
    margin-left: 20px;
    width: 85%;
    color: #fff;
    font-size: 14px;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

.custom-list-content h3 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}