*{ 	
    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 !important;
    font-family: 'Kanit', sans-serif !important;
    }
     
 body{
    /* background-image: linear-gradient(rgb(221, 255, 244),rgb(231, 255, 214));	/*พื้นหลังเวป*/
    background: transparent;
    margin:0;
    overflow:visible;
    }

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 15%;
 }

 


li{
    list-style: none;
}


.content1{
    margin-left: 60px;
    margin-right: 50px;
}

.content2{
    margin-left: 85px;
    margin-right: 50px;
}

div.content2 a li{
    border-radius: 20px;
    margin: 10px;
    padding: 0px;
    color: #00f;
    font-size: 18px;
}

.content2 a.atest li:hover{
    color: rgb(255, 115, 0);
    text-decoration: underline #f00;
    text-decoration-style: double ;
    font-size: 19px;
}

/******* แบ่ง 3 ช่อง *********/
.grid-container {
    display: grid;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    grid-template-columns: 33.3% 33.3% 33.3%;
    background-color: transparent;
    align-self: center;    
    margin-left: 10%;
    margin-right: 10%;
  }

  .con2{
    display: grid;
    grid-template-columns: 50% 50%;
    margin-left: 25%;
    margin-right: 25%;
  }

  .grid-item {
    /*background-color: rgba(255, 255, 255, 0.99);*/

    border-radius: 20px;
    font-size: 16px;
    margin-top: 5%;
    margin-left: 10%;
    margin-right: 10%;    
    padding: 5px;
    text-align: center;    
  }	


/****************************************************************************/
/****************************************************************************/
/****************************************************************************/
/****************************************************************************/
/****************************************************************************/
/****************************************************************************/
/****************************************************************************
*****************************************************************************/
/****************************************************************************/
/****************************************************************************/
/****************************************************************************/
/****************************************************************************/
/****************************************************************************/
/****************************************************************************/
/****************************************************************************/
 
 
 /********* 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%;
 }
 
 .a1 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(36, 138, 255),rgb(38, 0, 255));
     transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1) 0s;
 }
 
 
 /********* จบ animation button 1 ***************************************/
 
 .a2 li{
    border: 2px solid rgb(37, 119, 185);
    border-radius: 20px;   
    color: #fff !important;
    background-image: linear-gradient(rgb(36, 138, 255),rgb(38, 0, 255));
    cursor: no-drop;
 }

 /************* หัวเรื่อง **************/
 .head1{
     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;
 }
 
 

 /**************************************************************************************/
  /**************************************************************************************/
   /**************************************************************************************/
    /**************************************************************************************/
     /**************************************************************************************/
      /**************************************************************************************/
       /**************************************************************************************/
        /**************************************************************************************/

       /*กด Download มา*/  
     
         
         
         /************************************************************************/
         
        .menu2 ul,
        .menu2 ul li ul,  
        .menu2 input 
        {     
            transition: max-height 0.7s ease-out;
            max-height:0;
            overflow: hidden;
        }
         
        .menu2 .closer ,
        .menu2 input:checked ~ .opener
        {
            display: none;
        }

        /* แสดงชั้นที่ 2*/
        .menu2 input:checked ~ ul
        {      
            max-height: 1000px;
            transition: max-height 0.8s ease-in;
        }
         
        .menu2 input:checked ~ .closer
        {
            display: block;
        }
        input[type="radio"]
        {
            display: none;
        }
            
         
         /************************************************************************/
         
     
         
         /***************************************************************/
         
         li.test1 li:hover > ul{
             max-height:500px;
             transition: max-height 0.8s ease-in;
         
         }
         
         ul.menu2 ul.dropdown1 li:hover > ul{
             max-height:500px;
             transition: max-height 0.8s ease-in;
         }
         
         

         /****************************************************************/
         

 /*** ปุ่มหัวข้อหลัก ***/

.select1{
    font-size:18px;
    text-align: left;
    margin-left: 80px;
    padding: 5px;
    transition: all 0.15s ease-out;
    cursor:  pointer;
  
    }
.select1:hover{
    color: rgb(228, 82, 15);
    font-size:20px;
    margin-left: 80px;
    padding: 5px;
    text-decoration:underline #00f;
}

.select2{
    cursor:  pointer;
    color: rgb(228, 82, 15);
    font-size:20px;
    margin-left: 80px;
    padding: 5px;
    text-decoration:underline #00f;
    text-align: left;
}
.header1{
    font-size: 16.5px;
    margin-left: 50px;
    padding: 5px;
    text-align: center;
}

.header2{
    text-align: center;
    font-size: 16.5px;
    text-decoration: underline #f00;
    text-decoration-style: double;
}

.header3{
    font-size: 16.5px;
}



.text1 {
    margin-left: 80px;
    font-size: 18px;
    padding: 5px;
}

ul li input label p .psize{
    font-size: 50px;
}

  li p{
    cursor:  pointer;
  /*  font-size:20px;*/
  
    transition: all 0.2s ease-out;
}


 /**** เส้นใต้  ****/
 li p:hover{
    color: rgb(228, 82, 15);
    /*font-size:22px;*/
    text-decoration:underline #00f;

    /*border-block-end: 2px rgb(255, 0, 0) solid ;
    /*border-block-end: 5px double #ff0000 ;*/

}

/******** ชั้นที่ 1 **********/
ul.menu2 li ul li {
   /* background: pink;*/
    z-index: 1;
}

 /******* ชั้นที่ 2 **********/



 ul li ul{
    margin-left: 80px;
    margin-right: 100px;
    border-radius: 20px;
    }


/*a li.li1{
    border-radius: 20px;
    margin: 5px;
    padding: 5px;
    margin-left: 40px;
    margin-right: 20px;
    font-size: 18px;
}*/


/*

ul.menu2 li.test1 li a:hover{
    color: #000; 
    }
*/
.menu2 li ul li a{
    font-size: 16px;
    color: rgb(49, 49, 49);
    text-decoration: none;
    }
 

.Acursor{
    cursor: pointer;
}

 /******* ชั้นที่ 3 **********/
 .menu2 li ul li ul a li{
    font-size: 16px;
}

b.red{
    color: red;
    text-decoration-line: underline;
    text-decoration-style: double;
}

@media only screen and (max-width: 720px) {

    ::-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: 5px;
      }

    }


@media only screen and (max-width: 600px) {

 /************* หัวเรื่อง **************/
.head1{
    font-size: 17px;
    text-align: center;
    padding: 10px;
    position: relative;
    top: 0;
    box-shadow: 20px #333;
}

/* .grid-container {
    display: grid;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    grid-template-columns: 33% 33% 33%;
    background-color: transparent;
    align-self: center;    
    margin-left: 15px;
    margin-right: 15px;
  }

  .grid-item {
    border-radius: 20px;
    font-size: 14px;
    margin: 10px;
    padding: 5px;
    text-align: center;    
  }	 */
  
  .grid-item {
    font-size: 14px;
  }

.content1{
    margin-left: 15px;
    margin-right: 10px;
}

.content2{
    margin-left: 20px;
    margin-right: 10px;
}

.header1{
    margin-left: 0px;
    padding: 5px;
    text-align: center;
}

}