/* Reset frontend-new global/header rules inside .header */
.header {
    background-color: transparent;
    color: #fff;
    z-index: 50;
    position: relative;
}
.header .row {
    margin: 0px;
    padding: 0px;
}
@font-face {
    font-family: TH;
    src: url(/frontend/fonts/THSarabun.ttf) format("truetype");
}
.header,
.header div,
.header input,
.header label,
.header a,
.header span,
.header p {
    font-family: TH;
}
.header button {
    font-family: 'Mitr', sans-serif;
}
.header .h-menu .nav-item .nav-link {
    padding: .5rem 10px;
}
.header .h-menu .navbar {
    padding-top: 0px;
    padding-bottom: 0px;
}
@media screen and (min-width: 1024px) {
    .header .head-top > .row {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }
    .header .head-top .top1 {
        width: auto;
        flex: 0 0 auto;
    }
    .header .head-top .top2 {
        width: auto;
        flex: 1 1 auto;
    }
    .header .head-top .right .row {
        flex-wrap: nowrap;
    }
    .header .head-top .input-group {
        flex-wrap: nowrap;
        align-items: stretch;
    }
    .header .top2 .t1,
    .header .top2 .t2 {
        white-space: nowrap;
    }
}

@keyframes ts {
    0%{
        background-color: #1dc21e;
    }
        /* YOU CAN ADD MORE COLORS IN THE KEYFRAMES IF YOU WANT
        50%{
          background-color: #55d66b;
          border: 5px solid #126620;
        }
        */
    50%{
       background-color: #ff0000;
    }
}
.t5 {
    animation: ts 1s infinite;
}
@font-face {  
      font-family: DB ;  
      src: url(/frontend/fonts/DB-Adman-X.ttf ) format("truetype");  
}
.navbar .dropdown-menu div[class*="col"] {
    margin-bottom:1rem;
}
.navbar .dropdown-menu {
   border:none;
   background-color: #1c1c1cc9 !important;
}
.img-menu {
    width: 70% !important;
    height: auto !important;
    margin-left: 0px !important;
    border-radius: 10px !important;
}
.d-2 {
    width: 100%; 
    background-color: transparent;
    color: #000; 
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 15%;
    padding-right: 15%;
}
.d-2 .row {
    text-align: center;
    justify-content: center;
}
.d-2 .d-3 {
    font-size: 20px !important;
    width: 30%;
}
.d-2 .d-3:hover {
    text-shadow: 0 0 15px #fff;
}
.nav-link {
    display: block;
    padding: .5rem 10px;
}
.header {
    color: #fff;
    z-index: 50;
    position: relative;
}
.header .head-top {
    padding: 10px 40px;
    background-color: #1c1c1c;
}
.header .head-top .top1 {
    width: 50%;
}
.header .head-top .top2 {
    width: 50%;
}
.header .head-top .top1-1 {
    font-family: DB;
    font-size: 28px;
    color: #cbb055;
    text-decoration: none;
}
.header .head-top .top2-1:hover {
    text-shadow: 0 0 10px #cbb055;
}
.header .t-regis {
    float: right;
}
.header .t-regis a {
    text-decoration: none;
}
.header .t-regis2 {
    color: #cbb055; 
    font-weight: bold; 
    font-size: 25px;
}
.header .head-top .right .row {
    text-align: right;
    float: right;
}
.header .head-top .right .log1 {
    width: 150px;
    border-radius: 10px;
    background-color: #676767;
    padding: 7px;
    color: #fff;
    border: none;
    font-size: 20px;
}
.header .head-top .right .log2 {
    width: 130px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    background-color: #676767;
    padding: 7px;
    color: #fff;
    border: none;
    font-size: 20px;
}
.header .head-top .right .re-1 {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: #676767;
    padding: 7px;
    color: #fff;
    border: none;
}
.header .head-top .right .re-2 {
    color: #cbb055;
    border-left: 1px solid #cbb055;
    padding-left: 10px;
    font-size: 20px;
}
.header .top2 .l1 {
    padding-top: 7px;
}
.header .top2 .t1 {
    font-size: 15px;
    color: #cbb055;
    border: 2px solid #cbb055;
    box-shadow: 0 0 5px #cbb055;
    text-shadow: 0 0 5px #cbb055;
}
.header .top2 .t1:hover {
    box-shadow: 0 0 10px #fff;
}
.header .top2 .t2 {
    font-size: 20px;
    color: #fff;
    padding-left: 10px;
    margin-left: 5px;
    background-color: #1dc21e;
    text-shadow: 0 0 5px #000;
    box-shadow: 0 0 5px rgb(0, 204, 0);
}
.header .top2 .t2:hover {
    box-shadow: 0 0 10px #fff;
}
.header .head-menu {
    background-color: #000;
}
.header .head-menu p {
    font-size: 28px;
}
.header .pic-lo {
    width: 15%;
}
.header .head-menu .h-menu img {
    width: 80%;
    margin-left: 30px;
}
.header .h-menu {
    text-align: left;
    width: 100%;
}
.header ::placeholder {
  color: #fff;
  opacity: 1; /* Firefox */
}
.header .h-menu a, .header .h-menu .nav-item .nav-link {
    font-family: DB;
    font-size: 28px;
    color: #cbb055;
}
.header .h-menu a:hover, .header .h-menu .nav-item .nav-link:hover {
    text-shadow: 0 0 5px #fff;
}
.header .dropdown-menu {
    background: #000;
}
.header .input-group {
    width: auto;
}
.mb {
    display: none;
}
.d-9 {
    width: 100%;
}
.header .top2 .t3 {
    font-size: 20px;
    color: #cbb055;
    border: 2px solid #cbb055;
    box-shadow: 0 0 5px #cbb055;
    text-shadow: 0 0 5px #cbb055;
    margin-right: 10px;
}
.header .top2 .t3:hover {
    box-shadow: 0 0 10px #fff;
}
@media screen and (min-width: 769px) {
.navbar, .header .h-menu .navbar {
        padding-top:0px;
        padding-bottom:0px;
        margin-left: -30px;
    }
.navbar .nav-item, .header .h-menu .navbar .nav-item {
        padding: 10px 10px;
        margin: 0;
    }
.navbar .dropdown {
        position:static;
    }
.navbar .dropdown-menu {
        width:100%;
        left:0;
        right:0;
        /*  height of nav-item  */
        top:97%;
   
        display:block;
        visibility: hidden;
        opacity: 0;
        transition: visibility 0.2s, opacity 0.3s linear;
    }
.navbar .dropdown:hover .dropdown-menu, .navbar .dropdown .dropdown-menu:hover {
        display:block;
        visibility: visible;
        opacity: 1;
        transition: visibility 0.2s, opacity 0.3s linear;
    }
.navbar .dropdown-menu {
        border: 1px solid rgba(0,0,0,.15);
        background-color: #fff;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1980px) {
.header .head-top .top1-1:hover {
        text-shadow: 0 0 10px #cbb055;
    }
.header .head-top .right .log1 {
        width: 190px;
    }
.header .head-menu .h-logo img {
        width: 60%;
    }
.header .h-menu i {
        font-size: 15px;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1600px) {
.header .head-menu .h-logo img {
        width: 60%;
        height: 90px;
    }
.header .head-top .top1-1 {
        font-size: 23px;
    }
.header .h-menu a, .header .h-menu .nav-item .nav-link {
        font-size: 25px;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1537px) {
.header .head-menu .h-menu img {
        margin-left: 20px;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1501px) {
.d-2 .d-3 {
        font-size: 17px !important;
        width: 25%;
    }
.img-menu {
        width: 55% !important;
    }
.header .head-top .top1-1 {
        font-size: 21px;
    }
.header .h-menu a, .header .h-menu .nav-item .nav-link {
        font-size: 23px;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1405px) {
.header .head-menu .h-logo img {
        height: 85px;
    }
.header .head-top .right .log1 {
        width: 170px;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1390px) {
.header .head-top .right .log1 {
        width: 160px;
    }
.header .head-top .right .log2 {
         width: 140px;
    }
.pic-lo {
        width: 30%;
    }
.header .head-top {
        padding: 10px 40px;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1370px) {
.header .head-top .top1-1 {
        font-size: 20px;
    }
.header .h-menu a, .header .h-menu .nav-item .nav-link {
        font-size: 20px;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1366px) {
.header .head-menu .h-menu img {
        width: 90%;
    }
.navbar, .header .h-menu .navbar {
        margin-left: -30px;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1325px) {
.header .head-top .right .log1 {
        width: 150px;
    }
.header .head-top .right .log2 {
        width: 130px;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1280px) {
.header .head-top .right .log2 {
        width: 127px;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1285px) {
.header .head-menu .h-logo img {
        width: 70%;
        height: 77px;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1270px) {
.header .head-top .top1 {
        width: 45%;
    }
.header .head-top .top2 {
        width: 55%;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1196px) {
.nav-link {
        padding: .5rem 7px;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1175px) {
.header .head-top .top1 {
        width: 40%;
    }
.header .head-top .top2 {
        width: 60%;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1128px) {
.nav-link {
        display: block;
        padding: .5rem 5px;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1085px) {
.header .head-menu .h-menu img {
        width: 100%;
    }
.header .top2 .t1 {
        font-size: 12px;
    }
.header .head-top .top1 {
        width: 30%;
    }
.header .head-top .top2 {
        width: 70%;
    }
.header .head-menu .h-logo {
        width: 30%;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1024px) {
.header .head-menu .h-menu img {
       width: 95%;
    }
.header .h-menu {
        width: 100%;
    }
.header .top2 .t2 {
        font-size: 20px;
    }
.header .pic-lo {
        width: 19%;
    }
.header .nav-link {
        padding: 10px;
    }
.header .nav-link {
        padding: 9px;
    }
.d-2 .d-3 {
        font-size: 17px !important;
        width: 25%;
    }
.img-menu {
        width: 55% !important;
    }
.pic-lo {
        width: 25%;
    }
}
@media only screen and (min-width: 769px) and (max-width: 1023px) {
.nav-link {
        display: block;
        padding: 0.5rem 2px;
    }
.header .head-top .top1 {
        width: 30%;
    }
.header .head-top {
        padding: 9px 15px;
        background-color: #1c1c1c;
    }
.header .head-menu .h-menu img {
        width: 95%;
        margin-left: 15px;
    }
.header .head-top .top1-1 {
        font-size: 20px;
    }
.header .head-top .top2 {
        width: 70%;
    }
.header .head-top .right .log1 {
        width: 120px;
    }
.header .head-top .right .log2 {
        width: 88px;
    }
.header .h-menu a, .header .h-menu .nav-item .nav-link {
        font-size: 20px;
    }
.header .h-menu a i {
        font-size: 13px;
    }
.pc1 {
        display: none;
    }
.mb1 {
        display: block;
    }
}
@media only screen and (min-width: 100px) and (max-width: 768px) {
.mb1 {
        display: none !important;
    }
.pc {
        display: none !important;
    }
.mb {
        display: block;
    }
.header .mainmenu .cd-1 .d1 {
        float: left !important;
        margin-top: 2px !important;
        position: relative !important;
        width: 8% !important;
    }
.header .mainmenu .cd-1 .d2 {
        position: relative !important;
        float: right !important;
    }
.mainmenu {
        display: none;
        position: fixed;
        width: 75%;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1;
        background-color: rgba(0,0,0,1);
    }
.navbar-nav .nav-link {
        font-size: 20px;
        font-family: DB;
        color: #fff;
    }
.navbar-nav .nav-link:active {
        background-color: #fff;
        color: #000;
    }
.header .dropdown-menu {
        left: 0px;
        background: #fff;
    }
.header .dropdown-menu a {
        font-size: 20px;
        font-family: DB;
        background: #fff;
    }
.header .navbar-toggler {
        color: #fff;
        padding-left: 0px;
        padding-top: 0px;
        padding-bottom: 0px;
        padding-right: 10px;
    }
.header .navbar-toggler i {
        font-size: 25px;
        padding-top: 5px;
    }
.header .head-top {
        padding: 10px;
        background-color: #000;
    }
.header .menu-mb img {
        width: 70%;
        margin-top: -10px;
    }
.header .head-top .top1 {
        width: 40%;
    }
.header .head-top .top2 {
        width: 60%;
        padding-top: 0px;
    }
.header .head-top .right .log1 {
        width: 13px;
        padding: 0px 7px;
        font-size: 20px;
    }
.header .head-top .right .log2 {
        width: 80px;
        padding: 0px 7px;
    }
.header .top2 .t1 {
        font-size: 28px;
    }
.header .top2 .t2 {
        font-size: 28px;
    }
.header .h-menu .nav-link {
        padding: 5px;
    }
.header .h-menu a, .header .h-menu .nav-item .nav-link {
        font-size: 17px;
        color: #cbb055;
    }
.header .h-menu i {
        font-size: 12px;
    }
.header .head-menu .h-logo {
        width: 15%;
    }
.header .h-menu {
        width: 85%;
    }
.header .head-menu .h-logo img {
        width: 100%;
        height: 70px;
        margin-left: 5px;
    }
.header .head-menu .pt-4 {
        padding-top: 10px !important;
    }
}
@media only screen and (min-width: 767px) and (max-width: 768px) {
.pc768 {
        display: block !important;
    }
.mb768 {
        display: none !important;
    }
}
@media only screen and (min-width: 415px) and (max-width: 767px) {
.header .head-top .top2 {
        width: 60%;
        padding-top: 0px;
    }
.header .top2 .t1 {
        font-size: 21px;
    }
.header .top2 .t2 {
        font-size: 22px;
    }
.header .mainmenu .cd-1 .d1 {
        float: left !important;
        margin-top: 2px !important;
        position: relative !important;
        width: 20% !important;
    }
.header .mainmenu .cd-1 .d2 {
        position: relative !important;
        float: right !important;
    }
}
@media only screen and (min-width: 100px) and (max-width: 470px) {
.header .head-top .top2 {
        width: 60%;
        padding-top: 0px;
    }
.header .top2 .t1 {
        font-size: 18px;
    }
.header .top2 .t2 {
        font-size: 18px;
    }
}
@media only screen and (min-width: 100px) and (max-width: 450px) {
.header .head-top .top2 {
        width: 60%;
        padding-top: 0px;
    }
.header .top2 .t1 {
        font-size: 18px;
    }
.header .top2 .t2 {
        font-size: 18px;
    }
.header .mainmenu .cd-1 .d1 {
        float: left !important;
        margin-top: 2px !important;
        position: relative !important;
        width: 20% !important;
    }
.header .mainmenu .cd-1 .d2 {
        position: relative !important;
        float: right !important;
    }
}
@media only screen and (min-width: 100px) and (max-width: 375px) {
.header .top2 .t3 {
        font-size: 16px;
    }
.header .t-regis2 {
        font-size: 18px;
    }
.header .top2 .t1 {
        font-size: 15px;
    }
.header .top2 .t2 {
        font-size: 15px;
    }
}
@media only screen and (min-width: 100px) and (max-width: 331px) {
.header .menu-mb img {
        width: 65%;
        margin-top: -10px;
    }
.header .top2 .t1 {
        font-size: 15px;
    }
.header .top2 .t2 {
        font-size: 15px;
    }
}