@font-face {
  font-family: 'KalatexaDisplay';
  src: url("https://www0.dek-d.com/assets/fonts/KaLaTeXaDisplay-Regular.eot");
  src: url("https://www0.dek-d.com/assets/fonts/KaLaTeXaDisplay-Regular.eot?#iefix&v=4.6.1") format("embedded-opentype"), url("https://www0.dek-d.com/assets/fonts/KaLaTeXaDisplay-Regular.woff2") format("woff2"), url("https://www0.dek-d.com/assets/fonts/KaLaTeXaDisplay-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'KalatexaDisplayLight';
  src: url("https://www0.dek-d.com/assets/fonts/KaLaTeXaDisplay-Light.eot");
  src: url("https://www0.dek-d.com/assets/fonts/KaLaTeXaDisplay-Light.eot?#iefix&v=4.6.1") format("embedded-opentype"), url("https://www0.dek-d.com/assets/fonts/KaLaTeXaDisplay-Light.woff2") format("woff2"), url("https://www0.dek-d.com/assets/fonts/KaLaTeXaDisplay-Light.woff") format("woff");
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: 'KalatexaDisplay';
  src: url("https://www0.dek-d.com/assets/fonts/KaLaTeXaDisplay-Bold.eot");
  src: url("https://www0.dek-d.com/assets/fonts/KaLaTeXaDisplay-Bold.eot?#iefix&v=4.6.1") format("embedded-opentype"), url("https://www0.dek-d.com/assets/fonts/KaLaTeXaDisplay-Bold.woff2") format("woff2"), url("https://www0.dek-d.com/assets/fonts/KaLaTeXaDisplay-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'KalatexaDisplayBlack';
  src: url("https://www0.dek-d.com/assets/fonts/KaLaTeXaDisplay-Black.eot");
  src: url("https://www0.dek-d.com/assets/fonts/KaLaTeXaDisplay-Black.eot?#iefix&v=4.6.1") format("embedded-opentype"), url("https://www0.dek-d.com/assets/fonts/KaLaTeXaDisplay-Black.woff2") format("woff2"), url("https://www0.dek-d.com/assets/fonts/KaLaTeXaDisplay-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: 'KalatexaText';
  src: url("https://www0.dek-d.com/assets/fonts/KaLaTeXaText-Bold.eot");
  src: url("https://www0.dek-d.com/assets/fonts/KaLaTeXaText-Bold.eot?#iefix&v=4.6.1") format("embedded-opentype"), url("https://www0.dek-d.com/assets/fonts/KaLaTeXaText-Bold.woff2") format("woff2"), url("https://www0.dek-d.com/assets/fonts/KaLaTeXaText-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'KalatexaText';
  src: url("https://www0.dek-d.com/assets/fonts/KaLaTeXaText-Regular.eot");
  src: url("https://www0.dek-d.com/assets/fonts/KaLaTeXaText-Regular.eot?#iefix&v=4.6.1") format("embedded-opentype"), url("https://www0.dek-d.com/assets/fonts/KaLaTeXaText-Regular.woff2") format("woff2"), url("https://www0.dek-d.com/assets/fonts/KaLaTeXaText-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
#main {
    background-color: #fff;
}
.tc-head {
    background: url(../images/home/bg-header-m.png) center 0 repeat-x #ff9700;
    background-size: cover;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: -1px;
}
.logo {
    display: block;
    width: 100%;
    padding: 10px;
    max-width: 300px;
    margin: auto;
}
.head-detial {
    padding: 30px 20px 0;
    text-align: center;
}
.title span:first-of-type {
    font-family: 'KalatexaDisplay', sans-serif;
    font-size: 26px;
    font-weight: bold;
    color: #f37a01;
}
.title .txt-limit {
    font-size: 20px;
    color: #f37a01;
    font-family: 'KalatexaDisplay', sans-serif;
    margin-bottom: 5px;
}
.title span {
    display: block;
    font-size: 16px;
}
.text2 {
    color: #666;
    padding-top: 10px;
    font-size: 16px;
}
.pe-btn span:first-of-type {
    font-family: 'KalatexaDisplay', sans-serif;
    font-weight: bold;
}
.pe-btn span:nth-last-of-type(1) {
    font-size: 14px;
    width: 100%;
}
.pe-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 230px;
    height: 55px;
    flex-wrap: wrap;
    background-color: #f37a01;
    color: #ffffff;
    border-radius: 6px;
    padding: 10px;
    font-size: 16px;    
    margin: 10px;
}
.pe-btn.-white {
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
}
.pe-btn.-white span:nth-last-of-type(1) {
    color: #666;
}
table {
    width: 100%;
}
thead {
    background-color: #f37a01;
    color: #fff;
}
thead th {
    border-left: 1px solid rgba(255,255,255,0.2);
}
td {
    font-family: 'KalatexaText', sans-serif;
}
th,
td {
    padding: 5px;
    text-align: center;
    line-height: 1.4em;
    font-size: 16px;
}
th {    
    font-family: 'KalatexaDisplay', sans-serif;
    font-weight: normal;
    padding: 10px;
}
.head-zone {
    background-color: #333;
    color: #fff;    
    font-size: 20px;
    padding: 5px;
}
.bangkok-zone .school-name {
    width: calc(125px + 130px);
}
.bangkok-zone.a-level .school-name {
	width: 310px;
}
.school-name {
    text-align: left;
    width: 130px;
}
.school-name span {
    display: block;
}
.school-name .near {
    font-size: 14px;
    color: #a8a8a8;
}
.location-link .name a {
    background-color: #333;
    font-size: 14px;
    color: #fff;
    line-height: 25px;
    padding: 0 10px;
    border-radius: 3px;
    width: 120px;
}
.location-link .name .-disable {
    background-color: #ccc;
    pointer-events: none;
}
.local-zone thead {
    display: none;
}
.s-num {
    color: #8bc321;
}
.province-name {
    text-align: left;
    font-weight: bold;
    width: 120px;
}
.title-zone {
    background-color: #f37a01;
    padding: 5px;
    color: #fff;
    font-size: 20px;
}
.table-wrapper>.fixed-column {
    position: absolute;
    display: inline-block;
    width: auto;
    border-right: 1px solid #ddd;
}
.seat-number.a-level {
    width: 65px;
}
.a-level thead th {
    width: 65px;
}
thead th:first-child {
    width: auto !important;
}
.-red {
    color: #ff3333;
}
.-green {
    color: #8bc321;
}
.-orange{
    color: #f37a01
}
.location-link {
    width: 120px;
}
.button-block {
    display: flex;    
    margin: 20px auto;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    max-width: 530px;
    width: 100%;
}
.short-name{
    background-color: #333;
    color: white;
}

td.seat-number {
    width: 100px;
}
@media screen and (max-width: 480px){
    .table-wrapper {
        overflow-x: scroll;
        overflow-y: hidden;    /* Disable vertical scroll on the sheet */
        white-space: nowrap;   /* Prevent wrapping */
        max-width: 100vw;
    }
    table {
        width: 750px;
    }
}
@media screen and (min-width: 1024px){
    body {
        background-color: #ff9700;
        opacity: 1;
        background-size: 14px 14px;
        background-image: repeating-linear-gradient(45deg, #ffa200 0, #ffa200 1.4000000000000001px, #ff9700 0, #ff9700 50%);
    }
    .tc-head {
        background: url(../images/home/bg-header.png) center 0 repeat-x #ff9700;
    }
    #main {
        max-width: 1070px;
        margin: 0 auto;
    }
    .logo {
        max-width: 360px;
    }
    .title span:first-of-type {
        font-size: 32px;
    }
    .bangkok-zone .school-name {
        width: calc(125px + 190px);
    }
    .school-name {
        text-align: left;
        width: 190px;
    }
    .location-link {
        width: 120px;
    }
    table {
        max-width: 900px;
        margin: 0 auto;
    }
    .seat-number {
        width: 100px;
    }
}