:root {
    --orange: #FF9614;
    --black: #130f40;
    --red: #ef5c27;
    --light-colour: #666;
    --box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    --border: .2rem solid rgba(0, 0, 0, .1);
    --outline: .1rem solid rgba(0, 0, 0, .1);
    --outline-hover: .2rem solid var(--black);
    --tp-b: #EFEFEF;
    --tp-s: #CBCBCB;
    --gray-bg: #F2F2F2;
    --white: #ffff;
}

@font-face {
    font-family: "PSLXText";
    src: url(../font/PSLXText.TTF) format("truetype");
}

body {
    font-family: 'PSLXText', sans-serif !important;
    background: var(--tp-b) !important;
}

h2,
h3,
h4,
h5,
h6,
h1 {
    font-family: 'PSLXText', sans-serif !important;
}

th,
td,
p,
span,
a,
li,
label,
div {

    font-family: 'PSLXText', sans-serif !important;
}

header {
    float: left;
    width: 100%;
}

.navbar {

    float: left;
    width: 100%;
    /* padding-left: 1rem; */
    /* padding-right: 25px; */
    text-align: right;
    box-shadow: 0px 3px 10px 1px rgb(195, 195, 195);
}

.tap-logo {
    background: var(--orange);
    color: #ffff;
    text-align: center;
}

.head-fix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

h2 {
    color: #282F35;
    font-size: 20px;
    letter-spacing: 1px;
    margin: 0 !important;
    font-size: 22px !important;

}

p {
    color: #666666;

    line-height: 1.5;
    margin: 20px;
}

.main {
    /* max-width: 640px; */
    margin: 0 auto;


}

.list {
    margin: 100px 0;
    overflow: hidden;
    padding: 0;
}

.list li {
    list-style-type: none;
    padding: 0;
}

.list-heading {
    background: var(--tp-b);
    border: none;
    border-bottom: solid 1px #F2F2F2;
    cursor: pointer;
    display: block;
    outline: none;
    padding: 1rem;
    position: relative;
    text-align: left;
    width: 100%;
    color: var(--orange);

}

.list-heading h2 {
    font-size: 25px !important;
}

/* .list-heading:before {
    background: #ff4d4d;
    content: '';
    height: 2px;
    margin-right: 37px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: rotate(-90deg);
    transition: all 0.2s ease-in-out;
    width: 14px;
}

.list-heading:after {
    background: #ff4d4d;
    content: '';
    height: 2px;
    margin-right: 37px;
    position: absolute;
    right: 0;
    top: 50%;
    width: 14px;
} */


.list-heading.active:before {
    transform: rotate(0deg);
}

.list-heading.active h2,
.list-heading:focus h2 {
    position: relative;
    color: var(--orange);
}

.list-sub {
    background: #d6d6d6;
    display: none;
    overflow: hidden;
}

.iconn {
    width: 2rem;
    height: 2rem;
}







/* test */
.list-heading-sub {
    background: var(--tp-s);
    border: none;
    border-bottom: solid 1px #F2F2F2;
    cursor: pointer;
    display: block;
    outline: none;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1rem;
    padding-right: 2rem;
    position: relative;
    text-align: left;
    width: 100%;
}

.list-heading-sub:before {
    background: var(--orange);
    content: '';
    height: 2px;
    margin-right: 1.3rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: rotate(-90deg);
    transition: all 0.2s ease-in-out;
    width: 14px;
}

.list-heading-sub:after {
    background: var(--orange);
    content: '';
    height: 2px;
    margin-right: 1.3rem;
    position: absolute;
    right: 0;
    top: 50%;
    width: 14px;
}

.list-heading-sub.active:before {
    transform: rotate(0deg);
}

.list-heading-sub h2 {
    color: #282F35;
}

.landding-page {
    background: var(--white);
    /* transition-delay: 10s; */
    overflow-y: auto;
    max-height: calc(100vh - 6rem);

}


.landding-page img {
    width: 100% !important;
    height: auto !important;
    /* margin-right: -0.5rem;
    margin-left: -0.5rem; */
}

.iconn-sub {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: -0.5rem;
}

.list-text {
    color: var(--red);
    text-align: center !important;
    background: var(--white);
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 1rem;

}

.list-text a {
    text-align: center !important;
    color: var(--red);
    font-style: italic;

}





/*************************************** media **************************************/
@media(min-width: 360px) and (max-width: 940px) {

    /* .list-heading.active {
    position: fixed;
    top: 6.5rem;
    left: 0;
    width: 100%;
    z-index: 9999;
  } */
    .navbar {
        float: left;
        width: 100%;
        /* padding-left: 1rem; */
        /* padding-right: 25px; */
        text-align: right;
        box-shadow: 0px 3px 10px 1px rgb(195, 195, 195);
    }

    .navbar a {
        padding-bottom: 0;
        padding-top: 0;

    }

    .navbar img {
        width: 10rem;
    }

    .list {
        /* margin: 80px 0; */
        overflow: hidden;
        padding: 0;
        margin-top: 80px;
        margin-bottom: 0rem;
    }

    .list-heading {
        /* padding-top: 0.5rem; */
        padding-left: 1rem;
        padding-bottom: 0.5rem;
    }

    #list-big1 {
        /* margin-top: 1rem; */
    }

    /* .list-heading,
    .list-heading-sub {
        overflow: hidden;
    } */
    .landding-page {
        background: var(--white);
        /* transition-delay: 10s; */
        overflow-y: auto;
        max-height: calc(85vh - 7rem);
    
    }


}



/* 1280 */
@media(min-width: 950px) and (max-width: 1280px) {
    body {
        position: relative;
    }

    .main {
        max-width: 410px;
        margin: 0 auto;
        float: left;
        display: inline;
    }

    .list {
        /* position: relative; */
        /* margin-top: 0; */
        position: static;
        margin-bottom: 0rem;
    }


    .landding-page {
        position: absolute;
        /* padding-left: 410px; */
        /* width: 100%; */
        display: flex;
        flex-direction: column;
        top: 6rem;
        left: 410px;
        margin-top: 1rem;
        /* lock */
        overflow-y: auto;
        max-height: calc(100vh - 6rem);
    }

    .landding-page .list {
        order: -1;
    }

    .list-heading-sub {
        display: inline;
    }
    /* #list-sub1,
    #list-small1,
    #myDiv1{
        display: inline-block;
    }  */

}

@media(min-width: 1281px) {
    body {
        position: relative;
    }

    .main {
        max-width: 560px;
        margin: 0 auto;
        float: left;
        display: inline;
    }

    .list {
        /* position: relative; */
        /* margin-top: 0; */
        position: static;
        margin-bottom: 0rem;
    }


    .landding-page {
        position: absolute;
        /* padding-left: 410px; */
        /* width: 100%; */
        display: flex;
        flex-direction: column;
        top: 6rem;
        left: 610px;
        right: 50px;
        margin-top: 1rem;
        /* lock */
        overflow-y: auto;
        max-height: calc(100vh - 6rem);
    }

    .landding-page .list {
        order: -1;
    }

    .list-heading-sub {
        display: inline;
    }
    /* #list-big1,*/

    /* หน้าแรก pc */
    /* #list-sub1,
    #list-small1,
    #myDiv1{
        display: inline-block;
    }  */
    

}