/* New Check box style */

.b-contain *,
.b-contain *::before,
.b-contain *::after {
    box-sizing: content-box !important;
}

.b-contain input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.b-contain span {
    /* line-height: 1.54;
	font-size: 1rem; */
    font-family: inherit;
}

.b-contain {
    display: table;
    position: relative;
    padding-left: 1.8rem;
    cursor: pointer;
    margin-bottom: .5rem;
    color: #000;
}

.b-contain input[type="checkbox"]~.b-input {
    position: absolute;
    top: 0;
    left: 0;
    height: 1.25rem;
    width: 1.25rem;
    background: rgba(255, 255, 255, 0.28);
    transition: background 250ms;
    border: 1px solid #8B0F04;
    border-radius: 0.125rem;
}

.b-contain input[type="radio"]~.b-input {
    position: absolute;
    top: 0;
    left: 0;
    height: 1.25rem;
    width: 1.25rem;
    background: rgba(255, 255, 255, 0.28);
    transition: background 250ms;
    border: 1px solid #8B0F04;
    border-radius: 2.0rem;
}

.b-contain input[type="checkbox"]~.b-input::after {
    content: '';
    position: absolute;
    display: none;
    left: .45rem;
    top: .18rem;
    width: .25rem;
    height: .6rem;
    border: solid rgba(255, 255, 255, 1);
    border-width: 0 2px 2px 0;
    transition: background 250ms;
    transform: rotate(45deg);
}

.b-contain input[type="radio"]~.b-input::after {
    content: '';
    position: absolute;
    display: none;
    left: .25rem;
    top: .25rem;
    width: .75rem;
    height: .75rem;
    border-radius: 2.0rem;
    background: rgba(255, 255, 255, 1);
    transition: background 250ms;
}

.b-contain input:disabled~.b-input::after {
    border-color: rgba(135, 149, 161, 1);
}

.b-contain input:checked~.b-input::after {
    display: block;
}

.b-contain:hover input~.b-input,
.b-contain input:focus~.b-input {
    background: rgb(231, 238, 243);
}

.b-contain input:focus~.b-input {
    box-shadow: 0 0 0 2px rgba(52, 144, 220, 0.5);
}

.b-contain input:checked~.b-input {
    background: #8B0F04;
    border-color: rgba(1, 12, 22, 1);
}

.b-contain input[type="checkbox"]:disabled~.b-input {
    background: rgba(241, 245, 248, 1);
    border-color: rgba(184, 194, 204, 1);
    opacity: 0.6;
    cursor: not-allowed;
}

.b-contain input[type="radio"]:disabled~.b-input {
    background: rgba(241, 245, 248, 1);
    border-color: rgba(184, 194, 204, 1);
    opacity: 0.6;
    cursor: not-allowed;
}

.b-contain input[type="radio"]:disabled~.b-input::after {
    background: rgba(135, 149, 161, 1);
}

.b-contain input:checked:focus~.b-input,
.b-contain:hover input:not([disabled]):checked~.b-input {
    background: #8B0F04;
    border-color: rgba(13, 143, 255, 1);
}

.b-contain .b-input::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    margin-left: -0.85rem;
    margin-top: -0.85rem;
    background: rgba(0, 130, 243, 1);
    border-radius: 2rem;
    opacity: .6;
    z-index: 99999;
    transform: scale(0);
}

.tox-tinymce {
    border-color: #8b0f04 !important;
}

@keyframes b-ripple {
    0% {
        transform: scale(0);
    }
    20% {
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

@keyframes b-ripple-duplicate {
    0% {
        transform: scale(0);
    }
    30% {
        transform: scale(1);
    }
    60% {
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.b-contain input+.b-input::before {
    animation: b-ripple 250ms ease-out;
}

.b-contain input:checked+.b-input::before {
    animation-name: b-ripple-duplicate;
}

.b-contain .b-input::before {
    visibility: hidden;
}

.b-contain input:focus+.b-input::before {
    visibility: visible;
}

.b-contain:first-child .b-input::before {
    visibility: hidden;
}


/* END New Check box style */


/* --------------------- Class Config ---------------------*/

.filter-btn {
    background-color: #8B0F04 !important;
    color: #FFFFFF !important;
    transition: 0.5s;
}

.filter-btn:hover {
    background-color: #242424 !important;
    color: #FFFFFF !important;
    transition: 0.5s;
}

.copy-right {
    width: 100%;
    position: absolute;
    bottom: 0;
    color: #FFFFFF;
    background-color: #8b0f04;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
}

.p-custom {
    font-size: 18px;
    color: #000;
}

.nav-link {
    color: #FFFFFF !important;
}

.active {
    padding-left: 10px !important;
    background-color: #FFFFFF !important;
    color: #8B0F04 !important;
}

.nav-bg {
    color: #FFFFFF !important;
    background-color: #8B0F04 !important;
}

.logo-text {
    margin-left: 20px;
    font-size: 32px;
    color: #242424;
}

.logo-box {
    padding-top: 30px;
    padding-bottom: 30px;
}

.cp {
    cursor: pointer;
}

.examination-01 {
    padding-bottom: 20px;
    border-bottom: 1px solid #7C8697;
}

.check-examination-box {
    border-bottom: 1px solid #7C8697;
}

.filter-btn {
    color: #242424;
    width: 55px;
    text-align: center;
    padding-top: 16px;
    padding-bottom: 16px;
    background-color: #FFFFFF;
    border: 1px solid #8B0F04;
}

.ul-custom>li {
    display: inline-block;
}

.container-custom {
    height: 100%;
    position: relative;
}

.vertical-center {
    margin: 0;
    position: absolute;
    top: 20%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.line-space {
    float: left;
    width: 50px;
    height: 2px;
    background-color: #000000;
    margin-top: 25px;
    margin-left: 10px;
}

.dot-online {
    float: left;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    background-color: #157347;
    margin-top: 15px;
    margin-right: 10px;
}

.circle-1 {
    float: left;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    font-size: 14px;
    color: #FFFFFF;
    text-align: center;
    background-color: #7C8697;
}

.circle-2 {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    font-size: 14px;
    color: #FFFFFF;
    text-align: center;
    background-color: #7C8697;
}

.circle-active {
    background-color: #8B0F04;
}

.circle-success {
    background-color: #157347;
}

.circle-wrong {
    background-color: #8B0F04;
}

.circle-check {
    background-color: #157347;
}

.footer-fix-box {
    z-index: 999;
    box-shadow: 0 0 10px 0 #C4C4C4;
    background: #FFFFFF;
    /* position: absolute; */
    bottom: 0;
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
}

.footer-nofix-box {
    z-index: 999;
    box-shadow: 0 0 10px 0 #C4C4C4;
    background: #FFFFFF;
    /* position: absolute; */
    bottom: 0;
    width: 100%;
    /* position: fixed; */
    left: 0;
    bottom: 0;
    width: 100%;
}

.footer-fix {
    /* width: 100%; */
    padding-bottom: 40px;
    padding-top: 50px;
    /* position: fixed; */
    bottom: 0;
}

.footer-nofix {
    /* width: 100%; */
    padding-bottom: 40px;
    padding-top: 50px;
    /* position: fixed; */
    bottom: 0px;
}

.btn-danger {
    padding-left: 30px !important;
    padding-right: 30px !important;
    color: #fff;
    background-color: #C8C8C8 !important;
    border-color: #C8C8C8 !important;
}

.btn-success {
    padding-left: 70px !important;
    padding-right: 70px !important;
    color: #fff;
    background-color: #157347 !important;
    border-color: #157347 !important;
}

.btn-primary {
    padding-left: 30px !important;
    padding-right: 30px !important;
}

.btn-primary-2 {
    margin-left: -80px;
    color: white !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

.delete-question-btn {
    width: 123px !important;
}

.delete-part-btn {
    width: 155px !important;
}

.add-question-div {
    padding: 0px 140px !important;
}

.add-part-div {
    margin-left: -140px;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.count-box {
    float: right;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 40px;
    padding-right: 40px;
    background-color: #FFFFFF;
    font-size: 20px;
    margin-top: -15px;
    margin-right: 20px;
    border-radius: 10px;
    color: #000000;
}

.tab-custom {
    color: #FFFFFF;
    padding-top: 20px;
    padding-left: 20px;
    border-radius: 10px;
    margin-top: 20px;
    width: 100%;
    height: 62px;
    background-color: #8B0F04;
}

.tab-custom-2 {
    color: #FFFFFF;
    padding-top: 20px;
    padding-left: 20px;
    border-radius: 10px;
    margin-top: 20px;
    width: 100%;
    height: 62px;
    background-color: #242424;
}

.t-color {
    color: #000000;
}

.tb {
    font-weight: bold;
}

.text-right {
    text-align: right;
}

.text-red {
    color: red;
}

.text-white {
    color: white;
}

.mt--10 {
    margin-top: -10px;
}

.mt--20 {
    margin-top: -20px;
}

.fs-36 {
    font-size: 36px;
}

.fs-22 {
    font-size: 22px;
}

.fs-18 {
    font-size: 18px;
}

.fs-12 {
    font-size: 12px;
}

.legend-indicator-2 {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #bdc5d1;
    border-radius: 50%;
    margin-right: 0.70rem;
}

.status-online {
    border-radius: 5px;
    border: 1px solid #157347;
    background-color: #F0FEF7;
    padding: 3px 15px;
    color: #157347;
}

.status-onsite {
    border-radius: 5px;
    border: 1px solid #FF8D07;
    background-color: #FFF6EB;
    padding: 3px 15px;
    color: #FF8D07;
}

.status-onsite-answer {
    border-radius: 5px;
    border: 1px solid #0D6EFD;
    background-color: #EAF2FF;
    padding: 3px 15px;
    color: #0D6EFD;
}

.table-primary-color {
    background: #8B0F04;
}


/* --------------------- End Class Config ---------------------*/


/* ----------------- Option Config ----------------- */

.text-ab {
    color: #8B0F04;
    padding-left: 17px;
    padding-top: 5px;
    position: absolute;
}

:root {
    --title-color: #222;
    --bg-color: #FAF0E6;
}

.space-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 20px;
    margin: 90px 0;
    /* font-family: 'Merriweather', serif; */
    font-size: 2.2rem;
    color: var(--title-color);
    line-height: 1.2;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-align: center;
}

.space-section::before,
.space-section::after {
    height: 2px;
    background: var(--title-color);
    content: '';
}

.space-question {
    width: 100%;
    border: 2px dashed #cccccc;
}

.icon-ab {
    color: #8B0F04;
    padding-left: 17px;
    padding-top: 5px;
    position: absolute;
}

.input-date-custom {
    padding-bottom: 5px !important;
    padding-top: 27px !important;
}

.input-custom {
    width: 100%;
    border: 1px solid #A12A12;
    border-radius: 2px;
    margin-right: 2rem;
    padding: 1rem;
    /* padding-right: 2rem; */
}

.input-custom-2 {
    width: 100%;
    border: 1px solid #A12A12;
    border-radius: 2px;
    padding: 1rem;
    /* padding-right: 2rem; */
}

.state-option {
    padding-top: 25px;
    padding-bottom: 5px;
    width: 100%;
    height: 55px;
    padding-left: 15px;
}

.large-card {
    width: 100%;
    height: auto;
    padding: 10px 10px;
    margin-bottom: 20px;
    background: #d2cfcf;
    /* border: 2px #8B0F04; */
    border-radius: 10px;
    box-shadow: inset 0 -3em 3em rgba(0, 0, 0, 0.1), 0 0 0 4px #8B0F04, 0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
}

.medium-card {
    width: 90%;
    height: auto;
    padding: 10px 10px;
    margin-bottom: 20px;
    background: white;
    /* border: 2px #8B0F04; */
    border-radius: 10px;
    box-shadow: inset 0 -3em 3em rgba(0, 0, 0, 0.1), 0 0 0 4px #8B0F04, 0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
}

.box-part {
    margin-left: -2rem;
    margin-right: -11rem;
}

.card-edit-examination {
    width: 100%;
    height: auto;
    padding: 10px 10px;
    margin-bottom: 20px;
    background: white;
    /* border: 2px #8B0F04; */
    border-radius: 10px;
    box-shadow: inset 0 -3em 3em rgba(0, 0, 0, 0.1), 0 0 0 4px #8B0F04, 0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
}

.card-student {
    display: flex;
    /* justify-content: center; */
    width: 400px;
    height: 60px;
    margin-bottom: 5px;
    border-radius: 10px;
    padding: 5px 5px;
    background-color: #8B0F04;
}

.card-student-fin {
    display: flex;
    /* justify-content: center; */
    width: 400px;
    height: 60px;
    border-radius: 10px;
    padding: 5px 5px;
    background-color: #000000;
}

.card-student h3 {
    padding-top: 13px;
    padding-left: 24px;
    padding-right: 7rem;
}

.card-student-fin h3 {
    padding: 13px 25px;
}

.card-student-content {
    color: black;
    padding: 15px 30px;
    background: #fff;
    border-radius: 17px;
    width: 30%;
    height: 100%;
}

.textarea-specification {
    width: 100%;
}

.input-text {
    font-size: 20px;
    padding: 0.5px 10px 0.5px 5px;
    width: 300px;
    border: none;
    border-bottom: 1px solid #8b0f04;
}

.empty-col {
    width: 35px !important;
    margin-bottom: 50px;
}

.number {
    position: relative;
    margin-top: 10px !important;
    width: 3% !important;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 15px;
    border: 1px solid #A12A12;
    border-radius: 2px;
    margin-right: 2rem;
    padding: 1rem;
    padding-right: 2rem;
}


/* ---- order sweetalert2 button ---- */

.my-actions {
    margin: 0 2em;
}

.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

.right-gap {
    margin-right: auto;
}


/* ----------------- End Option Config ----------------- */


/* --------------------- Search Config ---------------------*/

.search-box {
    float: right;
    position: relative;
    width: 100%;
    height: 55px;
    padding-left: 15px;
    padding-right: 15px;
}

form.example input[type=text] {
    height: 55px;
    padding: 15px;
    font-size: 17px;
    border: 1px solid #A12A12;
    float: left;
    width: 80%;
    background: #f1f1f1;
}

form.example button {
    float: left;
    width: 55px;
    height: 55px;
    background: #96161A;
    color: white;
    font-size: 17px;
    border: 1px solid #A12A12;
    border-left: none;
    cursor: pointer;
}

form.example button:hover {
    background: grey;
}

form.example::after {
    content: "";
    clear: both;
    display: table;
}

.search {
    width: 100%;
    position: relative;
    display: flex;
}

.searchTerm {
    width: 100%;
    border-right: none;
    padding: 15px;
    height: 55px;
    outline: none;
    border: 1px solid #A12A12;
}

.searchTerm:focus {
    color: #000000;
}

.searchButton {
    width: 55px;
    height: 55px;
    background: #96161A;
    text-align: center;
    color: #fff;
    /* cursor: pointer; */
    font-size: 16px;
    border: none;
}

.lockButton {
    width: 55px;
    height: 55px;
    background: #96161A;
    text-align: center;
    color: #fff;
    /* cursor: pointer; */
    font-size: 16px;
    border: none;
    padding-top: 15px;
}


/* Style the checkmark/indicator */

.container-rand .checkmark:after {
    left: 0.60em;
    top: 0.15em;
    width: 0.30em;
    height: 0.85em;
    border: solid white;
    border-width: 0 0.15em 0.15em 0;
    transform: rotate(45deg);
    transition: all 500ms ease-in-out;
}


/* --------------------- End Search Config ---------------------*/


/* --------------------- Tag Config ---------------------*/

textarea {
    border: 1px solid #000000 !important;
}

a {
    color: #000 !important;
}

h1 {
    font-size: 36px !important;
}

th {
    font-size: 14px !important;
    color: #FFFFFF !important;
}

tr {
    /* background-color: #157347; */
    /* box-shadow: 0 0 10px 0 #C4C4C4; */
}

.tr-primary-color {
    background-color: #F9F7F7;
}

td {
    color: #000000;
    padding: 20px !important;
}

.td-primary-color {
    color: #FFFFFF;
}

.table-custom {
    border-collapse: separate;
    border-spacing: 0 20px;
}


/* li {
    border-radius: 3px;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
} */

.table-header {
    background-color: #95A5A6;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table-row {
    background-color: #ffffff;
    box-shadow: 0px 0px 9px 0px rgba(0, 0, 0, 0.1);
}

.table-col-1 {
    flex-basis: 8% !important;
}

.table-col-2 {
    flex-basis: 13% !important;
}

.table-col-3 {
    flex-basis: 13% !important;
}

.table-col-4 {
    flex-basis: 12% !important;
}

.table-col-5 {
    flex-basis: 11% !important;
}

.table-col-6 {
    flex-basis: 11% !important;
}

.table-col-7 {
    flex-basis: 12% !important;
}

.table-col-8 {
    flex-basis: 15% !important;
}

.table-col-9 {
    flex-basis: 5% !important;
}


/* --------------------- End Tag Config ---------------------*/


/* --------------------- Margin & Padding Config ---------------------*/

.np {
    padding: 0px;
}

.npt {
    padding-top: 0px;
}

.npl {
    padding-left: 0px;
}

.npr {
    padding-right: 0px;
}

.nmb {
    margin-bottom: 0px !important;
}

.npb {
    padding-bottom: 0px !important;
}

.npl {
    padding-left: 0px !important;
}

.npr {
    padding-right: 0px !important;
}

.ml--10 {
    margin-left: -10px !important;
}

.ml--20 {
    margin-left: -20px !important;
}

.ml--60 {
    margin-left: -60px !important;
}

.ml-10 {
    margin-left: 10px !important;
}

.ml-20 {
    margin-left: 20px !important;
}

.ml-35r {
    margin-left: 35rem;
}

.mr-20 {
    margin-right: 20px !important;
}

.mr-0 {
    margin-bottom: 0px !important;
}

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

.mt-20 {
    margin-top: 20px !important;
}

.mt-25 {
    margin-top: 25px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.mt-40 {
    margin-top: 40px !important;
}

.mt-50 {
    margin-top: 50px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mb-30 {
    margin-bottom: 30px !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.mb-200 {
    margin-bottom: 200px !important;
}

.pl-10 {
    padding-left: 10px !important;
}

.pl-12 {
    padding-left: 12px !important;
}

.pl-20 {
    padding-left: 20px !important;
}

.pr-10 {
    padding-right: 10px !important;
}

.mb-100 {
    margin-bottom: 100px !important;
}


/* --------------------- End Config ---------------------*/

.table-curved {
    border-collapse: separate;
    border-spacing: 0 20px;
}

.table-curved th {
    padding: 3px 10px;
}

.table-curved th:first-child {
    padding: 6px;
}

.table-curved td {
    background-color: #e5e5e5;
    padding: 6px 10px;
    border-bottom: 2px solid white;
    border-top: 2px solid white;
}

.table-curved td:first-child {
    padding: 6px;
    border-radius: 10px 0 0 10px;
}

.table-curved td:last-child {
    border-radius: 0 10px 10px 0;
}


/* .table-curved tr:hover td:not(:first-child) {
    background-color: #c5c5c5;
  } */

.table-curved tr.blue td:first-child {
    background-color: cornflowerblue;
}

.table-curved tr.green td:first-child {
    background-color: forestgreen;
}


/***************************

breadcrumbs

***************************/

.navigation {
    border: solid 2px #FFFFFF;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    /* padding: 0 20px; */
    height: 55px;
    transition: 0.3s ease-in-out;
}

.navigation li {
    white-space: nowrap;
    display: flex;
    letter-spacing: 1px;
}

.navigation li:after {
    padding-left: 10px;
    content: "/";
}

.navigation li:last-child:after {
    display: none;
}

.navigation li:last-child a {
    cursor: not-allowed;
    opacity: 1;
}

.navigation li a {
    padding-left: 10px;
    letter-spacing: 2px;
    opacity: 0.4;
    transition: 0.3s ease-in-out;
}

.navigation li a:hover {
    opacity: 1;
}

.container-btn {
    /* display: block; */
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
    /* cursor: pointer; */
    /* font-size: 18px; */
    /* margin-right: 35px; */
}

.container-btn-edit-page {
    /* display: block; */
    position: relative;
    padding-left: 32px;
    margin-bottom: 20px;
    /* cursor: pointer; */
    /* font-size: 18px; */
    /* margin-right: 35px; */
}


/* Hide the default radio button */

.container-btn input {
    position: absolute;
    opacity: 0;
    /* cursor: pointer; */
}

.container-btn-edit-page input {
    position: absolute;
    opacity: 0;
    /* cursor: pointer; */
}


/* custom radio button */

.check {
    margin-top: 8px;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: lightgray;
    border-radius: 50%;
}


/* .container:hover input ~ .check {
    border: 1px solid #8B0F04;
    background-color: #FFFFFF;
} */

.container input:checked~.check {
    background-color: #8B0F04;
}

.check:after {
    content: "";
    position: absolute;
    display: none;
}

.container input:checked~.check:after {
    display: block;
}

.container .check:after {
    top: 5px;
    left: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #8B0F04;
}


/* Hiden Pro icon tiny */

.tox-promotion-link {
    display: none !important;
}


/* Font Awesome */

.fas {
    cursor: pointer;
}

.far {
    cursor: pointer;
}


/* .fa-eye {
    cursor: pointer;
}

.fa-edit {
    cursor: pointer;
}

.fa-copy {
    cursor: pointer;
}

.fa-trash-alt {
    cursor: pointer;
}

.fa-download {
    cursor: pointer;
}

.fa-print {
    cursor: pointer;
}

.fa-times {
    cursor: pointer;
}

.fa-external-link-alt {
    cursor: pointer;
} */


/* End Font Awesome */

.btn-custom {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

.space {
    width: 100%;
    height: 5px;
    background-color: #8B0F04;
}

.popup-link {
    display: flex;
    flex-wrap: wrap;
}

.popup-link a {
    background: #333;
    color: #fff;
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 17px;
    cursor: pointer;
    margin: 20px;
    text-decoration: none;
}

.popup-container {
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    transform: scale(1.3);
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(21, 17, 17, 0.61);
    display: flex;
    align-items: center;
}

.popup-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
}

.popup-content p {
    font-size: 17px;
    padding: 10px;
    line-height: 20px;
}

.popup-content a.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    background: none;
    padding: 0;
    margin: 0;
    text-decoration: none;
}

.popup-content a.close:hover {
    color: #333;
}

.popup-content span:hover,
.popup-content span:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.popup-container:target {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

.popup-container h3 {
    margin: 10px;
}


/*End popup styles*/


/* Additional styles */

.popup-style-2 {
    transform: scale(0.3);
}

.popup-style-2:target {
    transform: scale(1);
}

.popup-style-3 {
    left: 100%;
}

.popup-style-3:target {
    left: 0;
}

.popup-style-4 {
    transform: rotate(180deg);
}

.popup-style-4:target {
    transform: rotate(0deg);
}

.popup-style-5 {
    top: 100%;
}

.popup-style-5:target {
    top: 0;
}

.popup-style-6 {
    transform: scale(15.3);
}

.popup-style-6:target {
    transform: scale(1);
}

.popup-style-7 {
    transform: skewY(180deg);
    transition: all 0.7s ease-in-out;
}

.popup-style-7:target {
    transform: skewY(0deg);
}


/* Override bootstrap color btn */


/* primary */

.btn-primary {
    background-color: #8b0f04 !important;
    border-color: #8b0f04 !important;
}

.btn-primary-2 {
    background-color: #3774ec !important;
    border-color: #3774ec !important;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:visited,
.btn-primary:focus {
    box-shadow: 0 4px 11px #8b0f04 !important;
}

.btn-primary-2:hover,
.btn-primary-2:active,
.btn-primary-2:visited,
.btn-primary-2:focus {
    box-shadow: 0 4px 11px #3774ec !important;
}


/* END primary */


/* END Override bootstrap color btn */

#spinner {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background-color: rgba(192, 192, 192, 0.5);
    background-image: url("spinner.gif");
    background-repeat: no-repeat;
    background-position: center;
}

.test-result-btn {
    float: right;
    margin-right: 20px;
}

.label-upload-img {
    display: block;
}

.img-result-front {
    display: block;
    height: 100px;
}

.page-item.active .page-link {
    color: white !important;
    background-color: #8B0F04 !important;
    border-color: #8B0F04 !important;
}

li.page-item {
    padding: 0;
}

.istudy-pagi {
    margin-bottom: 40px;
}

.last-li-menu {
    float: right;
}

.navbar-nav {
    display: block ruby !important;
}

.text-breadcrumb {
    font-size: 1.14844rem;
    margin: 0px 5px;
    align-items: center;
    display: flex;
    font-weight: 600;
    line-height: 1.2;
    color: #a4a5a6;
    line-height: 1.2;
    letter-spacing: 2px;
    transition: .5s;
}

.text-breadcrumb:hover {
    color: #1e2022;
}

.text-breadcrumb-space {
    font-size: 1.14844rem;
    margin: 0px 10px;
    align-items: center;
    display: flex;
    font-weight: 600;
    line-height: 1.2;
    color: #a4a5a6;
    line-height: 1.2;
    letter-spacing: 2px;
}

.text-breadcrumb-space:hover {
    color: #1e2022;
}


/* ipad แนวตั้ง */

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1) {
    .room-number {
        font-size: 22px !important;
    }
    .btn-primary-2 {
        margin-left: -30px;
        color: white !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
    .card-student {
        display: flex;
        /* justify-content: center; */
        width: 230px;
        height: 60px;
        margin-bottom: 5px;
        border-radius: 10px;
        padding: 5px 5px;
        background-color: #8B0F04;
    }
    .card-student-fin {
        display: flex;
        /* justify-content: center; */
        width: 230px;
        height: 60px;
        border-radius: 10px;
        padding: 5px 5px;
        background-color: #000000;
    }
    .card-student h3 {
        padding-top: 13px;
        padding-left: 2px;
        padding-right: 1rem;
    }
    .card-student-fin h3 {
        padding: 2px 2px;
    }
    .card-student-content {
        color: black;
        padding: 15px 5px;
        background: #fff;
        border-radius: 17px;
        width: 35%;
        height: 100%;
    }
    .nav-bg {
        color: #FFFFFF !important;
        background-color: #8B0F04 !important;
    }
    .ul-bg {
        background-color: #8B0F04;
    }
    .pl-20 {
        padding-left: 0px !important;
    }
    .nav-toggler-custom {
        border: 2px solid #bbbabb;
        border-radius: 5px;
        background-color: #96161a;
        width: 50px !important;
        padding: 2px;
        color: #fff;
    }
}


/* ipad แนวนอน */

@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1) {
    .room-number {
        font-size: 25px !important;
        margin-top: 8px;
    }
    .btn-primary-2 {
        margin-left: -30px;
        color: white !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
    .card-student {
        display: flex;
        /* justify-content: center; */
        width: 230px;
        height: 60px;
        margin-bottom: 5px;
        border-radius: 10px;
        padding: 5px 5px;
        background-color: #8B0F04;
    }
    .card-student-fin {
        display: flex;
        /* justify-content: center; */
        width: 230px;
        height: 60px;
        border-radius: 10px;
        padding: 5px 5px;
        background-color: #000000;
    }
    .card-student h3 {
        padding-top: 13px;
        padding-left: 2px;
        padding-right: 1rem;
    }
    .card-student-fin h3 {
        padding: 2px 2px;
    }
    .card-student-content {
        color: black;
        padding: 15px 5px;
        background: #fff;
        border-radius: 17px;
        width: 35%;
        height: 100%;
    }
    .nav-bg {
        color: #FFFFFF !important;
        background-color: #8B0F04 !important;
    }
    .ul-bg {
        background-color: #8B0F04;
    }
    .pl-20 {
        padding-left: 0px !important;
    }
    .text-white {
        color: white;
    }
    .nav-toggler-custom {
        border: 2px solid #bbbabb;
        border-radius: 5px;
        background-color: #96161a;
        width: 50px !important;
        padding: 2px;
        color: #fff;
    }
}