/*-------------------- Header Desktop ----------------------*/

#header1 {
	background: #fff;
}
#header1 > div {
	padding: 30px 15px 0;
	text-align: right;
}

.logo { float: left; }
.logo img { width: 140px; }

.head_lang {
	position: absolute;
	top: 10px;
	right: 15px;
	white-space: nowrap;
}

.findbox {
	display: inline-block;
	position: relative;
	margin: 20px 0px 50px 0;
	padding-right: 3px;
	border: solid 2px #e9e9e9;
	border-radius: 5px;
	background: #fff;
}
.findbox input[type=text] {
	border: none;
	padding: 7px 5px;
	width: 150px;
}
.findbox button {
	border: none;
	cursor: pointer;
	background: #fff;
}
.findbox button:hover {
	transform: translate(2px,2px);
}

.headmenu {
	position: relative;
	overflow: auto;
}
.headmenu a {
	color: #fff;
	display: inline-block;
	text-decoration: none;
	background: #C0C0C0;
	text-align: center;
	border: solid 1px #CCD4D8;
	border-radius: 5px 5px 0 0;
	font-size: 1.4em; 
	padding: 15px 15px; 
	min-width: 9%; 
	margin: 0 3px 0 0;
}
.headmenu a:hover, a.active {
	background: #DC2824;
	border-color: #DC2824;
}

@media screen and (max-width: 900px) {
	#header1 > div { padding: 20px 15px 0; }
	.logo img { width: 105px; }
	.findbox { margin: 10px 0px 30px 0; }
	.headmenu a { font-size: 1.1em; padding: 8px 8px; min-width: 65px; }
}
@media screen and (max-width: 670px) {
	.findbox { margin: 20px auto; }
}
@media screen and (max-width: 400px) {
	#header1 > div { padding: 20px 8px 0; }
	.logo img { width: 90px; }
	.headmenu a { margin: 0 1px 0 0; padding: 5px 5px; min-width: auto; }
}


/*-------------------- Header Mobile ----------------------*/

#header2, #header3 {
	display: none;
}
#logo{
	display: inline-block;
	margin: 0 0 0 14px;
	padding: 6px 0;
}
#logo img { height: 48px; vertical-align: top; }
#navmenu {
	float: right;
	margin: 15px 15px 0 0; 
}


/* Oppo A83 แนวนอนกว้าง 672px */
@media screen and (max-width: 670px) {
    #header1 { display: none; }
    #header2 {
		display: block;
		position: fixed;
		left: 0; top: 0; width: 100%;
		z-index: 6;
		background: #fff;
		text-align: left;
		padding: 0;
		box-shadow: 0px 2px 7px 0px rgba(0,0,0,0.3);
    }
	#header3 {
		display: block;
		height: 10px;
		margin-top: 52px;
	}
}


/*-------------------- Side Navigation Menu ----------------------*/

.sidenav {
    height: 100%; /* 100% Full-height */
    width: 250px;
    position: fixed; /* Stay in place */
    z-index: 7; /* Stay on top */
    top: 0;
    right: -265px;
    background-color: #5A6064; /* 824C28 3F647F 007F46 , 018791 */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.4s; /* 0.5 second transition effect to slide in the sidenav */
    padding-bottom: 10px;

    -webkit-box-shadow: -4px 2px 7px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: -4px 2px 7px 0px rgba(0,0,0,0.75);
    box-shadow: -4px 2px 7px 0px rgba(0,0,0,0.75);
}

.sidenav .closebtn {
	position: absolute; top: 0; right: 0;
	padding: 18px;
}
.sidenav .closebtn img { height: 18px; }

.sidenav .lang {	text-align: center; margin: 0 0px 15px; color: #fff; }
.sidenav .lang a {
	display: inline-block;
	font-size: 1em;
	width: 56px;
	padding: 10px 0px;
	line-height: 34px;
	color: #fff;
}
.sidenav .lang img { height: 54px; }
.sidenav #nav { text-align: center; }
.sidenav #nav a { 
	display: block; 
	line-height: 50px; 
	font-size: 1.5em;
	font-weight: 100;
	text-decoration: none;
}
.sidenav a { color: #fff; }
.sidenav a:hover, .sidenav a.active { background-color: #DC2824; } /* 602600 003154 DC2824 006D27 */

@media screen and (orientation:landscape) and (min-aspect-ratio: 16/9) {
    #logo img { height: 40px; }
    #navmenu { margin-top: 7px; }
    #navmenu img { height: 25px; }

    .sidenav { width: 200px; }
    .sidenav #homebtn { padding: 10px; }
    .sidenav #homebtn img { height: 20px; }
    .sidenav .closebtn { padding: 11px; }
    .sidenav .closebtn img { height: 18px; }
    .sidenav .lang img { height: 40px; }
}
