﻿/*------- DEFAULT -------*/
@font-face {
    font-family: 'thaisan';
    src: url('../fonts/ThaiSansNeue-Regular.eot') format('embedded-opentype');
    src: url('../fonts/ThaiSansNeue-Regular.eot?#iefix') format('embedded-opentype'),
    url('../fonts/ThaiSansNeue-Regular.woff') format('woff'),
    url('../fonts/ThaiSansNeue-Regular.ttf') format('truetype'),
    url('../fonts/ThaiSansNeue-Regular.svg##ThaiSansNeue-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
}


body, html {
    height: 100%;
    color: #333;
    font-size: 14px;
    /*font-family: Tahoma, Geneva, sans-serif;*/
	font-family: 'Prompt', sans-serif;
	background-color: #c8a24d;
}


h1, h2, h3, h4, h5, h6 {
    color: #000;
}

.address-footer {
    line-height: 22px;
}

.fo36 {
    font-size: 30px;
}

.fo20 {
    font-family: 'thaisan';
    font-size: 20px;
}

.fo24 {
    font-size: 24px;
}

.f-weight {
    font-weight: bold;
}

.container /*หน้ากว้าง*/
{
    max-width: 960px;
    position: relative;
}

.oh {
    overflow: hidden;
}

.pad0 {
    padding: 0;
}

.padR0 {
    padding-right: 0;
}

.padL0 {
    padding-left: 0;
}

.padL20 {
    padding-left: 20px;
}

.padA {
    padding: 15px;
}

.padLR25 {
    padding-left: 25px;
    padding-right: 25px;
}

.padT80 {
    padding-top: 80px;
}

.marCen {
    margin: 0 auto;
}

.mar0 {
    margin: 0;
}

.marB0 {
    margin-bottom: 0;
}

.marB8 {
    margin-bottom: 8px
}

.marT0 {
    margin-top: 0;
}

.marT5 {
    margin-top: 5px;
}

.marT10 {
    margin-top: 10px;
}

.marT15 {
    margin-top: 15px;
}

.marT20 {
    margin-top: 20px;
}

.marB15 {
    margin-bottom: 15px;
}

.marB20 {
    margin-bottom: 20px;
}

.marL15 {
    margin-left: 30px;
}


.intro-bg {
    background-image: url(../images/bg.jpg);
	background-color: #c8a24d;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    height: fit-content;
    max-width: 100%;
	background-position: center;
}
#rama10-bd{/*position:absolute;*/ margin-top: 0;margin-left: -480px; top: 0; left:50%; position:relative;}

#rama10-bd .col-md-6{padding-left:0; padding-right:0;}

.enterGreet{text-align: right;}
.enterSite{text-align: left;}

/*********** หน้าลงนามถวายพระพร ************/

.fill {
    width: 50%;
	position:relative;
   /* position: absolute;*/

    left: 25%;
	background-color: #FFF;
    box-shadow: 0 0 20px rgba(101,101,101,0.7);
    box-sizing: border-box;
    padding: 10px;
	border-radius: 6px;
}

.box-float {
    background-color: #FFF;
    box-shadow: 0 0 20px rgba(101,101,101,0.7);
    box-sizing: border-box;
    padding: 10px;
	border-radius: 6px;
}

.sub {
    border: 2px solid #ab7e04;
    overflow: hidden;
}

.name-king {
	width:100%;
    float: left;
    position: relative;
	text-align: center;
	padding-top:10px;
	padding-right:10px;
	margin-bottom: 5px;
	margin-top: 5px;
}

.light-king {
    width: 45%;
    float: left;
    margin-top: 25px;
	text-align: center;
	padding-bottom: 25px;
}
.light-king img{
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.fill-name {
    left: 40px;
    background-color: #fff7e1;
	background-image: url(../images/fill-name-bg.png);
	padding-left: 15px;
	padding-right: 15px;
	padding-bottom: 15px;

	width: 100%;
	
}
.fill-name img{margin-left: auto; margin-right: auto; }
.fill-name .form-control{width: 98%; margin-left: auto; margin-right: auto; }
.bt_greet { bottom: 0; clear: both;margin-top: 15px; /*padding-bottom: 15px;*/}
.bt_greet img{ margin-left: auto; margin-right: auto;}
.alert-box {
	position:absolute;
	top:50%;
	left:35%;
}
.view-box {
	width:400px;
	position:absolute;
	top: 40%;
    left: 37%;
}
.view-text {
	background-color:#fff7e1;
	width:308px;
	height: 179px;
	color:#8f6800;
	text-align:center;
	padding:0 10px;
	box-sizing:border-box;
	font-family: 'Prompt', sans-serif;
}


.view-text h4{line-height: 22px;}




/**************** responsive ******************/


@media (max-width: 1280px) {
	.fill {width: 70%; left:15%;}
	
}

@media (max-width: 1169px) {
	.fill-name {left: 20px;}

}


@media (max-width: 991px) {
	
	.light-king ,.name-king {float:none; width:100%}
	.name-king {
		border-left: 0px solid #8f6800;
		margin-bottom: 0;
		margin-top: 0;
	}
	.light-king img,.fill-name img {width: auto;}
	.fill-name {margin-top: 25px;position: relative; left: 0;}
	.alert-box {left:19%;}
	.view-box {left: 25%;}
}


@media (min-width: 768px) and (max-width: 991px)   {
	#rama10-bd{margin-left: -50%; }
}

@media (max-width: 736px) and (min-height: 737px) {
	#rama10-bd {width:70% !important;}
}



@media (min-width: 768px) {

    .container /*หน้ากว้าง*/
    {
        width: 100%;
    }
}


@media (max-width: 767px) {

	.intro-bg {background-image: url(../images/bg_mobile_vtc.jpg);height: fit-content;}
	#rama10-bd {margin-left:auto; left:0;/**/ }
	#rama10-bd.container{padding-left:0; padding-right:0; width:100%;}
	#rama10-bd .col-sm-7.col-xs-12  img{ margin-left:auto; margin-right:auto;}
	.enterGreet,.enterSite{text-align: center;}
	.light-king img,.fill-name img {width: 100%;}
	#form .col-xs-12{padding-right: 5px;}
	.alert-box {width:60%;left:22%;}
	.alert-box img{width: 100%;}	
	.bt_greet img { width:auto; height:55px;}
}



@media (max-width:640px) {	
	.alert-box {
		width:60%;
		top:35%;
	}
	
	.view-box {left:18%;}
	.view-box img{width: 100%}
	.view-text {margin-left: auto; margin-right: auto;padding-left: 17px; padding-right: 17px; width: 315px;}
	.none-640 {display: none;}
	.view-text-col{background-color: #fff; width: 17px; float: left; display: block;}
}
/**/

@media (max-width: 580px) and (min-height: 737px) {

	#rama10-bd { width: 75% !important;}
}

@media (max-width:540px) {	
	.view-box {left:15%;}

}




@media (max-width:480px) {
	.fill {width:100%;left:0;}
	.alert-box {
		width:70%;
		left:15%;
	}
	.view-box {left:10%;}
}
@media (max-width:420px) {	
	
	.view-box {width:80%; }
	.view-box .col-xs-12 {padding-left: 0; padding-right: 0;}
	.view-text {min-height: 179px;  width: 100%; background-image: url(../images/fill-name-bg.png); padding-top: 15px; }
	.none-420 {display: none;}
}
@media (max-width: 369px) {

.bt_greet img{ width: 100%;}
}
@media (max-width:360px) {	
	.alert-box {
		width:90%;left:5%;
	}
}

@media (max-width: 440px)and (min-height: 737px) {

	#rama10-bd {  width: 95% !important;}
	
	
}


@media only screen 
and (min-device-width : 1601px) 
and (max-device-width : 2560px) 
and (orientation : landscape) { 
   #rama10-bd {top: 10%;}
	.fill {top: 10%;}
}



@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1366px) 
and (orientation : landscape) { 
	.bt_greet{margin-top:10px;}
	.bt_greet img { width:auto; height:55px;}
}

@media (min-width: 768px) and (max-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (orientation : portrait) {
	#rama10-bd {top: 55px;}
	.fill {top: 55px;}
}

@media (min-width: 1024px) and (max-width: 1366px) and (-webkit-min-device-pixel-ratio: 2) and (orientation : portrait) {
	#rama10-bd {top: 10%;}
	.fill {top: 10%;}
}





/* iphone6 ,iphone6s - landscape*/
@media only screen 
and (min-device-width : 375px) 
and (max-device-width : 736px) 
and (orientation : landscape) { 
 
	#rama10-bd .img-responsive{width: 60%;}

}




/* iphone5/5s -  landscape*/
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 568px) 
and (orientation :  landscape) 
{ 
	#rama10-bd .img-responsive{width: 50%;}	
}




@media (min-width: 992px) {
    .intro-bg {
        max-width: 100%;
    }
}

