* {
  box-sizing: border-box;
}
h1{
font-family: "Arial", Helvetica, sans-serif;
font-size:52px;
}
h2{
font-family: "Arial", Helvetica, sans-serif;
font-size:44px;
line-height: 0.5;	  
}
h3{
	font-size:3vh;
	  line-height: 0.5;
	  line-height: 0.5;	  
}
h4{
font-size:24px;
line-height: 0.5;
}
h5{
font-size:1.6vh;
    text-align: center;
}
h6{font-size:14px;
    text-align: center;
}

/* .fa {font-size:50px;} */

p {
  font-family: "FreesiaUPC", Times, serif;
  font-size:18px;
    text-align: center;
	font-weight: bold;
line-height: 16pt
}
.fontbold{
  font-family: "FreesiaUPC", Times, serif;
	font-size:32px;
	color:#ff3300 ;
	font-weight: bold;
    text-align: center;
line-height: 16pt
padding-bottom: 15px;
}
.fontbold2{
  font-family: "FreesiaUPC", Times, serif;
	font-size:20px;
	color:#ff3300 ;
	font-weight: bold;
    text-align: center;
line-height: 16pt
padding-bottom: 15px;
}


body {
  font-family: "Tahoma",Tahoma, Helvetica, sans-serif;
}

/* Style the header */
.header {
  background-color: #fff;
  padding: 5px;
  text-align: center;
  font-size: 26px;
  font-family: "FreesiaUPC",Tahoma, Helvetica, sans-serif;
font-weight: bold;
}
.header2 {
  background-color: #c0e4c2;
  padding: 5px;
  text-align: center;
  font-family: "Tahoma",Tahoma, Helvetica, sans-serif;
  font-weight: none;
}
/* Create three equal columns that floats next to each other */
.column {
  float: left;
  width: 33.33%;
  padding: 25px;
  height: 100%; /* Should be removed. Only for demonstration */
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}


.header2 {
  background-color: #ffffff;
  padding: 0px;
  text-align: center;
  font-size: 24px;
  font-family: "Tahoma",Tahoma, Helvetica, sans-serif;
}

/* Create three unequal columns that floats next to each other */
.column2 {
  float: left;
  padding: 10px;
  height: 300px; /* Should be removed. Only for demonstration */
}

/* Left and right column */
.column2.side {
  width: 25%;
}

/* Middle column */
.column2.middle {
  width: 75%;
}

/* Clear floats after the columns */
.row2:after {
  content: "";
  display: table;
  clear: both;
}

/* Style the footer */
.footer2 {
  background-color: #f1f1f1;
  padding: 10px;
  text-align: center;
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media (max-width: 600px) {
  .column2.side, .column2.middle {
    width: 100%;
  }
}

/* Clear floats after the columns */
.row3:after {
  content: "";
  display: table;
  clear: both;
}

/* Style the footer */
.footer {
  background-color: #f1f1f1;
  padding: 20px;
  text-align: center;
}
.footer2 {
  background-color: #fff;
  padding: 100px;
  text-align: center;
	font-size:14px;
}

.comdiv {
  width: 100%;
  border: 0px solid black;
  margin: 10px;
  background-color: #fff;
    padding: 10px;
    lign-items: center;
}
.div1 {
  width:50vh;
  height: 160px;
  border: 1px solid blue;
  box-sizing: border-box;
  background:#ccff00;
  padding: 5px;
  margin-left:30px;
  margin-right:5px;
  float: left;
font-size:26px;
text-align: center;
 line-height: 16pt;
}
.div2 {
  width: 50vh;
  height: 200px;
  border: 0px solid blue;
  box-sizing: border-box;
  background:#d76b00;
  padding: 5px;
  margin-top:5px;
margin-left:30px;
  margin-right:5px;
  float: left;
font-size:2vh;
color:#FFF ;
text-align: center; 
line-height: 14pt;
}
.div2a {
  width: 70%;
  height: 200px;
  border: 0px solid blue;
  box-sizing: border-box;
  background:#336600;
  padding: 5px;
  margin-top:5px;
margin-left: 30px;
  margin-right:5px;
  float: left;
font-size:26px;
color:#FFF ;
text-align: center; 
line-height: 16pt;
}
.div2b {
  width: 50vh;
  height: 205px;
  border: 0px solid blue;
  box-sizing: border-box;
  background:#045088;
  padding: 5px;
  margin-top:5px;
margin-left:30px;
  margin-right:5px;
 float: left;
font-size:1.6vh;
color:#e0e0e0;
text-align: center; 
line-height: 16pt;
}
.div3 {
  width: 150px;
  height: 170px;
  border: 2px solid white;
  box-sizing: border-box;
  background:#8080ff;
  padding: 5px;
 margin-left:5px;
 float: left;
font-size:1.8vh;
color:#FFF ;
text-align: center; 
line-height: 16pt;
}
.div4 {
  width: 150px;
  height: 170px;
  border: 2px solid white;
  box-sizing: border-box;
  background:#000;
  padding: 5px;
 margin-left:5px;
 float: left;
font-size:18px;
color:#FFF ;
text-align: center; 
line-height: 16pt;
}
.div5 {
  width: 150px;
  height: 170px;
  border: 2px solid white;
  box-sizing: border-box;
  background:#b6497a;
  padding: 5px;
 margin-left:5px;
 float: left;
font-size:18px;
color:#FFF ;
text-align: center; 
line-height: 16pt;
}
.div6 {
  width: 150px;
  height: 170px;
  border: 2px solid white;
  box-sizing: border-box;
  background:#1ea2e1;
  padding: 5px;
 margin-left:5px;
 float: left;
font-size:18px;
color:#FFF ;
text-align: center; 
line-height: 16pt;
}

.div7 {
  width: 150px;
  height: 170px;
  border: 2px solid white;
  box-sizing: border-box;
  background:#244848;
  padding: 5px;
 margin-left:5px;
 float: left;
font-size:18px;
color:#FFF ;
text-align: center; 
line-height: 16pt;
}

.div8 {
  width: 150px;
  height: 170px;
  border: 2px solid white;
  box-sizing: border-box;
  background:#990000;
  padding: 5px;
 margin-left:5px;
 float: left;
font-size:18px;
color:#FFF ;
text-align: center; 
line-height: 16pt;
}
.div9 {
  width: 150px;
  height: 170px;
  border: 2px solid white;
  box-sizing: border-box;
  background:#003399;
  padding: 5px;
 margin-left:5px;
 float: left;
font-size:18px;
color:#FFF ;
text-align: center; 
line-height: 16pt;
}
.div10 {
  width: 150px;
  height: 170px;
  border: 2px solid white;
  box-sizing: border-box;
  background:#666600;
  padding: 5px;
 margin-left:5px;
 float: left;
font-size:18px;
color:#FFF ;
text-align: center; 
line-height: 16pt;
}
.div11 {
  width: 150px;
  height: 170px;
  border: 2px solid white;
  box-sizing: border-box;
  background:#2eb155;
  padding: 5px;
 margin-left:5px;
 float: left;
font-size:18px;
color:#FFF ;
text-align: center; 
line-height: 16pt;
}
.div12 {
  width: 150px;
  height: 170px;
  border: 2px solid white;
  box-sizing: border-box;
  background:#476d98;
  padding: 5px;
 margin-left:5px;
 float: left;
font-size:18px;
color:#FFF ;
text-align: center; 
line-height: 16pt;
}
.div13 {
  width: 150px;
  height: 170px;
  border: 2px solid white;
  box-sizing: border-box;
  background:#000048;
  padding: 5px;
 margin-left:5px;
 float: left;
font-size:18px;
color:#FFF ;
text-align: center; 
line-height: 16pt;
}
.div14 {
  width: 150px;
  height: 170px;
  border: 2px solid white;
  box-sizing: border-box;
  background:#5c5c5c;
  padding: 5px;
 margin-left:5px;
 float: left;
font-size:18px;
color:#FFF ;
text-align: center; 
line-height: 16pt;
}
.div15 {
  width: 150px;
  height: 170px;
  border: 0px solid blue;
  box-sizing: border-box;
  background:#e8e8e8;
  padding: 10px;
 margin-left:10px;
 float: left;
font-size:18px;
color:#000 ;
text-align: center; 
line-height: 16pt;
}
.div16 {
  width: 150px;
  height: 170px;
  border: 2px solid white;
  box-sizing: border-box;
  background:#87c24b;
  padding: 5px;
 margin-left:5px;
 float: left;
font-size:18px;
color:#000 ;
text-align: center; 
line-height: 16pt;
}
.div17 {
  width: 150px;
  height: 170px;
  border: 2px solid white;
  box-sizing: border-box;
  background:#57822d;
  padding: 5px;
 margin-left:5px;
 float: left;
font-size:18px;
color:#fff ;
text-align: center; 
line-height: 16pt;
}
.div18 {
  width: 100%;
  height: 260px;
  border: 0px solid blue;
  box-sizing: border-box;
  background:#008040;
  padding: 15px 0px 0px 15px;
 margin-left:0px;
 float: left;
font-size:2.2vh;
color:#fff ;
text-align: center; 
line-height: 16pt;
}

.divSearch {
  width: 200px;
  height: 300px;
  border: 0px solid blue;
  box-sizing: border-box;
  background:#80ff00;
  padding: 10px;
 margin-left:10px;
 float: left;
font-size:24px;
font-weight: bold;
color:#000 ;
text-align: center; 
line-height: 16pt;
}


form.example input[type=text] {
  padding: 10px;
  font-size: 17px;
  border: 1px solid grey;
  float: left;
  width: 90%;
  background: #f1f1f1;
}

form.example button {
  float: left;
  width: 10%;
  padding: 10px;
  background: #454e87;
  color: white;
  font-size: 17px;
  border: 1px solid grey;
  border-left: none;
  cursor: pointer;
}

form.example button:hover {
  background: #0b7dda;
}

form.example::after {
  content: "";
  clear: both;
  display: table;
}


body {font-family: Arial, Helvetica, sans-serif;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 2px 16px;
  background-color: #804040;
  color: white;
}

.modal-body {padding: 2px 16px;}

.modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

.button {
  background-color: #005bb7; 
  border: none;
  color: white;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}
.navbar {
  width: 100%;
  background-color: #004d33;
  overflow: auto;
}

.navbar a {
  float: left;
  padding: 12px;
  color: white;
  text-decoration: none;
  font-size: 17px;
}

.navbar a:hover {
  box-shadow: 3px 3px 3px #fff;
  border-radius: 7px;
  text-decoration: none;
  height:4.2vh;
  color:#dddddd;
}
.topnav-right {
  float: right;
}
.active {
  background-color: #009b65;
}

@media screen and (max-width: 800px) {
  .navbar a {
    float: none;
    display: block;
  }
}
/* Responsive columns */
@media screen and (max-width: 601px) {
  .column {
    width: 100%;
    display: block;
    margin-bottom: 10px;
  }
}
@media screen and (min-width:601px) {
 .div18 .column{
   width:100%;
  height: 100%;
  font-size: 24px;
   display: block;
  }
}
@media screen and (max-width:601px) {
 .div18 .column{
   width:100%;
  height: 280px;
  font-size: 24px;
    display: block;
  }
}

/*---ขนาดย่อจอ-----*/
@media screen and (max-width:601px) {
.div3,.div31,.div4,.div5,.div6,.div7,.div8,.div9,.div10,.div11,.div12,.div13,.div14,.div15,.div16,.div17{
font-size:1.9vh;
  width: 20vh;
  height: 30vh;
  }
}
/*---ขนาดเต็มจอ-----*/
@media screen and (min-width:480px) {
.div1,.div3,.div4,.div5,.div6,.div7,.div8,.div9,.div10,.div11,.div12,.div13,.div14,.div15,.div16,.div17{
font-size:1.85vh;
  width: 15vh;
  height: 29vh;
  }
}

