@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@400;700&display=swap');

BODY,
HTML {
    font-family: 'Sarabun', sans-serif !important;
}

.main-index {
    margin-top: 150px;
}

.banner_reg {
    background-image: url('../images/banner_.png');
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
    height: auto;
    /*z-index: 1;*/
}

.toggle-index {
    position: absolute;
    width: fit-content;
    right: 0px;
    font-size: xx-large;

    a {
        color: #FFF;
    }
}

.topic_page {
    font-weight: 700;
    color: #263238 ;
    text-shadow: 2px 2px 0.1px rgb(255 255 255);
}

.card {
    overflow: hidden;
}


.card-count .icon {
    color: #fff;
    text-align: center;
    font-size: xx-large;
    width: 60px;
    background-color: #ffffff2e;
    border-radius: 6px;
    padding: 5px;
}

.card-count .text {
    padding-left: 10px;

    span {
        color: #FFF;
    }

    .card-title {
        color: #FFF;
        font-weight: bold;
    }
}

.gradient1 {
    background: rgb(74, 118, 157);
    background: linear-gradient(130deg, rgba(74, 118, 157, 1) 0%, rgba(44, 66, 89, 1) 100%);
}

.gradient2 {
    background: rgb(245, 177, 52);
    background: linear-gradient(130deg, rgba(245, 177, 52, 1) 0%, rgba(243, 82, 27, 1) 100%);
}

.gradient3 {
    background: rgb(22, 159, 143);
    background: linear-gradient(140deg, rgba(22, 159, 143, 1) 0%, rgba(56, 232, 121, 1) 100%);
}

.gradient4 {
    background: rgb(95, 125, 185);
    background: linear-gradient(130deg, rgba(95, 125, 185, 1) 0%, rgba(7, 128, 197, 1) 100%);
}

/*.div_main {
    position: relative;
    top: -350px;
}*/

.hidden {
    display: none;
}

.font-b {
    font-weight: 700;
}

.link_ {
    cursor: pointer;
}

.swal2-container {
    z-index: 999999 !important;
}

/*นับเวลาถอยหลัง*/
div.count {
    background-color: #222;
    float: left;
    padding: 10px 15px;
    width: fit-content;
    color: #fff;
    border-right: #000 solid 1px;
    font-size: 18px;
}

/*----- อัพโหลดเอกสาร -----*/
.box-upload {
    padding: 10px;
    padding-bottom: 20px;
    border-radius: 10px;
    border: #607d8b2e 1px solid;

    .pic img {
        max-width: 200px !important;
        height: 265px;
        border-radius: 10px;
        border: 2px solid #FFF;
        box-shadow: rgba(17, 17, 26, 0.1) 0px 0px 16px;
    }

}

.box_upload {
    margin: auto;
    width: 90%;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

#pic img,
.pic_up {
    width: 200px;
    height: 250px;
    box-shadow: #d8d5d5 2px 2px 8px;
    margin-bottom: 5px;
}

img#pic2 {
    box-shadow: #d8d5d5 2px 2px 8px;
    margin-bottom: 15px;
}

.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(2.0625rem + 2px);
    margin: 0;
    opacity: 0
        /*width: 255px;
    height: 300px;
    border: 0px;
    opacity: 0;
    cursor: pointer;
    position: absolute;
    top: -255px;
    left: 0px;
    z-index: 1;*/
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    text-align: left;
    height: calc(2.0625rem + 2px);
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    color: #4F5467;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 2px;
    /*display: none;*/
}


/*----- fileupload -----*/

.clearfix {
    *zoom: 1;
}

.clearfix:before,
.clearfix:after {
    display: table;
    content: "";
    line-height: 0;
}

.clearfix:after {
    clear: both;
}

.hide-text {
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

.input-block-level {
    display: block;
    width: 100%;
    min-height: 30px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.btn-file {
    overflow: hidden;
    position: relative;
    vertical-align: middle;
}

.btn-file>input {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    opacity: 0;
    filter: alpha(opacity=0);
    transform: translate(-300px, 0) scale(4);
    font-size: 23px;
    direction: ltr;
    cursor: pointer;
}

.fileupload {
    background-color: #363636;
    padding: 5px;
    border-radius: 6px;
}

.fileupload .uneditable-input {
    display: inline-block;
    margin-bottom: 0px;
    vertical-align: middle;
    cursor: text;
}

.fileupload .thumbnail {
    overflow: hidden;
    display: inline-block;
    margin-bottom: 5px;
    vertical-align: middle;
    text-align: center;
}

.fileupload .thumbnail>img {
    display: inline-block;
    vertical-align: middle;
    max-height: 100%;
}

.fileupload .btn {
    vertical-align: middle;
}

.fileupload-exists .fileupload-new,
.fileupload-new .fileupload-exists {
    display: none;
}

.fileupload-inline .fileupload-controls {
    display: inline;
}

.fileupload-new .input-append .btn-file {
    -webkit-border-radius: 0 3px 3px 0;
    -moz-border-radius: 0 3px 3px 0;
    border-radius: 0 3px 3px 0;
}

.thumbnail-borderless .thumbnail {
    border: none;
    padding: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.fileupload-new.thumbnail-borderless .thumbnail {
    border: 1px solid #ddd;
}

.control-group.warning .fileupload .uneditable-input {
    color: #a47e3c;
    border-color: #a47e3c;
}

.control-group.warning .fileupload .fileupload-preview {
    color: #a47e3c;
}

.control-group.warning .fileupload .thumbnail {
    border-color: #a47e3c;
}

.control-group.error .fileupload .uneditable-input {
    color: #b94a48;
    border-color: #b94a48;
}

.control-group.error .fileupload .fileupload-preview {
    color: #b94a48;
}

.control-group.error .fileupload .thumbnail {
    border-color: #b94a48;
}

.control-group.success .fileupload .uneditable-input {
    color: #468847;
    border-color: #468847;
}

.control-group.success .fileupload .fileupload-preview {
    color: #468847;
}

.control-group.success .fileupload .thumbnail {
    border-color: #468847;
}

/*-------------------- แก้ไขแทนต้นฉบับ --------------------*/
.menu-inner-shadow {
    top: 175px;
}






/*Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {
    .main-index {
        margin-top: 40px;
    }
}

/*Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) and (max-width: 767.98px) {}

/*Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) and (max-width: 991.98px) {
    .main-index {
        margin-top: -400px;
    }
}

/*Large devices (desktops, 992px and up)*/
@media (min-width: 992px) and (max-width: 1199.98px) {}

/*Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {}




/*---------- m แทนโทรศัพท์มือถือ----------*/
/*@media (max-width: 576px) {

    /*ความหมาย ถ้ากว้างไม่เกิน 576px ใช้อันนี้*/
/*.hidden-d {
        display: block;
    }

    .hidden-m {
        display: none;
    }

    
}*/


/*---------- m แทนIPAD ตั้ง----------*/
/*@media (min-width: 992px) {

    /*ความหมาย ถ้ากว้างไม่เกิน 992px ใช้อันนี้*/
/*.content-wrapper {
        margin-top: -400px;
    }
}*/




.zoomin:hover {
    transform: scale(1.1);
    /* ขยายขนาดเล็กน้อย */
}

@keyframes opacity01 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }

}