﻿
/*#region Fonts */

@font-face {
    font-family: 'Sarabun';
    src: url("../fonts/Sarabun/Sarabun-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sarabun Bold';
    src: url("../fonts/Sarabun/Sarabun-Bold.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sarabun SemiBold';
    src: url("../fonts/Sarabun/Sarabun-SemiBold.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sarabun Light';
    src: url("../fonts/Sarabun/Sarabun-Light.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Saraban Regular';
    src: url("../fonts/Sarabun/Sarabun-Regular.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*#endregion */

/*#region Loader*/

.loader {
    width: 100px;
    height: 100px;
    border-radius: 100%;
    position: relative;
    margin: 0 auto;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

    .loader:before, .loader:after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 100%;
        border: 10px solid transparent;
        border-top-color: #3498db;
    }

    .loader.inverted:before {
        border: 10px solid white;
        border-top-color: black;
    }

    .loader.inverted:after {
        border: none;
        border-top-color: black;
    }

    .loader:after {
        border: 10px solid #ccc;
    }

    .loader:before {
        z-index: 100;
        -webkit-animation: spin 0.6s linear infinite;
        -moz-animation: spin 0.6s linear infinite;
        animation: spin 0.6s linear infinite;
    }

@-moz-keyframes spin {
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.loading {
    position: fixed;
    z-index: 1051;
    height: 2em;
    width: 2em;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

    .loading:before {
        content: '';
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0, .8));
        background: -webkit-radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0,.8));
    }

    .loading:not(:required) {
        font: 0/0 a;
        color: transparent;
        text-shadow: none;
        background-color: transparent;
        border: 0;
    }
/*#endregion */

/*#region Form */

form {
    margin-top: 25px;
}

.btn.btn-primary {
    color: #FFFFFF;
    font-family: 'Sarabun SemiBold';
    font-size: 16px;
    line-height: 19px;
    background-color: #3BB6F5;
    border-radius: 6px;
    height: 40px;
    width: 100%;
    border: none;
}

.form-group {
    font-family: 'Sarabun Regular';
    font-size: 14px;
    line-height: 18px;
}

.form-control {
    font-family: 'Sarabun';
}

.select-radio {
    float: left;
    clear: none;
}

.label-radio {
    font-family: 'Sarabun';
    font-size: 14px;
    float: left;
    clear: none;
    display: block;
    padding: 0px 5px;
}

input[type=radio],
input.messageCheckbox {
    float: left;
    clear: none;
    margin: 2px 0 0 2px;
    height: 15px;
    width: 10px;
    margin: 2px;
}

.hide-feedback {
    display: none !important;
}

.hide-form {
    border-color: #7E8790 !important;
    background-image: initial !important;
}

.invalid-feedback {
    /*font-size: 90% !important;*/
    font-family: Sarabun;
    font-weight: 300;
    font-size: 14px;
}

.valid-feedback {
    font-family: Sarabun;
}

.was-validated .edited.form-control:invalid {
    border-color: #dc3545;
}

.was-validated .form-control:invalid {
    border-color: #495057;
}

.font-header {
    font-family: Sarabun;
    font-style: normal;
    font-weight: bold;
    font-size: 36px;
    line-height: 42px;
    color: #3BB6F5;
    padding-top: 0.5em;
}

/*#endregion */

/*#region General */

body {
    background: url('../Images/background.png') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    font-family: 'Sarabun';
}

#background {
    font-family: 'Sarabun';
    background-image: url('../Images/background.png');
    background-size: cover;
    background-repeat: no-repeat;
    height: 100%;
    font-family: 'Sarabun';
}

.inner-section {
    font-family: 'Sarabun';
    background-color: transparent;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    min-height: 90vh;
    margin-top: 50px;
}

.container {
    background-color: #FFFFFF;
    width: 60%;
    height: auto;
    margin: 2.5em 0 2em 0;
    padding: 2% 4%;
    -ms-flex: 1;
    flex: 1;
    overflow: hidden;
    border-radius: 0 15px 15px 0;
    line-height: normal;
    flex-grow: 4;
}

.container-img {
    width: 40%;
    padding: 0 !important;
    background: url(../Images/Image-Background03@4x.jpg);
    min-height: 100%;
    height: auto;
    background-size: 118% 200%;
    flex: 1;
    border-radius: 15px 0 0 15px;
    flex-grow: 3;
}

.img-cover {
    object-fit: cover;
    width: 100%;
}

.image-ontop {
    position: absolute;
    top: 25vh;
    left: 10%;
    width: 80%;
    height: 77px;
    object-fit: contain;
}

.centered-text {
    align-self: center;
    justify-content: center;
    width: 100%;
}

.full-no-content {
    height: 88vh;
}

div.sticky {
    position: relative;
}

.wrapConsent {
    white-space: pre-wrap;
    word-break: break-all;
}

pre {
    width: 100%;
    color: #1C2127;
    font-family: "Sarabun";
    font-size: 14px;
    line-height: 18px;
    white-space: pre-line;
    word-wrap: break-word;
    height: 100%;
    margin: 1.5em 0;
}

p {
    overflow-wrap: break-word;
}

span {
    overflow-wrap: break-word;
}

.btn {
    margin-bottom: 0.5em;
}

    .btn.disabled, .btn:disabled {
        background-color: #dfdfdf;
    }

.btn-responsive {
    width: 25%;
    margin: 0 .25em;
}

.input-title {
    padding-bottom: 0.4em;
    font-size: 14px;
}

.general-text {
    font-size: 14px;
    font-family: Sarabun;
}

.body-content {
    min-height: 480px;
    overflow: hidden;
}

.main-icon-container {
    padding-top: 1em;
    text-align: center;
}

.icon-sm {
    width:40px;
    height:40px;
}

@media screen and (max-width: 992px) {

    .container-img {
        background-size: 130% 200%;
    }

    .btn-responsive {
        width: 35%;
    }

    .inner-section {
        width: 80%;
    }
}

@media screen and (max-width: 768px) {

    .container-img {
        display: none;
    }

    .container {
        width: 100%;
        border-radius: 15px 15px 15px 15px;
    }

    .btn-responsive {
        width: 100%;
        margin: .25em 0;
    }

    .inner-section {
        width: 90%;
    }
}

/*#endregion */

/*#region Modal */

.close-cross {
    position: absolute;
    right: .6em;
    top: .2em;
    color: gray;
    background-color: transparent;
    border: 0px;
    font-size: 24px;
    opacity: 0.8;
}

/*#endregion */

/*#region NavBar */

.collapse.in {
    visibility: visible;
    display:block;
}

.in .navbar-nav li .profile {
    right: 0;
    padding:.5rem 0;
}

.navbar-toggler:focus, .navbar-toggler:hover {
    outline: none;
}

.navbar {
    padding: 0 1rem;
    background: #FFFFFF;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-title {
    font-style: normal;
    font-weight: bold;
    font-size: 20px;
    line-height: 23px;
    color: #000000;
}

.profile-title-secondary {
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 19px;
    color: #000000;
}

.dropdown-item {
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 19px;
    color: #4D545C;
}

    .dropdown-item:focus {
        outline: none;
    }

    .dropdown-item:active {
        outline: none;
        color: #4D545C;
        background-color: inherit;
        /*background: #EBEBEB;*/
    }

.profile {
    right: 30px;
    position: relative;
    font-weight: bolder;
    cursor: pointer;
}

/*#endregion */

/*#region OTP */

.otp-header {
    font-style: normal;
    font-weight: 500;
    font-size: 30px;
    line-height: 35px;
}

.otp-content {
    font-style: normal;
    font-weight: normal;
    font-size: 18px;
    line-height: 24px;
}

.main-icon {
    height: 64px;
}

/*#endregion */

/*#region Card */

.scrolling-wrapper {
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
}

.card {
    display: inline-block;
    height: auto;
    margin-top: 1em;
    margin-bottom: 2em;
    margin-right: 1.5em;
}

.card:first-child {
    margin-left: 1em;
}

h1 {
    text-align: center;
}

.small-meta {
    font-size: 12px;
}

.dim {
    opacity: 0.4;
}

.image {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.image-logo {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.frame {
    vertical-align: middle;
    text-align: center;
    display: grid;
}

.grid-wrapper {
    margin: 0 auto;
    width: 100%;
    vertical-align: middle;
    text-align: center;
    position: relative;
}

.card-content {
    border: 1px solid #CCC;
    border-radius: 3px;
    padding: 25px 25px 10px 25px;
}

    .card-content * {
        cursor: pointer;
    }

/*.card-wrapper {
    position: relative;
    width: 235px;
    height: 270px;
    float: left;
    margin-right: 50px;
    margin-bottom: 50px;
}*/

.c-card {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
}

    .c-card ~ .card-content {
        transition: all 50ms ease-out;
        background: #FFFFFF;
        box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        padding: 0;
    }

        .c-card ~ .card-content .card-state-icon {
            position: absolute;
            top: 5px;
            left: 5px;
            z-index: 2;
            width: 2em;
            height: 2em;
            background-position: 0 0;
            transition: all 50ms ease-out;
            background: url('../Images/check.png') no-repeat;
            display: none;
        }

        .c-card ~ .card-content:before {
            position: absolute;
            top: 1px;
            left: 1px;
            width: 0;
            height: 0;
            border-top: 52px solid #47cf73;
            border-left: 52px solid transparent;
            transition: all 50ms ease-out;
        }

        .c-card ~ .card-content:after {
            position: absolute;
            top: 0;
            left: 0;
            content: "";
            width: 2.5em;
            height: 2.5em;
            border-radius: 5px;
            background-color: #2085F3;
            transition: all 50ms ease-out;
            display: none;
        }

        .c-card ~ .card-content:hover {
            border: 3px solid #2085F3;
        }

            .c-card ~ .card-content:hover .card-state-icon {
                background-position: 0.2em 0.3em;
                display: block;
            }

            .c-card ~ .card-content:hover:before {
                border-top: 52px solid #47cf73;
            }

    .c-card:checked ~ .card-content {
        background: #FFFFFF;
        border: 3px solid #2085F3;
        box-sizing: border-box;
        box-shadow: 0px 5px 15px rgba(32, 133, 243, 0.3);
        border-radius: 10px;
    }

        .c-card:checked ~ .card-content .card-state-icon {
            background-position: 0.2em 0.3em;
            display: block;
        }

        .c-card:checked ~ .card-content:before {
            display: block;
            background: url('../Images/check.png') no-repeat;
        }

        .c-card:checked ~ .card-content:after {
            display: block;
        }

    .c-card:checked:hover ~ .card-content .card-state-icon {
        display: block;
    }

    .c-card:checked:hover ~ .card-content:before {
        display: block;
    }

    .c-card:checked:hover ~ .card-content:after {
        display: block;
    }

.line {
    border: .5px solid #E0E0E0;
    width: 85%;
    margin: 1em auto;
    background-color: #E0E0E0;
}

.line-title {
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 32px;
    color: #000000;
}

.line-content {
    font-style: normal;
    font-weight: normal;
    font-size: 18px;
    line-height: 32px;
    color: #989898;
    white-space: pre;
}

.inline {
    width: fit-content;
    border: 0;
    margin: 0;
}
/*#endregion */

/*#region Scrollbar */

::-webkit-scrollbar {
    background-color: #fff;
    width: 12px
}

/* background of the scrollbar except button or resizer */
::-webkit-scrollbar-track {
    background-color: #fff
}

    ::-webkit-scrollbar-track:hover {
        background-color: #f4f4f4
    }

/* scrollbar itself */
::-webkit-scrollbar-thumb {
    background-color: #babac0;
    border-radius: 16px;
    border: 5px solid #fff
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: #a0a0a5;
        border: 4px solid #f4f4f4
    }

/* set button(top and bottom of the scrollbar) */
::-webkit-scrollbar-button {
    display: none
}

/*#endregion */

/*#region Switch class */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}
  
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
  
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    box-shadow: 0px 4px 4px rgba(50, 50, 71, 0.08), 0px 4px 8px rgba(50, 50, 71, 0.06);
    /* rounded */
    border-radius: 34px;
}
  
.switch-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: #e4e4e4;
    -webkit-transition: .4s;
    transition: .4s;
    /* rounded */
    border-radius: 50%;
}
  
input:checked + .switch-slider:before {
    background-color: #3BB6F5;
}

input:checked + .switch-slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}
/*#endregion */

/*#region Slider class */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;  
    background: #3972C8;
    outline: none;
    -webkit-transition: .2s;
    transition: opacity .2s;
}
  
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%; 
    background: #FFF;
    cursor: pointer;
}
  
.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFF;
    cursor: pointer;
}
/*#endregion */

/*#region Helper class */
.hidden {
    display: none;
}

.cursor {
    cursor: pointer;
}

.lang:hover {
    cursor: pointer;
}

.text-sm { font-size: 14px; }
.text-md { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
/*#endregion */
