@import "noto_sans_thai/noto_sans_thai.css";

/* ====== Basic Setting ====== */

* {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
    -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important;
    outline: none !important;
}

html {
    -webkit-user-select: none;
}

body {
    -webkit-touch-callout: none;
    /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;
    /* prevent webkit from resizing text to fit */
    /*-webkit-user-select: none;                   prevent copy paste, to allow, change 'none' to 'text' */
    height: 100%;
    width: 100vw;
    margin: 0px;
    padding: 0px;
    font-family: 'noto_sans_thai', 'Poppins', -apple-system, BlinkMacSystemFont, Arial, Helvetica, sans-serif;
    /* font-family: -apple-system, BlinkMacSystemFont, Arial, Helvetica, sans-serif; */
    position: relative;
    color: #404040;
    background-color: #F5F7F7;
    letter-spacing: -0.4px;
    line-height: 100%;
    overflow: hidden;
}

@media (orientation: landscape) {
    body {
        padding-left: calc(0px + env(safe-area-inset-left));
        padding-right: calc(0px + env(safe-area-inset-right));
    }
}

input, section, textarea, select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
     font-family: 'noto_sans_thai', 'Poppins', -apple-system, BlinkMacSystemFont, Arial, Helvetica, sans-serif;
    /* font-family: -apple-system, BlinkMacSystemFont, Arial, Helvetica, sans-serif; */
   
}

.max_layout_section{
    width: 100%;
    height: 100%;
    position: fixed;
    max-width: 1680px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.main_header_section{
    width: 100%;
    height: 54px;
    position: absolute;
    top: 0px;
    padding-left: 24px;
    padding-right: 24px;
    background: radial-gradient(113.09% 100% at 50% 0%, #FFF 35%, rgba(255, 255, 255, 0.50) 100%), linear-gradient(90deg, rgba(71, 191, 250, 0.80) 0%, rgba(39, 159, 249, 0.80) 10.06%, rgba(83, 139, 249, 0.80) 20.12%, rgba(154, 124, 249, 0.80) 30.18%, rgba(219, 80, 196, 0.80) 40.23%, rgba(230, 89, 180, 0.80) 50.29%, rgba(237, 80, 143, 0.80) 60.35%, rgba(246, 76, 93, 0.80) 70.41%, rgba(250, 91, 61, 0.80) 80.47%, rgba(251, 113, 52, 0.80) 90.53%, rgba(252, 154, 49, 0.80) 100.58%);
    display: grid;
    grid-template-columns: 127px auto;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.main_header_section_popup{
    width: 100%;
    height: 54px;
    position: relative;
    top: 0px;
    display: grid;
    grid-template-columns: 127px auto;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
.main_body_section_popup{
    margin-top: 10px;
    padding: 24px;
    width: 100%;
    height: 100%;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.main_body_section{
    width: 100%;
    height: calc(100vh - 54px);
    position: fixed;
    top: 54px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* scroll-snap-type: y proximity; */
}

/* .main_body_section > div{
    scroll-snap-align: start;
} */

/* main body scroll */
.main_body_section::-webkit-scrollbar {
    width: 0px;
}
.main_body_section::-webkit-scrollbar {
    width: 7px;
}
.main_body_section::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10rem;
    border: 1px solid #fff;
}
.main_body_section::-webkit-scrollbar-track-piece:start {
    background: transparent;
}
.main_body_section::-webkit-scrollbar-track-piece:end {
    background: transparent;
}

.rexx_icon_main_menu{
    width: 127px;
    height: 38px;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/main_icon/REXX_icon_main.png);
    cursor: pointer;
}

.rexx_icon_main{
    width: 320px;
    height: 96px;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/main_icon/REXX_icon_main.png);
}

.flex_layout_row{
    display: flex;
    flex-direction: row;
}

.flex_layout_column{
    display: flex;
    flex-direction: column;
}

.grid_2layout{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.gap4{
    gap: 4px;
}
.gap8{
    gap: 8px;
}
.gap12{
    gap: 12px;
}
.gap16{
    gap: 16px;
}
.gap18{
    gap: 18px;
}
.gap20{
    gap: 20px;
}
.gap22{
    gap: 22px;
}
.gap24{
    gap: 24px;
}
.gap32{
    gap: 32px;
}
.gap40{
    gap: 40px;
}
.gap50{
    gap: 50px;
}
.gap56{
    gap: 56px;
}
.gap60{
    gap: 60px;
}
.gap74{
    gap: 74px;
}

.layout_center{
    align-self: center;
}
.layout_right{
    align-self: flex-end;
}
.layout_align_right{
    justify-content: end;
}
.align_center{
    align-items: center;
}

/* space */
.space_top_60{
    margin-top: 60px;
}


/* text */
.t72{
    font-size: 72px;
    color: #000000;
    line-height: 80px;
}
.t60{
    font-size: 60px;
    color: #000000;
    line-height: 70px;
    transition: 0.2s;
}
.t56{
    font-size: 56px;
    color: #000000;
    line-height: 74px;
}
.t40{
    font-size: 40px;
    color: #000000;
    line-height: 48px;
}
.t36{
    font-size: 36px;
    color: #000000;
    line-height: 44px
}
.t24{
    font-size: 24px;
    color: #000000;
    line-height: 32px
}
.t22{
    font-size: 22px;
    color: #000000;
    line-height: 28px
}
.t20{
    font-size: 20px;
    color: #000000;
    line-height: 24px
}
.t18{
    font-size: 18px;
    color: #000000;
    line-height: 26px
}
.t16{
    font-size: 16px;
    color: #000000;
    line-height: 24px
}
.t13{
    font-size: 13px;
    color: #000000;
}
.t12{
    font-size: 12px;
    line-height: 16px;
    color: #000000;
}

.t_medium{
    font-weight: 500;
}
.t_sb{
    font-weight: 600;
}
.t_bold{
    font-weight: bold;
}

.t_mid{
    text-align: center;
}

.t_right{
    text-align: end;
}

.t_black{
    color: #000000;
}

.t_gray{
    color: #5D6366;
}

.t_white{
    color: #FFFFFF;
}

.t_link{
    cursor: pointer;
}

.t_link:hover{
    color: #6CC5EB;
    text-decoration: underline;
}

.t_underline{
    text-decoration: underline;
}

.normal_btn{
    display: flex;
    width: fit-content;
    min-height: 42px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: #000000;
    font-size: 14px;
    /* font-weight: 600; */
    color: #ffffff;
    border-radius: 8px;
    transition: 0.5s;
    box-sizing: border-box;
    padding: 7px 20px;
    cursor: pointer;
    white-space: nowrap;
    width: 100%;
}
.normal_btn:hover{
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.15);
}

.gradient_btn{
    display: flex;
    width: fit-content;
    min-height: 30px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: radial-gradient(ellipse at bottom, #232729, #363d40);
    font-size: 14px;
    /* font-weight: 600; */
    color: #ffffff;
    border-radius: 8px;
    transition: 0.5s;
    border: 1px solid rgba(170, 83, 83, 0.15);
    box-sizing: border-box;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.15);
    padding: 7px 20px;
    cursor: pointer;
    white-space: nowrap;
}

.gradient_btn.btn_circle{
    padding: 12px 24px;
    border-radius: 28px;
    font-size: 16px;
    line-height: 24px;
    min-width: 144px;
}

.gradient_btn:hover {
    background: radial-gradient(ellipse at bottom, #1784b3, #002d40);
    box-shadow: 0px 6px 12px rgba(23, 132, 179, 0.5);
    transition: 0.2s;
  }

.gradient_btn.main_title_btn:hover{
    background: radial-gradient(50% 100% at 50.01% 100%, rgba(35, 39, 41, 0.50) 0%, #353E42 100%);
    box-shadow: 0px 6px 12px rgba(23, 132, 179, 0.5);
    transition: 0.2s; 
}
.gradient_btn.btn_full{
    width: 100%;
}

.main_menu{
    color: #212729;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 18px;
    align-self: center;
    cursor: pointer;
}

.main_menu:hover{
    color: #6CC5EB;
    text-decoration: underline;
}

.main_menu_popup{
    color: #212729;
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

/* page1 leyer */
.page1_text_layout{
    transition: 0.2s;
    width: 68%;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
    align-items: center;
}
.page1_box_layout{
    transition: 0.2s;
    height: 100%;
    width: 100%;
    min-height: 627px;
    max-height: 900px;
    position: relative;
    background-image: url(../img/decoration/p1_bg.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
}
.page1_dec1{
    transition: 0.2s;
    background-image: url(../img/decoration/p1_1.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    width: 56%;
    min-width: 565px;
    aspect-ratio: 565 / 214;
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
}
.page1_dec2{
    transition: 0.2s;
    background-image: url(../img/decoration/p1_2.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    width: 75%;
    min-width: 704px;
    aspect-ratio: 704 / 93;
    position: absolute;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%);
}
.page1_dec3{
    transition: 0.2s;
    background-image: url(../img/decoration/p1_3.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    width: 84%;
    min-width: 833px;
    aspect-ratio: 833 / 89;
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
}
.page1_dec4{
    transition: 0.2s;
    background-image: url(../img/decoration/p1_4.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    width: 16%;
    min-width: 177px;
    aspect-ratio: 177 / 434;
    max-width: 205px;
    position: absolute;
    top: 44px;
    left: 28px;
}
.page1_dec5{
    transition: 0.2s;
    background-image: url(../img/decoration/p1_5.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    width: 16%;
    min-width: 170px;
    aspect-ratio: 170 / 434;
    max-width: 205px;
    position: absolute;
    top: 44px;
    right: 28px;
}

/* page2 layer */
.page2_box_layout{
    transition: 0.2s;
    width: 100%;
    height: fit-content;
    /* background-image: url(../img/decoration/p2_bg.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover; */
    position: relative;
    min-height: 520px;
    background-color: #FFFFFF;
    padding-top: 56px;
}
.page2_text_layout{
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    gap: 26px;
    left: calc(50% + 32px);
    position: relative;
    max-width: 440px;
    padding-top: 50px;   
}
.page2_dec1{
    transition: 0.2s;
    background-image: url(../img/decoration/p2_1.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    width: 56%;
    min-width: 1438px;
    aspect-ratio: 1438 / 483;
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
}
.page2_bg2{
    transition: 0.2s;
    position: absolute;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, #FFF 15%, #FFF 100%);
    width: 579px;
    height: 100%;
    left: calc(50% - 68px);
}
.page2_dec2{
    transition: 0.2s;
    background-image: url(../img/decoration/p2_2.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    min-width: 1131px;
    aspect-ratio: 1131 / 510;
    position: absolute;
    top: 96px;
    left: 48%;
    transform: translateX(-50%);
}
.page2_dec3{
    transition: 0.2s;
    background-image: url(../img/decoration/p2_3.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    width: 68px;
    aspect-ratio: 1 / 1;
    position: absolute;
    top: 23px;
    left: calc(50% - 64px);
}
.page2_dec4{
    transition: 0.2s;
    background-image: url(../img/decoration/p2_4.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    width: 106px;
    aspect-ratio: 1 / 1;
    position: absolute;
    bottom: -106px;
    right: 20px;
}

/* page3 layer */
.page3_box_layout{
    transition: 0.2s;
    width: 100%;
    height: fit-content;
    position: relative;
    min-height: 659px;
    background-color: #FFFFFF;
}
.page3_text_layout{
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    width: 80%;
    max-width: 844px;
    padding-top: 20px;  
    left: 50%;
    transform: translateX(-50%);
    position: absolute; 
}
.page3_dec1{
    transition: 0.2s;
    background-image: url(../img/decoration/p3_1.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    width: 1372px;
    aspect-ratio: 1372 / 438;
    position: absolute;
    left: 52%;
    transform: translateX(-50%);
    bottom: 10px;
}
.page3_dec2_box{
    transition: 0.2s;
    position: absolute;
    width: 800px;
    height: 361px;
    max-width: 800px;
    bottom: 56px;  
    left: 50%;
    transform: translateX(-50%);
}
.page3_dec2_1{
    transition: 0.2s;
    background-image: url(../img/decoration/p3_2_1.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    width: 111px;
    aspect-ratio: 160 / 325;
    position: absolute;
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
}
.page3_dec2_2{
    transition: 0.2s;
    background-image: url(../img/decoration/p3_2_2.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    width: 111px;
    aspect-ratio: 160 / 325;
    position: absolute;
    top: 50%;
    left: 142px;
    transform: translateY(-50%);
    z-index: 11;
}
.page3_dec2_3{
    transition: 0.2s;
    background-image: url(../img/decoration/p3_2_3.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    width: 163px;
    aspect-ratio: 160 / 325;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
}
.page3_dec2_4{
    transition: 0.2s;
    background-image: url(../img/decoration/p3_2_4.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    width: 111px;
    aspect-ratio: 160 / 325;
    position: absolute;
    top: 50%;
    right: 142px;
    transform: translateY(-50%);
    z-index: 13;
}
.page3_dec2_5{
    transition: 0.2s;
    background-image: url(../img/decoration/p3_2_5.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    width: 111px;
    aspect-ratio: 160 / 325;
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
}
.page3_dec2_6_tl{
    transition: 0.2s;
    background-image: url(../img/decoration/p3_2_6_tl.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    width: 329px;
    aspect-ratio: 329 / 166;
    position: absolute;
    top: 0px;
    right: 278px;
    z-index: 12;
}
.page3_dec2_6_tr{
    transition: 0.2s;
    background-image: url(../img/decoration/p3_2_6_tr.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    width: 342px;
    aspect-ratio: 342 / 171;
    position: absolute;
    top: 0px;
    left: 37%;
    z-index: 10;
}
.page3_dec2_6_bl{
    transition: 0.2s;
    background-image: url(../img/decoration/p3_2_6_bl.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    width: 254px;
    aspect-ratio: 254 / 164;
    position: absolute;
    bottom: 0px;
    right: 39%;
    z-index: 10;
}
.page3_dec2_6_br{
    transition: 0.2s;
    background-image: url(../img/decoration/p3_2_6_br.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    width: 254px;
    aspect-ratio: 254 / 164;
    position: absolute;
    bottom: 0px;
    left: 39%;
    z-index: 12;
}

/* page4 layer */
.page4_box_layout{
    transition: 0.2s;
    width: 100%;
    height: fit-content;
    position: relative;
    min-height: 680px;
    background-color: #FFFFFF;
}
.page4_text_layout{
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 11;
    position: relative;
    left: calc(50% - 471px);
    padding-top: 26px;
    width: fit-content;
}
.page4_dec1{
    transition: 0.2s;
    background-image: url(../img/decoration/p4_1.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    width: 366px;
    aspect-ratio: 366 / 397;
    position: absolute;
    left: calc(50% + 328px);
    top: 0px;
    z-index: 10;
}
.page4_swipe_box{
    transition: 0.2s;
    overflow-y: hidden;
    overflow-x: scroll;
    scrollbar-width: none;
    z-index: 11;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    scroll-padding: 0% 32px;
    padding: 0% 32px;
    box-sizing: border-box;
    margin-top: 32px;
    max-width: 1200px;
    scroll-behavior: smooth;
}
.page4_swipe{
    transition: 0.2s;
    display: grid;
    grid-template-columns: repeat(auto-fill, 275px);
    gap: 12px;
    width: 1136px;
    position: relative;
}
.page4_card{
    transition: 0.2s;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 200px auto;
    gap: 12px;
}
.page4_card_pic{
    transition: 0.2s;
    width: 100%;
    height: 100%;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    border-radius: 8px;
}
.page4_icon{
    transition: 0.2s;
    width: 84px;
    height: 36px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    position: absolute;
    top: 611px;
    left: calc(50% + 288px);
}


/* page5 layer */
.page5_box_layout{
    transition: 0.2s;
    height: 100%;
    width: 100%;
    min-height: 680px;
    max-height: 900px;
    position: relative;
    background-color: #FFFFFF;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
}
.page5_text_layout{
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    min-width: 1216px;
    max-width: 1680px;
    aspect-ratio: 1216 / 220;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
}
.page5_dec1{
    transition: 0.2s;
    background-image: url(../img/decoration/p5_1.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    min-width: 1216px;
    max-width: 1680px;
    aspect-ratio: 1216 / 220;
    width: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0px;
    z-index: 10;
}
.page5_swipe_box{
    transition: 0.2s;
    overflow-y: hidden;
    overflow-x: scroll;
    scrollbar-width: none;
    z-index: 11;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    scroll-padding: 0% 97px;
    padding: 0% 97px;
    box-sizing: border-box;
    margin-top: 32px;
    top: calc(50% - 200px);
    scroll-behavior: smooth;
}
.page5_swipe{
    transition: 0.2s;
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: fit-content;
    position: relative;
}
.page5_card{
    transition: 0.2s;
    width: 100%;
    min-width: 398px;
    height: 100%;
    display: grid;
    grid-template-rows: 245px auto;
    gap: 12px;
}
.page5_card_pic{
    transition: 0.2s;
    width: 100%;
    height: 100%;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    border-radius: 8px;
}
.page5_icon{
    transition: 0.2s;
    width: 84px;
    height: 36px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    position: absolute;
    top: calc(50% + 250px);
    left: calc(50% + 288px);
}

/* page6 layer */
.page6_box_layout{
    transition: 0.2s;
    width: 100%;
    aspect-ratio: 1440 / 900;
    min-height: 680px;
    max-height: 900px;
    background-color: #F5F7F7;
    position: relative;
    overflow: hidden;
}
.page6_dec1{
    transition: 0.2s;
    width: 100%;
    position: absolute;
    aspect-ratio: 1440 / 897;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/decoration/p6_1.png);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.page6_text_layout{
    transition: 0.2s;
    width: 480px;
    position: relative;
    left: calc(50% - 411px);
    top: 0px;
    gap: 20px;
    box-sizing: border-box;
    padding-bottom: 40px;
    height: 100%;
}

/* page7 layer */
.page7_box_layout{
    transition: 0.2s;
    height: 100%;
    width: 100%;
    min-height: 680px;
    max-height: 900px;
    position: relative;
    background-color: #F5F7F7;
}
.page7_dec1{
    transition: 0.2s;
    width: 100%;
    position: absolute;
    aspect-ratio: 1447 / 743;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/decoration/p7_1.png);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.page7_swipe_box{
    transition: 0.2s;
    overflow-y: hidden;
    overflow-x: scroll;
    scrollbar-width: none;
    z-index: 11;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    scroll-padding: 0px calc(50% - (930px / 2));
    padding: 0px calc(50% - (930px / 2));
    box-sizing: border-box;
    top: 80px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    scroll-behavior: smooth;
}
.page7_pic1{
    transition: 0.2s;
    width: 930px;
    min-width: 930px;
    aspect-ratio: 930 / 495;
    border-radius: 10px;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/picture/page7_pic1.png);
}
.page7_pic2{
    transition: 0.2s;
    width: 930px;
    min-width: 930px;
    aspect-ratio: 930 / 495;
    border-radius: 10px;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/picture/page7_pic2.png);
    position: relative;
}
.veiw_pic2{
    /* display: none !important; */
    transition: 0.2s;
    border-radius: 40px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #FFFFFF;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 9px;
    padding: 2px 12px;
    width: fit-content;
    position: absolute;
    right: 34px;
    bottom: 24px;
    align-items: center;
    cursor: pointer;
    transition: 0.5s;
}
.veiw_pic2:hover{
    transition: 0.2s;
    background: radial-gradient(ellipse at bottom, #8bd1ef, #ffffff 70%);
    transition: 0.2s;
}
.page7_pic3{
    transition: 0.2s;
    width: 930px;
    min-width: 930px;
    aspect-ratio: 930 / 495;
    border-radius: 10px;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/picture/page7_pic3.png);
}
.page7_icon{
    transition: 0.2s;
    width: 84px;
    height: 36px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    position: absolute;
    top: calc(80px + 495px + 16px);
    left: calc(50% + 380px);
}

/* page8 leyer */
.page8_box_layout{
    transition: 0.2s;
    width: 100%;
    aspect-ratio: 1024 / 840;
    background-color: #FFFFFF;
    position: relative;
    min-height: 680px;
    max-height: 744px;
}
.page8_dec1{
    transition: 0.2s;
    width: 100%;
    aspect-ratio: 451 / 311;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/decoration/p8_1.png);
    max-width: 600px;
}
.page8_text_layout{
    transition: 0.2s;
    width: 90%;
    position: absolute;
    left: 5%;
    top: 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    box-sizing: border-box;
}
.contact_info_layout_mobile{
    display: none;
}

/* bot layout */
.bot_layout{
    transition: 0.2s;
    width: 100%;
    background-color: #000000;
    position: relative;
    padding: 40px 100px;
    height: 132px;
    max-height: 132px;
    box-sizing: border-box; 
}
.bot_layout_text{
    transition: 0.2s;
    width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
}

.line_divide{
    transition: 0.2s;
    background: #CCC;
    width: 100%;
    height: 1px;
}

.institute_scroll_section{
    transition: 0.2s;
    height: 80%;
    width: 318px;
    overflow: hidden;
    position: absolute;
    left: calc(50% + 94px);
    will-change: transform; /* We should be nice to the browser - let it know what we're going to animate. */
    top: 50%;
    transform: translateY(-50%);
}

.institute_scroll_section::-webkit-scrollbar {
    display: none;
}

.scroll_clip_top{
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, #F5F7F7 0%, rgba(245, 247, 247, 0.00) 100%);
    position: sticky;
    top: 0px;
    z-index: 100;
}
.scroll_clip_bot{
    width: 100%;
    height: 100px;
    background: linear-gradient(0deg, #F5F7F7 0%, rgba(245, 247, 247, 0.00) 100%);
    position: sticky;
    bottom: 0px;
    z-index: 100;
}

.institute_section{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    animation: scrolling 10s linear infinite;
}

.institute_logo{
    width: 100%;
    aspect-ratio: 1 / 1;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
}

@keyframes scrolling {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-100%);
    }
}

.more_icon{
    width: 8px;
    height: 14px;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/icon/more.svg);
}

.burger_icon{
    width: 38px;
    height: 38px;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/icon/burger.svg);
    display: none;
}

.close_pop_icon{
    width: 38px;
    height: 38px;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/icon/close_pop.svg);
}

.icon_size_20x20{
    width: 20px;
    height: 20px;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
}

.icon_size_20x20.sent{
    background-image: url(../img/icon/sent.svg);
}

.icon_size_36x36{
    width: 36px;
    height: 36px;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
}

.icon_size_36x36.next{
    background-image: url(../img/icon/next_icon.svg);
    cursor: pointer;
}
.icon_size_36x36.prev{
    background-image: url(../img/icon/previus_icon.svg);
    cursor: pointer;
}
.icon_size_36x36.phone{
    background-image: url(../img/icon/phone.svg);
}
.icon_size_36x36.mail{
    background-image: url(../img/icon/mail.svg);
}
.icon_size_36x36.line{
    background-image: url(../img/icon/line.svg);
}

.icon_size_76x76{
    width: 76px;
    height: 76px;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: contain;
}
.icon_size_76x76.qr_line{
    background-image: url(../img/icon/qr_line.svg);
}

.contact_input{
    border-radius: 8px;
    border: 1px solid #8E9699;
    background: #FFFFFF;
    padding-left: 12px;
    min-height: 36px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.25) inset;
}

textarea.contact_input{
    resize: none;
    min-height: 227px;
    padding-top: 8px;
}

.contact_input::placeholder{
    color: #C2C9CC;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

.login_section{
    width: 80%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 798 / 460;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    top: 50%;
    box-sizing: border-box;
}

.frameV2{
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background-image: url(../img/decoration/loginV2.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.15);
    padding: 20px 28px 30px 28px;
    box-sizing: border-box;
    /* position: relative; */
}

.frameV3{
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.90);
    background: radial-gradient(150.14% 100% at 49.87% 0%, #FFF 0%, #FFF 8.64%, rgba(255, 255, 255, 0.50) 100%), linear-gradient(30deg, #47BFFA 1.35%, #279FF9 19.76%, #538BF9 30.2%, #9A7CF9 41.39%, #E659B4 50.35%, #ED508F 58.83%, #F64C5D 66.86%, #FA5B3D 75.57%, #FB7134 85.13%, #FC9A31 99.36%);
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.15);
    padding: 20px 28px 30px 28px;
    box-sizing: border-box;
}

.logoV2{
    background-image: url(../img/decoration/logo_v2.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    aspect-ratio: 1 / 1;
    width: 132px;
    border-radius: 24px;
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
}

.logoV3{
    background-image: url(../img/decoration/logo_v3.png);
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    aspect-ratio: 1 / 1;
    width: 132px;
    border-radius: 24px;
}

@media (max-width: 1040px){
    .login_section{
        grid-template-columns: unset;
        grid-template-rows: 1fr 1fr 1fr;
        max-width: 700px;
        transform: translate(-50%, 0%);
        padding: 100px 10%;
        top: 0px;
    }
}

@media (max-width: 950px){
    /* page 1 layer */
   .page1_box_layout{
        max-height: 700px;
    }
    .page2_dec2{
        min-width: 820px;
        left: 38%;
        top: 70px;
    }
    .page2_dec4{
        display: none;
    }
    .page2_bg2{
        width: 460px;
    }
    .page2_text_layout{
        max-width: 360px;
    }
    .page3_box_layout{
        min-height: 720px;
    }
    .page3_dec1{
        width: 972px;
    }
    .page3_dec2_box{
        left: 45%;
        transform: scale(0.9) translateX(-50%);
    }
    .page4_dec1{
        left: calc(50% + 260px);
    }
    .page4_text_layout{
        left: calc(50% - 376px);
    }
    .page5_swipe_box{
        scroll-padding: 0% 60px;
        padding: 0% 60px;
    }
    .page6_text_layout{
        width: 460px;
        left: calc(50% - 380px);
    }
    .institute_scroll_section{
        width: 280px;
    }
    .page7_pic1,.page7_pic2,.page7_pic3{
        width: 700px;
        min-width: 700px;
    }
    .page7_swipe_box{
        scroll-padding: 0px calc(50% - (700px / 2));
        padding: 0px calc(50% - (700px / 2));
    }
    .page7_box_layout{
        min-height: 600px;
        max-height: 600px;
    }
    .page7_icon{
        top: calc(50% + 200px);
        left: calc(50% + 288px);
    }
    .page8_box_layout{
        min-height: 720px;
    }
}

@media (max-width: 770px){
    .page6_text_layout {
        left: calc(50% - 360px);
    }
    .institute_scroll_section {
        width: 260px;
    }
}

@media (max-width: 440px){
    .main_header_section{
        padding-left: 12px;
        padding-right: 12px;
    }
    .main_title_btn{
        font-size: 16px;
    }
    .main_header_section .flex_layout_row.gap18{
        display: none;
    }
    .burger_icon{
        display: block;
    }
    .t40{
        font-size: 30px;
        line-height: 36px;
    }
    .t18{
        font-size: 16px;
        font-weight: 22px;
    }
    .page1_text_layout{
        min-width: 310px;
    }
    .page1_text_layout .t18.t_mid br{
        display: none;
    }
    .page1_text_layout .flex_layout_row{
        flex-direction: column;
    }
    .page1_box_layout {
        max-height: 956px;
        min-height: 656px;
    }
    .page1_dec2{
        bottom: 230px;
        min-width: 940px; 
    }
    .page1_dec1{
        min-width: 760px;
        left: 60%;
    }
    .page1_dec3{
        min-width: 1100px;
        bottom: 56px;
    }
    .page1_dec4{
        top: 210px;
        left: -82px;
        min-width: 134px;
    }
    .page1_dec5{
        top: 210px;
        right: -76px;
        min-width: 130px;
    }
    .page2_box_layout{
        min-height: 680px;
    }
    .page2_dec3{
        display: none;
    }
    .page2_bg2{
        display: none;
    }
    .page2_text_layout{
        left: calc(50%);
        transform: translateX(-50%);
        padding-top: 360px;
        gap: 12px;
        max-width: 90%;
    }
    .page2_text_layout > .t40{
        font-size: 24px;
        line-height: 32px;
    }
    .page2_dec2{
        min-width: 1020px;
        left: 70%;
        top: 10px; 
    }
    .page2_dec1{
        min-width: 1438px;
        transform: translateX(-13%);
        top: -54px;
    }
    .page3_text_layout{
        gap: 12px;
        width: 90%;
    }
    .page3_text_layout .t56{
        font-size: 30px;
        line-height: 36px;
    }
    .page3_dec1{
        width: 440px;
        background-image: url(../img/decoration/p3_1_m.png);
        left: 56%;
        aspect-ratio: 524 / 287;
        bottom: 0px;
    }
    .page3_dec2_6_tl, .page3_dec2_6_tr, .page3_dec2_6_bl, .page3_dec2_6_br{
        display: none;
    }
    .page3_dec2_box{
        left: 50%;
        transform: translateX(-50%);
        width: 390px;
        height: 160px;
        bottom: 70px;
    }
    .page3_dec2_1, .page3_dec2_2, .page3_dec2_3, .page3_dec2_4, .page3_dec2_5{
        width: 72px;
    }
    .page3_dec2_2{
        left: 80px;
    }
    .page3_dec2_4{
        right: 80px;
    }
    .page3_box_layout {
        min-height: 620px;
    }
    .page4_text_layout {
        left: calc(50% - 170px);
    }
    .page4_text_layout .t40.t_sb{
        width: 218px;
    }
    .page4_text_layout .t18{
        width: 264px;
    }
    .page4_dec1 {
        left: calc(66%);
    }
    .page4_box_layout{
        min-height: 720px;
    }
    .page4_icon{
        top: 670px;
        left: calc(50% + 100px);
    }
    .page5_box_layout{
        max-height: 680px;
    }
    .page5_text_layout .t56.t_sb span{
        display: none;
    }
    .page5_text_layout .t56.t_sb:after {
        content: 'REXX 3.0 \A โฉมใหม่ น่าใช้กว่าเดิม';
        display: block;
        white-space: pre-wrap;
        width: 100%;
        font-size: 34px;
        line-height: 46px;
        text-align: center;
    }
    .page5_card{
        min-width: 285px;
    }
    .page5_swipe_box{
        margin-top: 60px;
    }
    .page5_icon{
        top: 610px;
        left: calc(50% + 100px);
    }
    .page5_card_pic .t24.t_sb{
        font-size: 22px;
    }
    .page6_text_layout{
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
    }
    .page6_text_layout > .flex_layout_column{
        align-items: center;
    }
    .institute_scroll_section{
        width: 318px;
        height: 600px;
        left: 50%;
        transform: translateX(-50%);
        top: 46%;
    }
    .page6_box_layout{
        min-height: 1160px;
    }
    .page7_pic1{
        background-image: url(../img/picture/page7_pic1_m.png);
    }
    .page7_pic2{
        background-image: url(../img/picture/page7_pic2_m.png);
    }
    .page7_pic3{
        background-image: url(../img/picture/page7_pic3_m.png);
    }
    .page7_pic1, .page7_pic2, .page7_pic3{
        aspect-ratio: 405 / 710;
        width: 100%;
        min-width: 100%;
    }
    .page7_swipe_box {
        scroll-padding: 0px calc(50% - (90% / 2));
        padding: 0px calc(50% - (90% / 2));
    }
    .page7_box_layout {
        min-height: 956px;
        max-height: 956px;
    }
    .page7_icon{
        top: 800px;
        left: calc(50% + 100px);
    }
    .page7_dec1{
        top: 35%;
        min-width: 1000px;
    }
    .veiw_pic2{
        display: inline-flex;
        padding: 12px 24px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        border-radius: 28px;
        background: #232729;
        left: 50%;
        right: 0px;
        transform: translateX(-50%);
    }
    .veiw_pic2 .t16.t_bold{
        color: #FFFFFF;
    }
    .veiw_pic2 .more_icon{
        display: none;
    }
    .page8_text_layout{
        grid-template-columns: 1fr;
        position: relative;
        gap: 30px;
    }
    .page8_box_layout{
        max-height: fit-content;
        aspect-ratio: auto;
        padding: 16px 0px;
    }
    .contact_info_layout_mobile{
        display: flex;
    }
    .contact_info_layout{
        display: none;
    }
    .bot_layout{
        padding: 12px 18px;
    }
}

@media (max-width: 320px){
    .page1_dec1, .page1_dec2, .page1_dec3{
        display: none;
    }
    .rexx_icon_main{
        width: 170px;
        height: 50px;
    }
    .page1_box_layout, .page2_box_layout, .page3_box_layout {
        max-height: 568px;
        min-height: 568px;
    }
    .page1_text_layout {
        min-width: 265px;
    }
    .page2_dec1 {
        min-width: 1120px;
        transform: translateX(-15%);
        top: -90px;
    }
    .page2_dec2 {
        min-width: 800px;
        left: 86%;
        top: 10px;
    }
    .page2_text_layout {
        padding-top: 260px;
        max-width: 280px;
    }
    .page2_text_layout br{
        display: none;
    }
    .page3_dec2_box {
        width: 270px;
        bottom: 30px;
    }
    .page3_dec2_1, .page3_dec2_2, .page3_dec2_3, .page3_dec2_4, .page3_dec2_5 {
        width: 48px;
    }
    .page3_dec2_2 {
        left: 56px;
    }
    .page3_dec2_4 {
        right: 56px;
    }
    .page4_dec1{
        display: none;
    }
    .page4_text_layout {
        left: calc(50%);
        transform: translateX(-50%);
    }
    .page4_swipe_box{
        scroll-padding: 0% 22px;
        padding: 0% 22px;
    }
    .page4_icon{
        left: calc(50% + 50px);
    }
    .page5_swipe_box {
        scroll-padding: 0% 16px;
        padding: 0% 16px;
        margin-top: 16px;
    }
    .page5_icon {
        top: 600px;
        left: calc(50% + 50px);
    }
    .page6_text_layout {
        left: 50%;
        transform: translateX(-50%);
        width: 290px;
    }
    .page6_text_layout .gap56{
        gap: 28px;
    }
    .institute_scroll_section {
        top: 52%;
    }
    .page6_box_layout {
        min-height: 1260px;
    }
    .page7_pic1, .page7_pic2, .page7_pic3 {
        aspect-ratio: 292 / 491;
        width: 100%;
        min-width: 100%;
    }
    .page7_pic1 {
        background-image: url(../img/picture/page7_pic1_m1.png);
    }
    .page7_pic2 {
        background-image: url(../img/picture/page7_pic2_m1.png);
    }
    .page7_pic3 {
        background-image: url(../img/picture/page7_pic3_m1.png);
    }
    .veiw_pic2{
        bottom: 66px;
    }
    .page7_box_layout{
        min-height: 600px;
        max-height: 600px;  
    }
    .page7_dec1 {
        top: 50%;
        min-width: 1000px;
    }
    .page7_swipe_box{
        top: 40px;
    }
    .page7_icon {
        top: 530px;
        left: calc(50% + 50px);
    }
}

.popup_menu{
    width: 100%;
    height: 100%;
    background: radial-gradient(275.48% 100% at 50% 0%, #FFF 75.1%, rgba(255, 255, 255, 0.50) 100%), linear-gradient(90deg, rgba(71, 191, 250, 0.80) 0%, rgba(39, 159, 249, 0.80) 10.06%, rgba(83, 139, 249, 0.80) 20.12%, rgba(154, 124, 249, 0.80) 30.18%, rgba(219, 80, 196, 0.80) 40.23%, rgba(230, 89, 180, 0.80) 50.29%, rgba(237, 80, 143, 0.80) 60.35%, rgba(246, 76, 93, 0.80) 70.41%, rgba(250, 91, 61, 0.80) 80.47%, rgba(251, 113, 52, 0.80) 90.53%, rgba(252, 154, 49, 0.80) 100.58%);
    z-index: 1000;
    position: absolute;
    padding: 0px 12px;
    box-sizing: border-box;
}

.popup_menu_bg{
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: 1000;
    position: absolute;
    box-sizing: border-box;
}

.line_divide{
    height: 1px;
    width: 100%;
    background: #DFE3E6;
}