*{ 	
    margin:0px;
    padding:0px;
    text-decoration: none;
    }

  ::-webkit-scrollbar {
    /* background: rgba(188, 144, 24, 0.1); */
    background-image: linear-gradient(rgba(255, 230, 0, 0.1),rgba(255, 166, 0, 0.1));
    /* height: 500px; */
    width: 10px;
  }
  ::-webkit-scrollbar:disabled {
    background: transparent;
  }
    
  ::-webkit-scrollbar-thumb {
    /* background: rgba(24, 188, 155, 0.6); */
    /* border: 1px solid rgba(0, 0, 0, 0.5); */
    background-image: linear-gradient(rgba(255, 230, 0, 0.5),rgba(255, 166, 0, 0.5));
    border-radius: 50px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background-image: linear-gradient(rgba(255, 230, 0, 0.75),rgba(255, 166, 0, 0.75));
  }
  ::-webkit-scrollbar-thumb:active {
    background-image: linear-gradient(rgba(255, 230, 0, 0.9),rgba(255, 166, 0, 0.9));
  }
  
  ::-webkit-scrollbar-thumb:window-inactive {
    background-image: linear-gradient(rgba(255, 230, 0, 0.2),rgba(255, 166, 0, 0.2));
  }

 html{
    scroll-behavior:smooth;
    font-family: 'Kanit', sans-serif;
    }
     
 body{
 background: transparent;
    margin:0;
    overflow:visible
    }
 
.underp{
    padding-left: 15px;

}

 /********* Animate a1 *********/
a.a1 li {
     color: #000;
     cursor: pointer;
     display: block;
     position: relative;
     border: 2px solid rgb(37, 119, 185);
     transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1) 0s;
     border-radius: 20px
 }
 /* .a1 li:hover {
     color: #fff !important;
     background-color: transparent;
 } */
 .a1 li:hover:before {
   
     left: 0%;
     right: auto;
     width: 100%;

 } 
 
 /********* จบ animation button 1 ***************************************/
 
 
 
 /*******Animate a2***********/
 
 
 a.a2 li {
     color: #000;
     cursor: no-drop;
     display: block;
     position: relative;
     border: 2px solid rgb(255, 0, 0);
     transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1) 0s;
     border-radius: 20px
 }
 .a2 li:hover {
     color: #fff !important;
     background-color: transparent;
 }
 .a2 li:hover:before {
     left: 0%;
     right: auto;
     width: 100%;
 }
 
 .a2 li:before {
     display: block;
     position: absolute; 
     border-radius: 20px;   
     top: 0px;
     right: 0px;
     height: 100%;
     width: 0px;
     z-index: -1;
     content: '';
     color: #fff !important;
     background-image: linear-gradient(rgb(199, 26, 26),rgb(255, 108, 108));
     transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1) 0s;
 }
 
 /*******จบ Animate a2***********/
   
  /*******Animate a3***********/

 a.a3 li {
    color: #000;
    cursor: pointer;
    display: block;
    position: relative;
    border: 2px solid rgb(245, 149, 39);
    border-radius: 20px 5px 20px 5px;   
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1) 0s;
    margin-left: 20%;
    margin-right: 20%;
}
/* .a3 li:hover {
    color: #fff !important;
    background-color: transparent;
} */
.a3 li:hover:before {
    left: 0%;
    right: auto;
    width: 100%;
}

 /*******จบ Animate a3***********/



    /* INNER UL HIDE ซ่อน */
    li ul ul{
    
     padding-left:20px;
     transition: max-height 0.8s ease-out;
     max-height:0;
     overflow:hidden;
    }
    
    /* INNER UL SHOW แสดง */
    li ul li:hover > ul
    {
     display: block;
     max-height:800px;
     transition: max-height 0.8s ease-in;
    }
 
 
 body li{
     padding-bottom: 5px;
 }
 
 /************* มาตรา **************/
 .head1,.head2{
     font-size: 19px;
     text-align: center;
     padding: 10px;
     position: sticky;
     top: 0;
     box-shadow: 20px #333;
 }
 
 .head1{
    background: rgb(228, 255, 205);
     z-index: 20;
 }
 
 .head2{
     background: chocolate;
     z-index: 21;
 }
 
 .head3{
     background: rgba(255, 255, 255, 0.800);
     text-align: center;
     position: sticky;
     top:0;
     z-index: 22;
 }
 
 .head4{
     background: cornflowerblue;
     padding: 20px;
     z-index: 22;
     font-size: 24px;
 }
 
 .li23{
     background: transparent;
     text-align: left;
 }
 
 
 
 
 /******** myDIV *******************/
 #myDIV1,#myDIV2,#myDIV3,#myDIV4,#myDIV5,#myDIV6{
     overflow:hidden;
     max-height: 0px;
     transition: max-height 0.4s ease-out;
     margin-left: 5%;
     margin-right: 5%;
 }
 
 
 
 
 
 /*** ปุ่มหัวข้อหลัก ***/
 li p{
     cursor:  pointer;
     font-size:17px;
     padding: 20px 0px 0px 10px;
     transition: all 0.2s ease-out;
 }
 
 /******** เส้นใต้ ********/
 li.underp:hover>p{
     color: rgb(0, 68, 255);
     font-size:17.3px;
     /* text-decoration:underline #f00; */
 }
 
 
 li ul a li {
     color: #000;
     text-decoration: none;
     font-size: 16px;
 }
 
 li ul li {
     margin: 5px;
     padding: 5px;
     box-shadow: 0 0 0 0px #333;
     border: solid 2px rgb(100, 100, 100);
     border-radius: 20px 5px 20px 5px;
 }




 ul,li{
       list-style: none;
 }
 

 
 /******** ย่อชั้นที่ 2 ***********/
 li ul li{
     color: #000;
     font-size: 16px;
     z-index: 1;
     
 }
 .FSA{
     color: blue;
 }

 .FSA:hover{
     color: rgb(255, 153, 0);
 }
 
  
 @media only screen and (max-width: 720px) {

    a.a3 li {
        margin-left: 10%;
        margin-right: 10%;
    }

    
    .menu2 li ul li a{
       font-size: 16px;
       color: #333;
       text-decoration: none;
    }
    
    .head1,.head2{
        font-size: 17px;
        text-align: center;
        padding: 10px;
        position: sticky;
        top: 0;
        box-shadow: 20px #333;
    }
    
    li p{
        cursor:  pointer;
        font-size:16px;
        padding: 20px 0px 0px 10px;
        transition: all 0.2s ease-out;
    }
    
    li.underp:hover>p{
        color: rgb(0, 68, 255);
        font-size:16.5px;
        /* text-decoration:underline #f00; */
    }
    
     li ul a li {
        color: #000;
        text-decoration: none;
        font-size: 14px;
    }
    
    li ul a{
        font-size: 16px;
        color: rgb(0, 63, 235);
    }
    
    /******** ย่อชั้นที่ 2 ***********/
    li ul li{
        color: #000;
        font-size: 14px;
        z-index: 1;
    }
        
    }