html {
    scroll-behavior: smooth;
    touch-action: pan-x pan-y;
}

body {
    font-family: 'Noto Sans Thai', sans-serif;
}

.main-bg {
    min-height: 100vh;
    background-image: url('/public/img/bg.png'), linear-gradient(338.6deg, #f8f8f8 64.21%, #b5c9d7 122.39%);
    background-repeat: no-repeat;
    background-position: top left; 
}

.progress {
    height:0.8em; 
    border-radius:10rem;
}

.progress-bar {
    background-color: #6aa8d9;
    border-radius: 10rem;
}

/* ====================================================================================================== */
/* PADDING & MARGIN STYLES */
/* ====================================================================================================== */

.mt-2-5 {
    margin-top: 0.75rem;
}

/* ====================================================================================================== */
/* TEXT STYLES */
/* ====================================================================================================== */

.text-default {
    color: #6aa8d9;
}

.text-link-default {
    color: #999;
    text-decoration: underline;
}

.text-black {
    color: #000;
}

.text-white {
    color: #fff;
}

.text-grey {
    color: #888;
}

.text-bold {
    font-weight: bold;
}

.text-xx-small {
    font-size: xx-small;
}

.text-x-small {
    font-size: x-small;
}

.text-smaller {
    font-size: smaller;
}

.text-small {
    font-size: small;
}

.text-large {
    font-size: large;
}

.text-larger {
    font-size: larger;
}

.text-x-large {
    font-size: x-large;
}

.text-xx-large {
    font-size: xx-large;
}

.text-xxx-large {
    font-size: 260%; 
    line-height: 2.8rem;
}

.text-overflow {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.text-overflow-3 {
    -webkit-line-clamp: 3!important;
}

/* ====================================================================================================== */
/* BUTTON STYLES */
/* ====================================================================================================== */

.btn-round {
    border-radius: 10rem;
}

.btn-block {
    width: 100%;
}

.btn-default {
    background-color: #6aa8d9;
    color: #ffffff;
    border-color: #6aa8d9;
}

.btn-default:disabled {
    background-color: #bfd9ef;
    border-color: #bfd9ef;
}

.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default {
    /* background-color: #0959a2;
    color: #ffffff;
    border-color: #0959a2; */
    color: #ffffff;
}

.btn-outline-default{
    background-color: transparent;
    color: #6aa8d9;
    border-color: #6aa8d9;
}

.btn-outline-default:hover, .btn-outline-default:focus, .btn-outline-default:active, .btn-outline-default.active, .open .dropdown-toggle.btn-outline-default {
    /* background-color: transparent;
    color: #0959a2;
    border-color: #0959a2; */
    color: #6aa8d9;
}

.disabled {
    opacity:0.5;
}

/* ====================================================================================================== */
/* INPUT STYLES */
/* ====================================================================================================== */

.input-default {
    background-color: #fff;
    border-radius: 10rem;
    padding: .25rem .75rem;
    border: .1rem solid #888;
    color: #888;
    min-height: 2.4rem;
}

.input-default:focus {
    border: .1rem solid #666;
    color: #666;
}

.select-default {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-top: .6rem;
    padding-bottom: .6rem;
    padding-left: 1rem;
    display: block;
    font-size: 105%;
    color: #444;
}

.input-label {
    display: block;
    position: relative;
    padding-left: 2.5rem;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.input-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #fff;
    border-radius:.4rem;
    border:.08rem solid #bbb;
}

/* When the checkbox is checked, add a blue background */
.input-label input:checked ~ .checkmark {
    background-color: #6aa8d9;
}

/* Style the checkmark/indicator */
.input-label input:checked ~ .checkmark:after {
    font-family: 'Line Awesome Free';
    font-weight: 900;
    color: white;
    font-size: 90%;
    margin-left: .25rem;
    content: "\f00c";
}

/* Create a custom checkbox */
.checkmark-radio {
    position: absolute;
    top: 50%;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #fff;
    border-radius:10rem;
    border:.08rem solid #bbb;
    transform: translate(0, -50%);
}

/* When the checkbox is checked, add a blue background */
.input-label input:checked ~ .checkmark-radio {
    background-color: #6aa8d9;
}

/* ====================================================================================================== */
/* BADGE STYLES */
/* ====================================================================================================== */

.badge {
    font-weight: normal;
    border-radius: 10rem;
    padding: .4rem .8rem;
}

/* ====================================================================================================== */
/* DIV STYLES */
/* ====================================================================================================== */

.bg-default {
    background-color: #6aa8d9;
    color: #fff;
}

.bg-white {
    background-color: #fff;
}

.card-default {
    border-radius: 10px;
    border: 1px solid #ddd;
    position: relative;
}

.img-default {
    width: 100%; 
    padding-bottom: 100%;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: .8rem;
}

.shadow {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.title-bar {
    padding: .6rem 1rem;
    line-height: 1.8rem;
    width: 100%;
}

.title-bar-fixed {
    position: fixed;
}

.title-bar-back {
    height:3rem;
}

.title-bar-text {
    width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.loading-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    padding: 1.5rem;
    backdrop-filter: blur(.2rem);
    -webkit-backdrop-filter: blur(.2rem);
    border-radius: .8rem;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    border-radius: .6rem;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}

.modal-body {
    text-align: center;
}

.modal-dialog-scrollable .modal-content {
    max-height: 90%;
    overflow: hidden;
}