/* ดัดแปลงมาจากไฟล์ component.css */

a, li {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}


/* Global CSS that are applied for all screen sizes */

.detail_nav {
	/* max-width: 1240px; */
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1.03125em;
	font-weight: 300;
  	font-family: 'Kanit', sans-serif;
}

.detail_nav li span {
	display: block;
}

.detail_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;
	*/
}

.detail_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 */

.detail_nav li {
	display: block;
	float: left;
	/* height: 100%; */
	background: rgb(222, 223, 226);
}

li.room {
  	background: #6e7a8f;
}

li.customer {
  	background: #8bc6c7;
}

li.notice {
  	background: #a3c4a2;
  	margin-bottom: 3.1em; /* ระยะไม่ให้โดนเมนูล่างบัง */
}

li.notice a {
  	display: block;
	color: red;
}

li.renting {
  	background: #f5c14f;
}



/* For screen bigger than 800px */
@media (min-width: 50em) {

	/* Transforms the list into a horizontal navigation */
	.detail_nav li {
		width: 50%;
		text-align: center;
		border-top: 2px solid white;
		border-left: 2px solid white;
		padding: 0.5em;
		-webkit-transition: border .5s;
		-moz-transition: border .5s;
		-o-transition: border .5s;
		-ms-transition: border .5s;
		transition: border .5s;
	}

	.detail_nav a {
		/* display: block; */
		display: inline;
		width: auto;
	}
	
	li.room {
  		height: 237.5px;
	}
		
}

@media (min-width: 50em) and (max-width: 61.250em) {

	/* Size and font adjustments to make it fit into the screen*/
	.detail_nav ul {
		/* font-size: 1.03125em; */
	}

}


/* The "tablet" and "big screen" version */
@media (min-width:32.5em){
	.detail_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 */
	.detail_nav li {
		width: 100%;
		/* float: left; */
		/* height: 5.65em; */
		/* padding: 0.4em; */
	}
	
	/* Adding some padding to make the elements look nicer*/
	.detail_nav a {
		/* padding: 0.5em; */		
	}

	/* Displaying the icons on the left, and the text on the right side using inlin-block*/
	.detail_nav li span, 
	.detail_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) {
	
	.detail_nav li span.icon {
		width: 50%;
	}

	.detail_nav li .icon + span {
		font-size: 0.9em;
	}
}*/

@media (max-width: 32.438em) {

	/* Unhiding the styled menu link */
	.detail_nav .detail_navtoogle{
		margin: 0;
		display: block;
	}

	/* Adapting the layout of the menu for smaller screens : icon on the left and text on the right*/
	
	.detail_nav li {
		width: 100%;
		/* border-bottom: 2px solid white; */
		/* height: 5.65em; */
		/* float: left; */
	}
}

