﻿.gap-item-result-preview{
    display: inline; 
    padding: 5px; 
    border-radius: 5px; 
    background-color: #e9e9e9;
}

.gap-item-wrapper {
    display: flex;
    align-items: center;
    gap: 5px; /* Khoảng cách giữa các phần tử */
}

.gap-item-id {
    width: auto; /* Đặt chiều rộng là tự động để co giãn */
    text-align: center; /* Căn giữa văn bản trong ô input */
    box-sizing: content-box; /* Đảm bảo padding và border không ảnh hưởng đến kích thước của input */
}

.gap-item-id:focus {
    border-color: #007bff; /* Màu viền khi ô input được chọn */
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.25); /* Hiệu ứng đổ bóng khi ô input được chọn */
}

p {
    color: black;
}

.textarea-content {
    color: black;
}

.grow-wrap {
    /* easy way to plop the elements on top of each other and have them both sized based on the tallest one's height */
    display: grid;
}

.grow-wrap::after {
    /* Note the weird space! Needed to preventy jumpy behavior */
    content: attr(data-replicated-value) " ";
    /* This is how textarea text behaves */
    white-space: pre-wrap;
    /* Hidden from view, clicks, and screen readers */
    visibility: hidden;
}

.grow-wrap > textarea {
    /* You could leave this, but after a user resizes, then it ruins the auto sizing */
    resize: none;
    /* Firefox shows scrollbar on growth, you can hide like this. */
    overflow: hidden;
}

.grow-wrap > textarea,
.grow-wrap::after {
    /* Identical styling required!! */
    border: 1px solid black;
    padding: 0.5rem;
    font: inherit;
    /* Place on top of each other */
    grid-area: 1 / 1 / 2 / 2;
}

#backgound-header {
    background-image: linear-gradient(to top right, #ff8c00, #df825f, #dfb15b);
}

.background-button {
    /*background-image: linear-gradient(to top right, #3b5284, #308695);*/
}

.background-side {
    /*background-image: linear-gradient(#e4c7b7, #e4dfd9);*/
}

.background-fpt {
    background-image: linear-gradient(to top right, #cc5500, #ff8c00, #df825f, #dfb15b);
}

/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
    font-size: 95%;
}


.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

.pagination-group {
    padding-top: 5px;
}

.pagination-title {
    margin-bottom: 5px;
}

.pagination-element {
    margin-bottom: 0;
}

.margin-bottom-5px {
    margin-bottom: 5px;
}

.margin-top-5px {
    margin-top: 5px;
}

@media (min-width: 0px) {
    @supports ((position: -webkit-sticky) or (position: sticky)) {
        div.quiz-navigation {
            position: -webkit-sticky;
            position: sticky;
            top: 25%;
            z-index: 100;
        }
    }
}

@media (min-width: 576px) {
    @supports ((position: -webkit-sticky) or (position: sticky)) {
        div.quiz-navigation {
            position: -webkit-sticky;
            position: sticky;
            top: 25%;
            z-index: 100;
        }
    }
}

@media (min-width: 768px) {
    @supports ((position: -webkit-sticky) or (position: sticky)) {
        div.quiz-navigation {
            position: -webkit-sticky;
            position: sticky;
            top: 20%;
            z-index: 100;
        }
    }
}

@media (min-width: 992px) {
    @supports ((position: -webkit-sticky) or (position: sticky)) {
        div.quiz-navigation {
            position: -webkit-sticky;
            position: sticky;
            top: 20%;
            z-index: 100;
        }
    }
}

@media (min-width: 1200px) {
    @supports ((position: -webkit-sticky) or (position: sticky)) {
        div.quiz-navigation {
            position: -webkit-sticky;
            position: sticky;
            top: 11%;
            z-index: 100;
        }
    }
}

.td-content-cs p {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.custom-loading {
    width: 15px !important;
    height: 15px!important;
    border: solid 3px white !important;
    margin-left: 5px !important;
}
.custom-button {
    display: flex !important;
    align-items: center !important;
}

.ndfHFb-c4YZDc-Bz112c {
    display: none !important;
}

.generate-by-js {
    margin-left: 5px;
    margin-right: 5px;
}

.ordering-container {
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column; /* Cho sắp xếp theo chiều dọc */
    align-items: flex-start; /* Các mục sẽ được căn chỉnh về phía trái */
}

.ordering-container.orderinghorizontal {
    flex-direction: row;
}

.ordering-container.orderingvertical {
    flex-direction: column;
}

.ordering-item {
    border-radius: 5px;
    border: 5px #ccc;
    color: white;
    background-color: #6c757d;
    cursor: grabbing; /* Thêm cursor cho drag and drop */
    padding: 10px;
    margin: 5px;
    width: auto; /* Kích thước tự động theo nội dung */
    display: inline-block; /* Đảm bảo chỉ chiếm diện tích vừa đủ với nội dung */
    box-sizing: border-box; /* Để padding và border được tính vào chiều rộng */
    word-wrap: break-word; /* Tự động ngắt dòng nếu nội dung quá dài */
}

.ordering-item.true {
    background-color: #5e832d;
}

.ordering-item.false{

}

.ghost {
    opacity: 0.5; /* Hiệu ứng khi kéo mục */
    background-color: #ccc;
}