*{
    font-family: 'Prompt';
    color:#000; 
}

body{
    width:100%; margin:0px;
    background-color:#FFFFFF;
    font-size: 16px;
}

img {
    pointer-events: none;
}

.ui,.ui_loading,.ui_alert,.ui_true,.ui_false,.ui_question{
    display:none;
}

#container{
    width: 100%;
    min-width:300px;
    position: absolute;
    top:0;
    left:0;
    overflow-x: hidden;
}

#main_content{
    width:100%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

#head_menu{
    margin-bottom:0px;
    box-shadow: 0px 5px 2px -5px #111;
}

.head_weblogo{
    width:100%; display: flex; justify-content: center; text-align: center;  padding-top: 10px; padding-bottom:4px;
}

.menumain{
    width:100%;
    max-width:960px;
    display: flex; justify-content: center; text-align: center;
}

#olylife_logo{
    height:40px;
}

.ui_menu{
    display:none;
    position:fixed; bottom:0px; left:0px; width:100%; height:120%; z-index:80;
    background-color: #000; width:150%; opacity: 0.8;
}

.menu_slider{
    position:fixed; left:50%; top:0px; height:100%; width:100%; max-width:960px;  z-index:81; transform: translate(-50%,0);
}

.menu_slider a{
    margin-left:40px;
    margin-top:10px;
    font-weight: 500;
    font-family: 'Prompt';
    font-size: 16px;
    color:#828689;
    display: block;
}

.menuright_slider{
    position:fixed; right:50%; top:0px; height:100%; width:100%; max-width:960px; z-index:81; transform: translate(50%,0);
}

.menuright_slider a{
    margin-left:40px;
    margin-top:10px;
    font-weight: 500;
    font-family: 'Prompt';
    font-size: 16px;
    color:#828689;
    display: block;
}

.box_scroll{
float: left; background-color:#222126; height:100%; width:280px; top:0px;  direction:rtl; overflow:auto;
}

    .box_scroll::-webkit-scrollbar {
    width: 10px; /* กำหนดความกว้างของ scroll */
   }
   .box_scroll::-webkit-scrollbar-track {
    background: #222126; /* สีพื้นหลัง scroll */
   }
   .box_scroll::-webkit-scrollbar-thumb {
    background-color: #929292; /* กำหนดสีของแถบเลื่อน scroll */
    border-radius: 20px; /* กำหนดความโค้งมนของแถบเลื่อน scroll */
    border: 1px solid #222126; /* กำหนดกรอบเพื่อเว้นระยะรอบแถบเลื่อน scroll */
   }

   .img_user{
    margin-top:4px;
    height: 75%;
    aspect-ratio: 1/1;
    background-color: #f7f7f7;
    border: solid 1px #c1c1c1;
    border-radius: 100%;
    float:right;
    margin-right:20px;
    color:#737373;
    overflow: hidden;
}

/*///user content///*/
#content_left{
    width:70%; 
    float: left;
    min-height: 500px;
    /*background-color: #f7f7f7; สีเทาพื้นหลัง*/
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    background-color: #116570;
    padding-bottom:20px;
}

.con1{
    width: calc(94% - 20px);
    margin-left:3%;
    background-color: #FFF;
    border-radius: 20px;
    padding: 10px;
    padding-top:20px;
}

/*///user content///*/
#content_right{
    width:30%; float: left;
    /*background-color: red;*/
    min-height: 500px;
}

.head_text{
    font-size: 5vw;
    }

.t_head{
    font-size: 4vw; color:#fff;  text-shadow: -1px 1px 0 #223928, 1px 1px 0 #223928, 1px -1px 0 #223928, -1px -1px 0 #223928;
}

.t_head2{
    font-size: 2.5vw;
}

#down_menu{
	position: fixed;
	box-shadow: 0px -5px 3px -5px #111; 
	bottom:0px;
    left:0px;
	width:100%;
	background-color:#FFF;
	z-index: 1;
	text-align:center;
	padding-top: 10px;
}

.head_right{
    font-family: 'Prompt';
    padding-left: 20px;
    width:100%;
    height: 40px;
    color:#000;
    font-size: 20px; 
    font-weight: bold;
}

.imgProstyleINTER{
    /*background-color: #FFF;*/
    width:100%;
    aspect-ratio: 1 / 0.6;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 4px;
}

/*///intor///*/
.styleINTER{
    width: 94%;
    margin-left:3%;
    float: left;
    background-color:#FFF;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    margin-top:8px;
    margin-bottom: 8px;
    text-align: center;
    font-size: 14px;
}

.imgProstyleINTER{
    /*background-color: #FFF;*/
    width:100%;
    aspect-ratio: 1 / 0.6;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 4px;
}

.Text_styleINTER{
    width:100%; text-align: left; padding-left:4px; padding-right:4px;
}

.ART{
    width:100%;
    pointer-events: none;
}

.TextIN1{
    height:30px; width:100%; display: flex; justify-content:left; align-items: center; color: rgba(0, 0, 0, 0.35);
    font-size: 14px;
}

.TextIN2{
    font-size: 16px;
}

.TextIN2 A {
    text-decoration:none;
}

.TextIN3{
    font-family: 'Kanit', sans-serif; font-size: 14px;
}

.bt_green{
    float: right;
    padding: 4px; border-radius: 8px; background-color: #FFDA79; color:#000; 
    text-align: center;
    font-size: 16px;
    width: 80px;
    margin: 4px 4px;
}
/*///จบ intor///*/

#img_head{
    position: relative; aspect-ratio: 100/50; overflow: hidden;
}


.video_layer{
  width:100%;  margin-bottom: 10px;
}

.container_video {
    position: relative;
    width: 90%;
    height: 0%;
    padding-bottom: 56.25%;
}

.video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.text_h2{
  font-size:30px;
  color:#023380; text-shadow: 1px 1px 1px #000000;
  /*ข้อความสีน้ำเงิน*/
}

.box_8{
  max-width:23%; float: left;
  margin:1%;
  aspect-ratio: 1/1.5;
  text-align: center;
}

.img_8{
  width: 100%;
}

.box_img{
  position: relative;
  background-image: url("https://xn--w3cla4a4bxera5a3b.com/img/main/pilot_big.webp");
  background-repeat: no-repeat;
  background-size: 100%;
}

.text_shadow{
  text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
             1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
}

#aid_pilot1{
  width:22.8%; float: left; margin-right:1%;
}

#aid_pilot2{
  width:32.7%; float: left; margin-right:1%;
}

#aid_pilot3{
  width:42.5%; float: left;
}

#aid_pilot4{
  width:42%; position: absolute; left:0px;
}

#aid_pilot5{
  width:42%; position: absolute; right:0px;
}

.div_center{
  display: flex; align-items: center; justify-content: center;
}

.page_note{
    width:100%; text-align:center;
    margin-bottom:20px;
    margin-top:10px;
}

/*form*/

#fname,#fcounty,#ftel,#fdistrict,#fnote {
  width: 100%;
  padding: 12px 20px;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top:5px;
  margin-bottom:10px;
}

input[type=submit] {
  width: 100%;
  background-color: #4CAF50;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #45a049;
}

#divform {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
}

.ef{
    display: none;
}
/*จบ from */


/*///// UI Alert ต่างๆ  /////*/
.ui{
    display:none;
    position:fixed; bottom:0px; left:0px; width:100%; height:120%; z-index:100;
    background-color: #000; width:150%; opacity: 0.8;
}

.ui_adult{
    position:fixed; bottom:0px; left:0px; width:100%; height:120%; z-index:101;
    background-color: #000; width:150%; opacity: 0.9;
}

.ui_alert,.ui_question,.ui_loading,.ui_true,.ui_false{
    display:none;
    background-color:#CCCCCC;
    position:fixed;
    left:50%;
    top:50%;
    transform: translate(-50%,-50%);
    padding:10px 20px;
    z-index:101;
    min-width:240px;
    border-radius: 10px;
}

.ui_table{
    /*font-weight: bold;*/
    margin:auto;
}

.ok_bot{
    margin-top:10px;
    width:60px;
    background-color: #367DF3;
    border: none;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    padding: 6px 4px;
    text-decoration: none;
    cursor: pointer;
}

.line_okbot{
    display: inline;
}
/*///// จบ UI ต่างๆ/////*/


/*slide menu*/
.box_scroll{
float: left; background-color:#222126; height:100%; width:280px; top:0px;  direction:rtl; overflow:auto;
}

.box_scroll A {
    text-decoration:none;
}

    .box_scroll::-webkit-scrollbar {
    width: 10px; /* กำหนดความกว้างของ scroll */
   }
   .box_scroll::-webkit-scrollbar-track {
    background: #222126; /* สีพื้นหลัง scroll */
   }
   .box_scroll::-webkit-scrollbar-thumb {
    background-color: #929292; /* กำหนดสีของแถบเลื่อน scroll */
    border-radius: 20px; /* กำหนดความโค้งมนของแถบเลื่อน scroll */
    border: 1px solid #222126; /* กำหนดกรอบเพื่อเว้นระยะรอบแถบเลื่อน scroll */
   }

.menu_slider{
    position:fixed; left:50%; top:0px; height:100%; width:100%; max-width:960px;  z-index:81; transform: translate(-50%,0);
}

.menu_slider A {
    margin-left:40px;
    margin-top:10px;
    font-weight: 500;
    font-family: 'Prompt';
    font-size: 16px;
    /*color:#828689;*/
    color:#fff;
    display: block;
    text-decoration:none;
}

.menuright_slider{
    position:fixed; right:50%; top:0px; height:100%; width:100%; max-width:960px; z-index:81; transform: translate(50%,0);
}

.menuright_slider a{
    margin-left:40px;
    margin-top:10px;
    font-weight: 500;
    font-family: 'Prompt';
    font-size: 16px;
    color:#FFF;
    display: block;
}


.red_close{
    float:left; 
    margin-top:20px; margin-left:10px; margin-right:10px;
    height: 30px;
    aspect-ratio: 1/1;
    background-color: #222126;
    border-radius: 100%;
    overflow: hidden;

    position: relative;
}

.red_close img{
    width:60%;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* จบ slide menu*/

/*box login*/
#box_login{
    border:1px solid #c1c1c1;
    background-color:#FFF;
    position:fixed;
    left:50%;
    top:50%;
    transform: translate(-50%,-50%);
    padding:10px 20px;
    z-index:91;
    min-width:240px;
    border-radius: 10px;
    display:none;
}

.ui_login{
    display:none;
    position:fixed; bottom:0px; left:0px; width:100%; height:120%; z-index:90;
    background-color: #000; width:150%; opacity: 0.8;
}

.close_box{
  position: absolute;
  top:5px;
  right:5px;
  width:30px;
  height:30px;
}

.close_box >img{
  width:100%;
}
    
    
    #user_login,#user_pass{
        height: 40px;
        width: calc(100% - 30px);
        font-size: 16px;
        border-radius: 5px;
        border: 1px solid gray;
        padding-left:15px;
        padding-right:15px;
    }

    .btn{
        padding: 8px;
        width:100px;
        font-size: 16px;
        color: white;
        background: #5f9ea0;
        border: none;
        border-radius: 5px;
        text-align: center;
    }
    
/*จบ box login*/
/*//// Note Book ////*/
@media only screen and (max-width: 850px){
    #img_head{
        aspect-ratio: 100/55;
    }

    #content_left{
        width:100%;
    }

    #content_right{
        width:100%;
    }

    .t_head{
        font-size: 5vw;
    }

    .t_head2{
        font-size: 3vw;
    }

    .head_text{
    font-size: 6vw;
    }

    
    .head_right{
        padding-left: 40px;
        margin-top:20px;
    }

    .styleINTER{
        margin-left:4%;
        width:92%;
    }

    .TextIN1{
        font-size: 16px;
    }

    .TextIN2{
        font-size: 18px;
    }

    .TextIN3{
        font-size: 16px;
    }
}


/*////smart phone แนวนอน ////*/
@media only screen and (max-width: 720px){
    #img_head{
        aspect-ratio: 100/60;
    }

    #olylife_logo{
            height:35px;
    }

    .t_head{
        font-size: 5.5vw;
    }

    .t_head2{
        font-size: 3.5vw;
    }

}

/*////smart phone ////*/
@media only screen and (max-width: 550px){
    #img_head{
        aspect-ratio: 100/70;
    }

    #olylife_logo{
            height:32px;
        }

    .head_right{
        padding-left: 20px;
        margin-top:15px;
        font-size: 20px;
    }

    .t_head{
        font-size: 5.5vw;
    }

    .t_head2{
        font-size: 4vw;
    }

    .styleINTER{
        margin-left:2%;
        width:96%;
    }

    
    .TextIN1{
        font-size: 12px;
    }

    .TextIN2{
        font-size: 16px;
    }

    .TextIN3{
        font-size: 14px;
    }

    .text_h2{
    font-size: 5.5vw;
  }

  .box_8{
    max-width:46%; float: left;
    margin:2%;
    aspect-ratio: 1/1.3;
  }

  #aid_pilot1{
    width:40.6%;
  }

  #aid_pilot2{
    width:58.4%;
    margin-right:0px;
  }

  #aid_pilot3{
      margin-top:10px;
      margin-bottom:15px;
      width:100%;
  }
}


@media only screen and (max-width: 300px){
    #img_head{
        aspect-ratio: 100/80;
    }

    #Container{
        width: 300px;
    }

    .t_head{
        font-size: 16px;
    }

    .t_head2{
        font-size: 12px;
    }

    .head_text{
    font-size: 18px;
    }

    #down_menu{
        width:300px;
    }
}