a, li {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Global CSS that are applied for all screen sizes */

i {
	font-size: 0.7em;
}

.notice {
	color: #ffffff;
	font-size: 0.9em;
}

.baht {
	color: #FF6347;
	font-size: 0.9em;
	/* text-shadow: 1px 1px 0px #283744; */
	/* color: rgba(0,0,0,0.6); */
	/* text-shadow: 2px 8px 6px rgba(0,0,0,0.2), */
    /* 0px -5px 35px rgba(255,255,255,0.3); */
}

.nav {
	/* max-width: 1240px; */
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1.03125em;
	font-weight: 300;
  	font-family: 'Kanit', sans-serif;
}

.nav li span {
	display: block;
}

.nav a {
	display: inline;
	color: rgb(255, 255, 255);
	text-decoration: none;
	/* 
  	border-bottom: 3px solid white;
    border-right: 3px solid white;
	display: block;
	-webkit-transition: color .5s, background .5s, height .5s;
	-moz-transition: color .5s, background .5s, height .5s;
	-o-transition: color .5s, background .5s, height .5s;
	-ms-transition: color .5s, background .5s, height .5s;
	transition: color .5s, background .5s, height .5s;
	*/
}

.nav i{
	/* Make the font smoother for Chrome */
	-webkit-transform: translate3d(0, 0, 0);
	-moz-transform: translate3d(0, 0, 0);
	-o-transform: translate3d(0, 0, 0);
	-ms-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}

/* Remove the blue Webkit background when element is tapped */

a, button {
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Hover effect for the whole navigation to make the hovered item stand out */
/* 
.no-touch .nav ul:hover a {
	color: rgba(249, 249, 249, .5);
}

.no-touch .nav ul:hover a:hover {
	color: rgba(249, 249, 249, 0.99);
}
*/

/* Adding some background color to the different menu items */

.nav li {
  	padding: 7px 0;
	text-align: center;
	display: block;
	float: left;
	height: 5.65em;
	background: rgb(222, 223, 226);
	border-top: 2px solid white;
	border-left: 1px solid white;
	border-right: 1px solid white;
}

li.red {
	background: rgb(239, 107, 91);
}

li.yellow {
	background: rgb(245, 193, 79);
}

li.blue {
  background: #8bc6c7;
}



/* For screen bigger than 800px */
@media (min-width: 50em) {

	/* Transforms the list into a horizontal navigation */
	.nav li {
		width: 7.69230769%;
		/* float: left;
	 	height: 5.65em;
	 	*/
		-webkit-transition: border .5s;
		-moz-transition: border .5s;
		-o-transition: border .5s;
		-ms-transition: border .5s;
		transition: border .5s;
	}

	.nav a {
		/* display: block; */
		display: inline;
		width: auto;
	}
		
}

@media (min-width: 50em) and (max-width: 61.250em) {

	/* Size and font adjustments to make it fit into the screen*/
	.nav ul {
		/* font-size: 1.03125em; */
	}

}


/* The "tablet" and "big screen" version */
@media (min-width:32.5em){
	.nav li {
	  /*border-top: 2px solid white;
		border-left: 2px solid white;
	    border-bottom: 0.5px solid white;
		border-right: 0.5px solid white; */
	}
}


/* The "tablet" and "mobile" version */

@media (max-width: 49.938em) {		
	
	/* Instead of adding a border, we transition the background color */
	.no-touch .nav ul li a:hover,
	.no-touch .nav ul li a:active,
	.no-touch .nav ul li a:focus {
		background: rgb(242, 243, 246);
	}
}

/* CSS specific to the 2x3 columns version */
@media (min-width:32.5em) and (max-width: 49.938em) {
	
	/* Creating the 2 column layout using floating elements once again */
	.nav li {
		width: 14.28%;
		/* float: left; */
		/* height: 5.65em; */
		/* padding: 0.4em; */
	}
	
	/* Adding some padding to make the elements look nicer*/
	.nav a {
		/* padding: 0.5em; */		
	}

	/* Displaying the icons on the left, and the text on the right side using inlin-block*/
	.nav li span, 
	.nav li span.icon {
		display: inline-block;
		margin-left: 0.5em;
	}
}

/* Adapting the font size and width for smaller screns
@media (min-width: 32.5em) and (max-width: 38.688em) {
	
	.nav li span.icon {
		width: 50%;
	}

	.nav li .icon + span {
		font-size: 0.9em;
	}
}*/

@media (max-width: 32.438em) {

	/* Unhiding the styled menu link */
	.nav .navtoogle{
		margin: 0;
		display: block;
	}

	/* Adapting the layout of the menu for smaller screens : icon on the left and text on the right*/
	
	.nav li {
		width: 33.33%;
		height: 6.65em;
		border-top: 1px solid white;
		border-left: 0px;
		border-right: 1px solid white;
		/* height: 5.65em; */
		/* float: left; */
	}
}

