
@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-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;
}
a{
	text-decoration:none
}

.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_div_confirm{
	font-size: 16px;
}
.vote_data_div_confirm .send_data{
	width: 100px;
	background-color: #ff9000;
}
.vote_data{
	position: relative; 
	display: inline-block;
	text-align: center;
	border: 0px;
	margin:5px;
	padding: 2px;
	width: 100px;
	height: 100px;
	background-color: rgba(255,255,255,1);
	border-radius: 5px 5px 5px 5px ;
}
.data .vote_data img{
	position: absolute;
	width: 50px;
	border: 0px;
	margin:0px;
	padding: 0px;
	top: 30px;
	left: 50%;
	transform: translate(-50%, -50%);
}
.data .font_txt{
	position: absolute;
	border: 0px;
	margin:0px;
	padding: 0px;
	top: 80px;
	left: 50%;
	transform: translate(-50%, -50%);

}

.font_txt{
	width: 98%;
	text-align: center;
}
.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 ;
}
.table_list {
	border-collapse: collapse;
}
.table_list table,.table_list td,.table_list th{
	margin:0px;
	padding: 0px;
	border: 1px solid #7f7f7f;
}
.table_list th{
	background-color: #cccccc;
	
}
.table_detail tr{
	height: 35px;
}
.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{
	z-index: 1;
	position: relative;
	display: inline-block;
	float: left;
	border: 0px;
	margin:0px;
	padding: 0px;
    height: 35px;
    width: 65%;
    text-align: center;
}
.btn-file-button{
	z-index: 2;
	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{
	z-index: 2;
	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-name2{
	z-index: 1;
	overflow: hidden;
	position: relative;
	border: 0px;
	margin:0px;
	padding: 0px;
    height: 35px;
    width: 100%;
    text-align: center;
}
.btn-file-button2{
	z-index: 2;
	position: relative;
	border: 0px;
	margin:0px;
	padding: 0px;
	width: 100%;
    height: 35px;
    color: #FFFFFF;
    border-radius: 5px 5px 0px 0px ;
    background-color: #2b4d7d;
}
.btn-file-close2{
	z-index: 2;
	position: relative;
	border: 0px;
	margin:0px;
	padding: 0px;
	width: 100%;
    height: 35px;
    color: #FFFFFF;
    border-radius: 0px 0px 5px 5px;
    background-color: #FF0000;
    text-align: center;
}
.data-file-name{
	position: relative;
	border: 0px;
	margin:0px;
	padding: 0px;
	width: 100%;
}
.btn-file-name span,.btn-file-button span,.btn-file-close span,.btn-file-button2 span,.btn-file-close2 span,.data-file-name 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;
	position: absolute;
	top: 35px;
	left: 20px;
	font-size: 12px;
}
.button_list{
	font-family: 'MyWebFont';
	border-radius: 10px 10px 10px 10px ;
	/*border: 1px solid #DAA520;*/
	background-color: #2b4d7d; 
	font-size: 16px; 
	height: 40px; 
	width: 100px;
	color: #FFFFFF;
}

/*.......................................*/
.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 ;
	}
	.data .vote_data img{
		top: 35px;
	}
	.data .font_txt{
		top: 85px;
	}
	.vote_data_div{
		width: 305px;
	}

}