@font-face {
  font-family: khmer-os-muol;
  src: url(../fonts/KhmerOS_muol.ttf);
}
@font-face {
  font-family: khmer-os-system;
  src: url(../fonts/KhmerOS_sys.ttf);
}
@font-face {
  font-family: khmer-os-battambang;
  src: url(../fonts/KhmerOS_battambang.ttf);
}

* {
	margin: 0;
	padding: 0;
}
header {
width: 100%;
display: block;
height: 80px;
border-bottom: 1px solid #333;
}
.logo {
width: 180px;
height: 100%; 
margin-left: 20px;
float: left;
}
.text_marquee, .Photo_marquee {
width: calc(100% - 205px);
height: 50%; 
float: left;
line-height: 40px;
font-family: khmer-os-muol;
font-size: 1.3em;
}
.Photo_marquee img {
padding: 0 19.8px;
display: inline-block;
background: white;
}
main {
width: 100%;
height: 100%;
display: block;
position: relative;
}
.menu {
	width: 100%;
	height: 40px;
	display: block;
	position: relative;
	float: left;
}
.menu ul {
	list-style: none
}
.menu ul li {
	width: 130px;
	height: 40px;
	position: relative;
	display: inline-block;
	text-align: center;
	line-height: 40px;
	margin-right: 2px;
	float: left;
background: #ebe9f9; /* Old browsers */
background: -moz-linear-gradient(top,  #ebe9f9 0%, #d8d0ef 50%, #cec7ec 51%, #c1bfea 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top,  #ebe9f9 0%,#d8d0ef 50%,#cec7ec 51%,#c1bfea 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom,  #ebe9f9 0%,#d8d0ef 50%,#cec7ec 51%,#c1bfea 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ebe9f9', endColorstr='#c1bfea',GradientType=0 ); /* IE6-9 */
}
.menu ul li a {
	text-decoration: none;
	text-align: center;
	line-height: 40px;
	display: block;
}
.menu ul li:hover {
background: #cb60b3; /* Old browsers */
background: -moz-linear-gradient(top,  #cb60b3 0%, #c146a1 50%, #a80077 51%, #db36a4 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top,  #cb60b3 0%,#c146a1 50%,#a80077 51%,#db36a4 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom,  #cb60b3 0%,#c146a1 50%,#a80077 51%,#db36a4 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cb60b3', endColorstr='#db36a4',GradientType=0 ); /* IE6-9 */
}
.menu ul li:hover a {
	color: #FFF;
}
main .containers {
width: calc(100% - 400px);
min-height: 200px;
padding: 10px;
margin-top: 0px;
float: left;
}
main .containers #searchPhoto {
width: 100%;
}
main .containers #searchPhoto label{
width: 100%;
display: inline-block;
font-family: khmer-os-muol;
font-size: 1.2em;
text-align: center;
}
main .containers #searchPhoto input[type="text"] {
width: 80%;
margin-top: 5px;
padding: 10px;
display: inline-block;
font-family: arial;
font-size: 1.2em;
}
main .containers #searchPhoto .bt-submit {
display: inline-block;
position: relative;
padding: 6px 10px;
font-size: 1em;
font-family: khmer-os-battambang;
}
main .containers #searchPhoto .bt-submit:hover {
color: #FFF;
background: #cb60b3; /* Old browsers */
background: -moz-linear-gradient(top,  #cb60b3 0%, #c146a1 50%, #a80077 51%, #db36a4 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top,  #cb60b3 0%,#c146a1 50%,#a80077 51%,#db36a4 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom,  #cb60b3 0%,#c146a1 50%,#a80077 51%,#db36a4 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cb60b3', endColorstr='#db36a4',GradientType=0 ) /* IE6-9 */
}

main .containers .client_count_P {
font-family: khmer-os-system
}

main aside {
width: 350px;
min-height: 80px;
display: inline-block;
position: relative;
float: right;
}
main aside #myCanvas {
border:3px solid #000000;
margin-left: 5px;
}
footer {
width: 100%;
bottom: 0;
display: fixed;
position: fixed;
font-family: khmer-os-system;
}
footer h2 {
height: 50px;
color: blue;
}
.footer_p {
	width: 100%;
	height: 36px;
	display: block;
	background: #000;
}
footer .footer_p p {
	height: 38px;
	text-align: center;
	font-size: 1.2em;
	background: #000;
	color: orange;
}

/* Button used to open the contact form - fixed at the bottom of the page */
.open-button {
  background-color: #555;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  position: fixed;
  bottom: 23px;
  left: 28px;
  width: 280px;
}

/* The popup form - hidden by default */
.form-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 15px;
  border: 3px solid #f1f1f1;
  z-index: 9;
}
.form-popup h1{
	text-align: center;
}
/* Add styles to the form containers */
.form-container {
  max-width: 300px;
  padding: 10px;
  background-color: white;
}

/* Full-width input fields */
.form-container input[type=text], .form-container input[type=password] {
  width: 90%;
  padding: 15px;
  margin: 5px 0 10px 0;
  border: none;
  background: #f1f1f1;
}

/* When the inputs get focus, do something */
.form-container input[type=text]:focus, .form-container input[type=password]:focus {
  background-color: #ddd;
  outline: none;
}

/* Set a style for the submit/login button */
.form-container .btn {
  background-color: #4CAF50;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom:10px;
  opacity: 0.8;
}

/* Add a red background color to the cancel button */
.form-container .cancel {
  background-color: red;
}

/* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
  opacity: 1;
}
.viewport_smartphone {
	display: none;
}
@media screen and (max-device-width: 414px){
	* {
		margin: 0;
		padding: 0;
	}
	header {
		width: 120%;
		display: block;
		margin: 0;
	}
	.logo {
		margin-left: 5px;
	}
	.text_marquee, .Photo_marquee {
		width: calc(100% - 190px);
	}
	main .containers #searchPhoto {
		width: 100%;
	}
	main {
		width: 100%;
	}
	main .containers {
		width: 100%;
	}
	main .containers #searchPhoto input[type="text"] {
		width: 100%;
		display: block;
	}
	main aside {
		width: 100%;
		display: block;
		float: left;
	}
		main aside #myCanvas {
		display: block;
		margin: 30px auto 0 auto;
	}
	.viewport_smartphone {
		display: block;
		width: 100%;
		height: 200px;
		float: left;
	}
	footer {
		display: block;
		width: 100%;
		margin-top: 50px;
		bottom: 0;
	}
	footer h2 {
		height: 50px;
		color: blue;
	}
	.footer_p {
		width: 100%;
		height: 136px;
		display: block;
		background: #000;
	}
	footer .footer_p p {
		width: calc(100% - 30px);
		display: block;
		text-align: center;
		color: orange;
		font-size: 1.2em;
	}
}