@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@100;200;300;400;500&display=swap');
@font-face {font-family: FT_Meuang_BL;src: url('../../font/FT Meuang BL-Bold.ttf');}
@font-face {font-family: DB_Adman;src: url('../../font/DB Adman X BdIt.ttf');}
@font-face {font-family: Sarun_Manorah;src: url("../../font/Sarun's Manorah.ttf");}
@font-face {font-family: BLK_BangLi;src: url("../../font/BLK-BangLi-Ko-Sa-Na.ttf");}
@font-face {font-family: KT_Smarn;src: url("../../font/kt_smarn.ttf");}
:root 
{
    /*--a-color: #757575;
    --main-color: #74C043;
    --hover-color: #720202;
    --bg-gray: #e5e5e5;
    --error-color:#e53935;
    --success-color:#66bb6a;*/

    --a-color: #757575;
    --main-color: #036aa9;
    --hover-color: #005384;
    --bg-gray: #e5e5e5;
    --error-color:#e53935;
    --success-color:#036aa9;
}
*
{
    font-family: 'Kanit', sans-serif;
}
.overlay{
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(255,255,255,0.8) url("../img/loading.gif") center no-repeat;
}
body.loading{
    overflow: hidden;   
}
body.loading .overlay{
    display: block;
}
a
{
    color: var(--a-color);
}
a:hover
{
    color: var(--hover-color)
}
.h3, h3{
    font-size: 1.25rem !important;
}
.text-primary
{
    color:var(--main-color) !important;
}
.btn{
    border-radius: 0px !important;
}
.btn-primary
{
    background-color:var(--main-color) !important;
    border-color:var(--main-color) !important;
    border-radius: 0px !important;
}
.btn-primary:hover
{
    background-color:var(--hover-color) !important;
    border-color:var(--hover-color) !important;
}
.bg-navbar, .bg-dark, .sticky-footer
{
    background: #000 !important;
}
.sidebar 
{
    box-shadow: none !important;
}
.nav-link, .collapse-item
{
    cursor: pointer;
}
    .nav-link:hover, .collapse-item:hover
    {
        color: var(--main-color);
    }
#wrapper #content-wrapper, .bg-gradient-login
{
    background-color: var(--bg-gray);
}
.modal-content, .btn-outline-primary
{
    border-radius: 0px;
}
.active
{
    color: var(--main-color) !important;
}
.sidebar .nav-item.active .nav-link
{
    font-weight: 400 !important;
}
.as-box, .as-button
{
    border-radius: 0px !important;
}
.as-okButton
{
    background-color:var(--main-color) !important;
    border-radius: 0px !important;
    box-shadow: 0 .125rem .25rem 0 rgba(58,59,69,.2)!important;
}
.as-cancelButton
{
    border-radius: 0px !important;
    box-shadow: 0 .125rem .25rem 0 rgba(58,59,69,.2)!important;
    border: 1px solid var(--main-color) !important;
    color: var(--main-color) !important;
}
.as-cancelButton:hover, .as-cancelButton:active
{
    background-color: var(--main-color) !important;
    color: #fff !important;
}
.btn-outline-primary
{
    color:var(--main-color) !important;
    border-color: var(--main-color) !important;
}
.btn-outline-primary:hover, .btn-outline-primary:active
{
    color:#fff !important;
    background-color: var(--main-color) !important;
}
.pointer
{
    cursor: pointer !important;
}

/* ============================
# Login
=============================== */
.card, 
.btn-facebook, 
.btn-google, 
.form-control, 
.custom-checkbox .custom-control-label::before
{
    border-radius: 0px !important;
}
#brand-logo
{
    width: 100%;
    text-align: center;
    float: left;
}
#brand-logo img
{
    width: 100px;
    margin-top: 20px;
}
#msg-error
{
    color: #e53935;
}
.error{
    font-size: .85rem !important;
    width: 100% !important;
    color: var(--error-color) !important;
}
/* ============================
# Data table
=============================== */
.table-responsive, form
{
    font-size: .85rem;
}
.table-responsive tr
{
    font-weight: 300;
}
.form-control
{
    font-size: .85rem !important;
    font-weight: 300 !important;
}
.form-control:focus
{
    border-color:var(--main-color);
}
.page-link
{
    border-radius: 0px !important;
    box-shadow: none;
    color: var(--main-color);
}
.page-link:hover
{
    color: var(--main-color);
}
.page-item.active .page-link
{
    background-color: var(--main-color);
    border-color: var(--main-color);
}
.btn
{
    border-radius: 0px !important;
    font-size: .85rem !important;
    cursor: pointer;
}
.select-org{
    color: var(--success-color);
}
/* ============================
# Data Form
=============================== */
.custom-file-label
{
    border-radius:0px !important;
    -webkit-box-shadow:0 0 0 0 rgba(255, 255, 255, 0.2)!important;
    box-shadow:none !important;
}
.custom-file-label::after
{
    border-radius:0px !important;
    border-color: var(--main-color) !important;
    background-color: var(--main-color) !important;
}
.dropdown-menu
{
    border-radius: 0px !important;
}
.dropdown-menu .dropdown-item:active
{
    background-color: var(--main-color);
}
.fileUpload 
{
    position: relative;
    overflow: hidden;
    line-height: 1.9 !important;
}
.fileUpload input.upload 
{
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity=0);
}
/* ============================
# Booth Setup
=============================== */
.inner-content-img
{
    position: relative;
    width: 100%;
    height: 100%;
}
/* ads 1 */
#inner-content-a1
{
    padding:5%;
}
#inner-content-a1 .a1-title
{
    position: absolute;
    z-index: 2;
    width: 12.5%; 
    margin-top:4.3%; 
    margin-left: 65.5%; 
    background-color: #fff;
    color: #e64200;
    text-align: center;
    font-size: 1.5vw;
    font-family: FT_Meuang_BL;
}
#inner-content-a1 .a1-title2
{
    position: absolute;
    z-index: 2;
    width: 12.5%; 
    margin-top:17.5%; 
    margin-left: 68.7%; 
    color: #e64200;
    text-align: right;
    font-size: 1vw;
    font-family: FT_Meuang_BL;
}
#inner-content-a1 .a1-link a
{
    position: absolute;
    z-index: 2;
    margin-top:8.65%; 
    margin-left: 68%; 
    color: #fff;
    text-align: center;
    font-size: 0.9vw;
    padding: 0% 0.5% 0% 0.5%;
    font-family: DB_Adman;
}
#inner-content-a1 .a1-ads
{
    position: absolute;
    z-index: 2;
    width: 5%; 
    height: 22.5%;
    margin-top: 11.5%; 
    background-color: #000;
    border: 2px solid #301f2e;
    object-fit: contain;
}
#inner-content-a1 .a1-ads-1{margin-left: 19.4%;}
#inner-content-a1 .a1-ads-2{margin-left: 25.8%;}
#inner-content-a1 .a1-ads-3{margin-left: 32.2%;}
#inner-content-a1 .a1-monitor img, 
#inner-content-a1 .a1-monitor iframe,
#inner-content-a1 .a1-monitor .fb-video
{
    position: absolute;
    z-index: 2;
    width: 12.3%; 
    height: 19.5%;
    margin-top:12.1%; 
    margin-left: 39.2%; 
    border: 2px solid #301f2e;
}
#inner-content-a1 .link:hover
{
    border: 2px solid var(--main-color);
}
/* ads 2 */
#inner-content-a2
{
    padding:5%;
}
#inner-content-a2 .a2-title
{
    position: absolute;
    z-index: 2;
    width: 11.5%; 
    margin-top:7.2%; 
    margin-left: 63.5%; 
    background-color: #fff;
    color: #56a3db;
    text-align: center;
    font-size: 1.3vw;
    font-family: Sarun_Manorah;
}
#inner-content-a2 .a2-title2
{
    position: absolute;
    z-index: 2;
    width: 11.5%; 
    margin-top:20%; 
    margin-left: 65.7%; 
    color: #56a3db;
    text-align: right;
    font-size: 0.8vw;
    font-family: Sarun_Manorah;
}
#inner-content-a2 .a2-link a
{
    position: absolute;
    z-index: 2;
    margin-top:11.08%; 
    margin-left: 66.5%; 
    color: #fff;
    text-align: center;
    font-size: .8vw;
    padding-left: 1px;
    font-family: DB_Adman;
    padding: 0% 0.5% 0% 0.5%;
}
#inner-content-a2 .a2-ads
{
    position: absolute;
    z-index: 2;
    width: 5%; 
    height: 22.5%;
    margin-top: 12.6%; 
    background-color: #000;
    border: 2px solid #4447b8;
    object-fit: contain;
}
#inner-content-a2 .a2-ads-1{margin-left: 37.5%;}
#inner-content-a2 .a2-ads-2{margin-left: 43.8%;}
#inner-content-a2 .a2-ads-3{margin-left: 49.9%;}
#inner-content-a2 .a2-monitor img, 
#inner-content-a2 .a2-monitor iframe
{
    position: absolute;
    z-index: 2;
    width: 12.5%; 
    height: 19.5%;
    margin-top:13.1%; 
    margin-left: 20.7%; 
    border: 2px solid #4447b8;
}
#inner-content-a2 .link:hover
{
    border: 2px solid var(--main-color);
}
/* ads 3 */
#inner-content-a3
{
    padding:5%;
}
#inner-content-a3 .a3-title
{
    position: absolute;
    z-index: 2;
    width: 8.9%; 
    margin-top:5.2%; 
    margin-left: 58%; 
    background-color: #fff;
    color: #eb4606;
    text-align: center;
    font-size: 1vw;
    padding: 1px;
    font-family: KT_Smarn;
}
#inner-content-a3 .a3-title2
{
    position: absolute;
    z-index: 2;
    width: 8.9%; 
    margin-top:14.5%; 
    margin-left: 62.5%; 
    color: #eb4606;
    text-align: right;
    font-size: 0.7vw;
    padding: 1px;
    font-family: KT_Smarn;
}
#inner-content-a3 .a3-link a
{
    position: absolute;
    z-index: 2;
    margin-top:8.9%; 
    margin-left: 58.65%; 
    color: #fff;
    text-align: center;
    font-size: .8vw;
    padding-left: 1px;
    font-family: DB_Adman;
    padding: 0% 0.6% 0% 0.6%;
}
#inner-content-a3 .a3-ads
{
    position: absolute;
    z-index: 2;
    width: 5.7%; 
    height: 27.5%;
    margin-top: 7.8%; 
    background-color: #000;
    border: 2px solid #7b6545;
    object-fit: contain;
}
#inner-content-a3 .a3-ads-1{margin-left: 22.5%;}
#inner-content-a3 .a3-ads-2{margin-left: 30.1%;}
#inner-content-a3 .a3-ads-3{margin-left: 37.5%;}
#inner-content-a3 .a3-monitor img, 
#inner-content-a3 .a3-monitor iframe
{
    position: absolute;
    z-index: 2;
    width: 11.5%; 
    height: 19.5%;
    margin-top: 8.4%; 
    margin-left: 45%; 
    border: 2px solid #7b6545;
}
#inner-content-a3 .link:hover
{
    border: 2px solid var(--main-color);
}
/* ads 4 */
#inner-content-a4
{
    padding:5%;
}
#inner-content-a4 .a4-title
{
    position: absolute;
    z-index: 2;
    width: 13.5%; 
    margin-top:7.5%; 
    margin-left: 59.3%; 
    color: #01b0c4;
    text-align: center;
    font-size: 1.3vw;
    padding: 1px;
}
#inner-content-a4 .a4-title2
{
    position: absolute;
    z-index: 2;
    width: 13.5%; 
    margin-top:19%; 
    margin-left: 70.3%; 
    color: #01b0c4;
    text-align: right;
    font-size: 0.7vw;
    padding: 1px;
}
#inner-content-a4 .a4-link a
{
    position: absolute;
    z-index: 2;
    margin-top:11.3%; 
    margin-left: 65.4%; 
    color: #fff;
    text-align: center;
    font-size: 1vw;
    padding-left: 1px;
    font-family: DB_Adman;
    padding: 0% 0.7% 0% 0.7%;
}
#inner-content-a4 .a4-ads{
    position: absolute;
    z-index: 2;
    width: 5.4%; 
    height: 23.5%;
    margin-top: 14%; 
    background-color: #000;
    border: 2px solid #535268;
    object-fit: contain;
}
#inner-content-a4 .a4-ads-1{margin-left: 19%;}
#inner-content-a4 .a4-ads-2{margin-left: 24.8%;}
#inner-content-a4 .a4-ads-3{margin-left: 30.7%;}
#inner-content-a4 .a4-monitor img, 
#inner-content-a4 .a4-monitor iframe
{
    position: absolute;
    z-index: 2;
    width: 12.1%; 
    height: 19%;
    margin-top: 13.6%; 
    margin-left: 37.5%; 
    border: 2px solid #535268;
}
#inner-content-a4 .link:hover
{
    border: 2px solid var(--main-color);
}
.modal-header{
    padding: 0rem 1rem;
}
/* ============================
# Entrance Setup
=============================== */
.inner-entrance-img
{
    position: relative;
    width: 100%;
    height: 100%;
}
/* -- Lanna V Market -- */
#inner-entrance-1
{
    padding:2%;
}
#inner-entrance-1 .e1-ads
{
    position: absolute;
    z-index: 2;
    width: 5%; 
    height: 9.5%;
    margin-top: 21.7%; 
    background-color: #fff;
    border: 2px solid #301f2e;
}
#inner-entrance-1 .e1-ads-1{margin-left: 20.4%;}
#inner-entrance-1 .e1-ads-2{margin-left: 26%;}
#inner-entrance-1 .e1-ads-3{margin-left: 31.5%;}
#inner-entrance-1 .e1-ads-5{margin-left: 58.7%;}
#inner-entrance-1 .e1-ads-6{margin-left: 64.55%;}
#inner-entrance-1 .e1-ads-7{margin-left: 70.4%;}

#inner-entrance-1 .e1-monitor,
#inner-entrance-1 .e1-monitor img,
#inner-entrance-1 .e1-monitor iframe,
#inner-entrance-1 .e1-monitor .fb-video
{
    position: absolute;
    z-index: 2;
    width: 17.25%; 
    height: 9.9%;
    margin-top:21.5%; 
    margin-left: 38.5%; 
    border: 2px solid #301f2e;
}
#inner-entrance-1 .link:hover
{
    border: 2px solid var(--main-color);
}
/* -- ParkTai V Market -- */
#inner-entrance-2
{
    padding:2%;
}
#inner-entrance-2 .e1-ads
{
    position: absolute;
    z-index: 2;
    width: 5%; 
    height: 9.5%;
    margin-top: 21.7%; 
    background-color: #fff;
    border: 2px solid #301f2e;
}
#inner-entrance-2 .e1-ads-1{margin-left: 20.4%;}
#inner-entrance-2 .e1-ads-2{margin-left: 26%;}
#inner-entrance-2 .e1-ads-3{margin-left: 31.5%;}
#inner-entrance-2 .e1-ads-5{margin-left: 58.7%;}
#inner-entrance-2 .e1-ads-6{margin-left: 64.5%;}
#inner-entrance-2 .e1-ads-7{margin-left: 70%;}

#inner-entrance-2 .e1-monitor,
#inner-entrance-2 .e1-monitor img, 
#inner-entrance-2 .e1-monitor iframe,
#inner-entrance-2 .e1-monitor .fb-video
{
    position: absolute;
    z-index: 2;
    width: 17.25%; 
    height: 9.9%;
    margin-top:21.5%; 
    margin-left: 38.5%; 
    border: 2px solid #301f2e;
}
#inner-entrance-2 .link:hover
{
    border: 2px solid var(--main-color);
}
/* -- E-san V Market -- */
#inner-entrance-3
{
    padding:2%;
}
#inner-entrance-3 .e1-ads
{
    position: absolute;
    z-index: 2;
    width: 5%; 
    height: 9.5%;
    margin-top: 21.6%; 
    background-color: #fff;
    border: 2px solid #301f2e;
}
#inner-entrance-3 .e1-ads-1{margin-left: 20.4%;}
#inner-entrance-3 .e1-ads-2{margin-left: 26%;}
#inner-entrance-3 .e1-ads-3{margin-left: 31.5%;}
#inner-entrance-3 .e1-ads-5{margin-left: 58.8%;}
#inner-entrance-3 .e1-ads-6{margin-left: 64.8%;}
#inner-entrance-3 .e1-ads-7{margin-left: 70.5%;}

#inner-entrance-3 .e1-monitor,
#inner-entrance-3 .e1-monitor img, 
#inner-entrance-3 .e1-monitor iframe,
#inner-entrance-3 .e1-monitor .fb-video
{
    position: absolute;
    z-index: 2;
    width: 17.25%; 
    height: 9.9%;
    margin-top:21.5%; 
    margin-left: 38.5%; 
    border: 2px solid #301f2e;
}
#inner-entrance-3 .link:hover
{
    border: 2px solid var(--main-color);
}
/* -- Bangkok V Market -- */
#inner-entrance-4
{
    padding:2%;
}
#inner-entrance-4 .e1-ads
{
    position: absolute;
    z-index: 2;
    width: 5%; 
    height: 9.5%;
    margin-top: 21.6%; 
    background-color: #000;
    border: 2px solid #301f2e;
    object-fit: cover;
}
#inner-entrance-4 .e1-ads-1{margin-left: 20.4%;}
#inner-entrance-4 .e1-ads-2{margin-left: 25.8%;}
#inner-entrance-4 .e1-ads-3{margin-left: 31.4%;}
#inner-entrance-4 .e1-ads-5{margin-left: 58.8%;}
#inner-entrance-4 .e1-ads-6{margin-left: 64.7%;}
#inner-entrance-4 .e1-ads-7{margin-left: 70.5%;}

#inner-entrance-4 .e1-monitor,
#inner-entrance-4 .e1-monitor img, 
#inner-entrance-4 .e1-monitor iframe,
#inner-entrance-4 .e1-monitor .fb-video
{
    position: absolute;
    z-index: 2;
    width: 17.25%; 
    height: 9.9%;
    margin-top:21.5%; 
    margin-left: 38.5%; 
    border: 2px solid #301f2e;
}
#inner-entrance-4 .link:hover
{
    border: 2px solid var(--main-color);
}

@media (max-width: 768px){
    .sidebar.toggled{
        width: 30vw!important;
    }
    .sidebar .nav-item .nav-link{
        padding: 2.5rem !important;
    }
}

/* Landscape */
@media screen and (orientation: landscape) {
    html, html {
      transform: rotate(0deg);
      transform-origin: left top;
      width: 100vw;
      height: 100vh;
      overflow-x: hidden;
      position: absolute;
      top: 0;
      left: 0;
      font-size: 1vw;
    }
    .sidebar .nav-item .nav-link{
        padding: 1.5rem;
    }
    .as-textnode, .as-okButton, .as-cancelButton
    {
        font-size: 1rem !important;
    }
}

/* portrait */
@media screen and (orientation: portrait) {
    html, html {
        transform: rotate(-90deg);
        transform-origin: left top;
        width: 100vh !important;
        height: 100vw !important;
        overflow-x: hidden;
        position: absolute;
        top: 100%;
        left: 0;
        font-size: 1.5vw;
      }
      .topbar .dropdown .dropdown-menu{
        width: calc(100% - 60rem) !important;
      }
      .as-textnode, .as-okButton, .as-cancelButton
      {
          font-size: 1.5rem !important;
      }
}