
@font-face {
  	font-family: 'MyWebFont';
	src:url('../font/supermarket.ttf') format('truetype');
}
body{
	background-color: #EEE;
	border: 0px;
	margin:0px;
	margin-left: auto;
	margin-right: auto;
	font-family: 'MyWebFont';
	/*background-image: url("../img/bg.jpg");
	background : url("../img/bg.jpg") no-repeat right top fixed;*/
  	background-repeat: no-repeat;
  	background-position: center top;
  	background-attachment: fixed;
  	font-size: 16px;

}
h3{
	border: 0px;
	margin: 0px;
	padding: 10px;
	background-color: #2b4d7d;
	border-radius: 20px 20px 0px 0px ; 
	color:white
}


.background_imag {
  	position: fixed; /* Stay in place */
  	z-index: -1; /* Sit on top */
  	left: 0;
  	top: 0;
  	width: 100%; /* Full width */
  	height: 100%; /* Full height */
  	background-image: url("../img/bg.jpg");
  	background-position: center top;
  	background-repeat: no-repeat;
}

.header{
	background-color: rgba(220,220,220,0.9);
	border:0px;
	margin:0px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	position: fixed; /* Stay in place */
	z-index: 10;
	height: 145px;
	font-size: 20px;
}

.logo{
	background-color: #2b4d7d;
	border: 0px;
	margin:0px;
	padding: 2px;
	color:white;
	height: 34px;	
	font-size: 22px;

}
.logo img{
	width: 30px;
	height: auto;

}

.location{
	padding: 0px;
}
.location img{
	width: 70px;
	height: auto;
	padding: 2px;
	margin: 5px;
	border-radius: 100px 100px 100px 100px ;
	/*border: 1px solid #DAA520;*/
}

/*.......................................*/
.data{
	clear: both;
	padding: 5px;
}
.rate,.inform,.CONTACT{
	border: 1px solid #DAA520;
	border-radius: 20px 20px 20px 20px ; 
	background-color: rgba(255,255,255,0.8);
}
.vote{
	width: auto;
	display: inline-block;
	padding: 6px;
	font-size: 20px;
}
.vote img{
	width: 50px;
}
.vote_data_div{
	position: relative;
	text-align: left;
	width: 600px;
}
.vote_data{
	display: inline-block;
	text-align: center;
	border: 2px;
	margin:5px;
	padding: 2px;
	width: 100px;
	height: auto;
	background-color: rgba(255,255,255,1);
	border-radius: 5px 5px 5px 5px ;
}
.vote_data img{
	width: 90px;
	border: 2px;
	margin:5px;
	padding: 2px;
}
.CONTACT_from{
	border: 2px;
	margin:2px;
	padding: 2px;
	text-align: center;
}
.CONTACT_from textarea{
	width: 90%;
	height:150px;
	font-size: 18px;
	border: 1px solid #DAA520;
    border-radius: 5px 5px 5px 5px ;
}
.btn-file {
    position: relative;
    overflow: hidden;
    border: 1px solid #DAA520;
    border-radius: 5px 5px 5px 5px ;
	margin:0px;
	padding: 0px;
	width: 90%;
	background-color: #FFFFFF;

}
.btn-file-name{
	position: relative;
	display: inline-block;
	float: left;
	border: 0px;
	margin:0px;
	padding: 0px;
    height: 35px;
    width: 65%;
    text-align: center;
}
.btn-file-button{
	position: relative;
	display: inline-block;
	float: left;
	border: 0px;
	margin:0px;
	padding: 0px;
	width: 25%;
    height: 35px;
    color: #FFFFFF;
    border-radius: 5px 0px 0px 5px ;
    background-color: #2b4d7d;
}
.btn-file-close{
	position: relative;
	display: inline-block;
	float: left;
	border: 0px;
	margin:0px;
	padding: 0px;
	width: 10%;
    height: 35px;
    color: #FFFFFF;
    border-radius: 0px 5px 5px 0px ;
    background-color: #FF0000;
    text-align: center;
}
.btn-file-name span,.btn-file-button span,.btn-file-close span{
	margin: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.load_image{
	position: relative; /* ทำให้ divใน อยู่ที่นั้น*/
	background-color: rgba(255,255,255,1);
	height: 60px;
	width: 80px;
	border-radius: 10px 10px 10px 10px ;
	border: 1px solid #DAA520;
}
.load_image input[type=file] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: right;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
    filter: alpha(opacity=0);
    opacity: 0;
}
.load_image img{
	width: 25px;
	margin: 0;
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translate(-50%, -50%);
	
}
.load_image span{
	display: block;
	margin-top: 35px;
	font-size: 12px;
}

/*.......................................*/
.footer{
	clear: both;
	text-align: center;
	background-color: #2b4d7d;
	color:white;
	border: 0px;
	margin:0px;
	padding: 20px;
	margin-left: auto;
	margin-right: auto;
	font-size: 16px;
}
/*................popup.......................*/
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 15; /* Sit on top */
  padding-top: 10%; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}
.no_close{
	display: none; /* Hidden by default */
  	position: fixed; /* Stay in place */
  	z-index: 99; /* Sit on top */
  	padding-top: 50%; /* Location of the box */
  	left: 0;
  	top: 0;
  	width: 100%; /* Full width */
  	height: 100%;
}

/* Modal Content */
.modal-content {
  background-color: #F8F8FF;
  margin: auto;
  padding: 5px;
  border: 1px solid #888;
  width: 90%;
  border-radius: 15px 15px 15px 15px ;

}
.modal-content img{
	width: 150px;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
#popup{
	text-align: center;
	font-size: 30px;
}
.send_data{
	font-family: 'MyWebFont';
	border-radius: 10px 10px 10px 10px ;
	/*border: 1px solid #DAA520;*/
	background-color: #2b4d7d; 
	font-size: 30px; 
	height: 50px; 
	width: 150px;
	color: #FFFFFF;
}
/*................upload.......................*/
#loading{
	display : none; 
	width: 90%; 
	height: 10px; 
	border-radius: 5px 5px 5px 5px; 
	border: 1px solid #888;
}
#loadingup{
	float: left; 
	background-color: #2b4d7d; 
	width: 1%; 
	height: 10px; 
	border-radius: 5px 5px 5px 5px;
	transition: 0.5s;
}
/*................upload.......................*/
@media screen and (max-width: 600px) {
	.vote_data_div{
		width: 475px;
	}
	.modal {
		padding-top: 20%;
	}
}
@media screen and (max-width: 480px) {
	.vote_data_div{
		width: 360px;
	}
	.background_imag {
	  	background-image: url("../img/bg.jpg");
	  	background-position: center top;
	  	background-size: auto 120%; 
	}
}

@media screen and (max-width: 450px) {
	
	.vote_data_div{
		width: 360px;
	}
}
@media screen and (max-width: 397px) {
	.footer{
		font-size: 14px;
	}
	
}

@media screen and (max-width: 365px) {
	.vote_data{	
		margin:2px;
		width: 90px;
		font-size: 12px;
	}
	.vote{		
		padding: 2px;
	}
	.footer{
		font-size: 12px;
	}
	#popup{
		text-align: center;
		font-size: 30px;
	}
	.send_data{
		font-size: 20px;
		width: 120px;
		height: 50px;
	}
	.rate,.inform,.CONTACT{
		border-radius: 20px 20px 10px 10px ;
	}
	.vote_data img{
		width: 80px;
	}
	.vote_data_div{
		width: 305px;
	}

}