/* Clearfix */
.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}
.clearfix:after {
    clear: both;
}
.clearfix {
    *zoom: 1;
}

/* Basic Styles */
div{
		  font-family: verdana, arial, helvetica;
	font-size:12px
}
a{
	color: #003f20;
	text-decoration: none;
}
a:hover{
color: #AAAAAA;
}

body {
	background-color:#F4F4F4;
	float: none;
}
nav {
	
	height: 40px;
	width: 100%;
	background: #333; /*พื้นตัวเลื่อน*/
	font-size: 11pt;
	font-family: 'PT Sans', Arial, sans-serif;
	font-weight: bold;
	position: relative;
	border-bottom: 2px solid #283744;
	
	
}
nav ul {
	padding: 0;
	margin: 0 auto;
	width: 100%;
	height:auto;
	
}
nav li {
	display: inline;
	float: left;
	width:16%;
	
}
nav a {
	color: #FFF;
	display: inline-block;
	width: 100%;
	text-align: center;
	text-decoration: none;
	line-height: 40px;
	
}
nav li a {

}
nav li:last-child a {
	border-right: 0;
}
nav a:hover, nav a:active {
	background-color: #FFF;/*พื้นหลังตัวที่เลือก*/
	color:#003f20;
}
nav a#pull {
	display: none;
		color:#003f20;
}

/*Styles for screen 600px and lower*/
@media screen and (max-width: 600px) {
	nav { 
  		height: auto;
	
  	}
  	nav ul {
  		width: 100%;
  		display: block;
  		height: auto;
		color:#CCC;
  	}
  	nav li {
  		width: 50%;
  		float: left;
  		position: relative;
		color:#CCC;
  	}
  	nav li a {
		border-bottom: 1px solid #576979;
		border-right: 1px solid #576979;
		color:#CCC;
	}
  	nav a {
	  	text-align: left;
	  	width: 100%;
	  	text-indent: 25px;
		color:#CCC;
  	}
}

/*Styles for screen 515px and lower*/
@media only screen and (max-width : 480px) {
	nav {
		border-bottom: 0;
	}
	nav ul {
		display: none;
		height: auto;
	}
	nav a#pull {
		display: block;
		background-color: #CCC;
		width: 100%;
		position: relative;
	}
	nav a#pull:after {
		content:"";
		background: url('nav-icon.png') no-repeat;
		width: 30px;
		height: 30px;
		display: inline-block;
		position: absolute;
		right: 15px;
		top: 10px;
	}
}

/*Smartphone*/
@media only screen and (max-width : 320px) {
	nav li {
		display: block;
		float: none;
		width: 100%;
	}
	nav li a {
		border-bottom: 1px solid #576979;
	}
}
