/* Custom styles for the special pages */

@font-face {
    font-family: 'EB Garamond';
    src: url('../font/EBGaramond-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'EB Garamond';
    src: url('../font/EBGaramond-Bold.ttf');
    font-weight: bold;
    font-style: normal;
}

html {
	height: 100%;
}

body {
	font-family: Sarabun, Arial, Helvetica, sans-serif;
	height: 100%;
}

#header
{
    height: 10vw;
    background: black;
    flex: 0 1 auto;
}
#container
{

    overflow:visible;
    margin-left:auto;
    margin-right:auto;
    margin-top:0;
    margin-bottom:0px;
    background:#fff;
    min-height:100vh;
    position: relative;
    display: flex;
    flex-flow: column;
}

#header-table{
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
}

#bannerlogo{
	text-align:center;
	vertical-align: middle;

}

#lawsoclogo{
	text-align:center;
	vertical-align: middle;
	margin-left: 30px;
}

#bannerwords {
	/*font-family:Segoe UI, Arial, Helvetica, sans-serif;*/
	font-family: "EB Garamond";
	font-size:3.3vw;
	color: white;
	text-align:left;
	vertical-align: bottom;
	padding-left: 2%;
	height: 60%;
}

#bannerwords-lower {
	font-family:Sarabun;
	font-size:1.7vw;
	color: white;
	text-align:left;
	vertical-align: top;
	padding-left: 2%;
	height: 40%;
}

.noselect {
	cursor: default;
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

#announcement{
	background-color: red;
	text-align: center;
	font-size: 15px;
	color: white;
	padding: 5px;
}

#login-main {
/*	position: relative;
	margin: 0;
    padding: 0;*/
    height: 80%;
    width: 100%;
	background: url(../img/background/login_bg_ies.jpg?v=3) no-repeat right top;
	background-color: #DFE3E5;
/*    background-position: center top;*/
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	flex: 1 1 auto;
	position: relative;
	/*padding-bottom: 3em;*/

/*    background-repeat: no-repeat;
    width: auto;
    height: 0;
    padding-top: 39.13%; /* (img-height / img-width * container-width) **/
}

.height40 {
	height: 40px;
}

#login-main > .message-container{
	position: absolute;
	top: 10%;
	left: calc(5% + 500px + 5em);
}

.flex-container {
	display: flex;
}

.login-section {
	position: relative;
	top: 10%;
	left: 5%;
	bottom: 0;
	right: 0;
	min-height: 400px;
	width: 500px;
	max-height: 70%;
	max-width: calc(100vw - 7%);
}

.login-box-container {
	min-height: 350px;
	margin-top: 5vh;
	padding: 1.667em;
}

.input label {
	font-size: 18px;
	margin-bottom: 15px;
}

#login-footer-container {
	background: black;
	width: 100%;
	height: 80px;
	position: relative;
	bottom: 0;
	color: white;

}

#login-footer-container a {
	color: white;

}

#footer-table{
	width: 90%;
	margin-left: auto;
	margin-right: auto;
	height:100%;
}

#footer-table td{
	font-size:15px;
	vertical-align: middle;
	height: 100%;
}

#footer-table td:first-child{
	text-align: left;
}
#footer-table td:last-child{
	text-align: right;
}

.btn {
	width: 130px;
	height:40px;
	font-size: 15px;
}

.separator {
	font-size: 20px;
	margin:0 20px;
}

#password-recovery > fieldset {
	border-bottom: none;
}

.title {
	font-weight: bold;
	font-size: 25px;
}

form.with-margin .input {
	margin-top: 1.6667em;
	margin-bottom: 1.6667em;
}

.login-bg,
.wizard-bg {
	background: url(../img/bg.png) no-repeat center -200px;
	min-height: 100%;
}
.error-bg,
.code-page {
	background: url(../img/old-browsers-bg/login-radial-bg.png) no-repeat center center;
	-webkit-background-size: 100% 100%;
	-moz-background-size: 100% 100%;
	-o-background-size: 100% 100%;
	background-size: 100% 100%;
	background: -moz-radial-gradient(center, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)), #70828f;
	background: -webkit-gradient(radial, 50% 50%, 10, 50% 50%, 500, from(rgba(255, 255, 255, 0.8)), to(rgba(255, 255, 255, 0))), #70828f;
	min-height: 100%;
	}
	.login-bg section,
	.wizard-bg section,
	.error-bg section,
	.code-page section {
		position: absolute;
		z-index: 89;
		left: 50%;
		top: 50%;
		}
		.login-bg section,
		.error-bg section {
			width: 34em;
			margin-left: -17em;
			margin-top: -15em;
			}
			.login-bg section#message {
				margin-top: -23.5em;
			}
			.error-bg section {
				-moz-transition: all 200ms;
				-webkit-transition: all 200ms;
				-o-transition: all 200ms;
				transition: all 200ms;
			}
			.error-bg section#error-log {
				z-index: 88;
				opacity: 0;
				filter: alpha(opacity=0);
			}
			.error-bg.with-log section {
				margin-top: -19em;
				}
				.error-bg.with-log section#error-desc {
					margin-left: -36em;
				}
				.error-bg.with-log section#error-log {
					margin-left: 2em;
					opacity: 100;
					filter: none;
				}
			
		.wizard-bg section {
			width: 64em;
			margin-left: -32em;
			margin-top: -23em;
		}
	.login-bg .block-content,
	.wizard-bg .block-content,
	.error-bg .block-content {
		-moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
		-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
		box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
	}
	.login-bg .block-border,
	.wizard-bg .block-border,
	.error-bg .block-border {
		-moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
		-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
		box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
		}
		.login-bg .block-border .block-content,
		.wizard-bg .block-border .block-content,
		.error-bg .block-border .block-content {
			-moz-box-shadow: 0 0 0.8em rgba(255, 255, 255, 0.5);
			-webkit-box-shadow: 0 0 0.8em rgba(255, 255, 255, 0.5);
			box-shadow: 0 0 0.8em rgba(255, 255, 255, 0.5);
		}
		
	.error-bg #send-report p {
		padding-left: 10em;
		}
		.error-bg #send-report p .float-left {
			margin-left: -10em;
			width: 8em;
		}

/******** Page for code errors : 404... *********/
.code-page {
	text-align: center;
	}
	.code-page h1 {
		position: absolute;
		left: 0;
		right: 0;
		top: 50%;
		margin-top: -1em;
		text-align: center;
		font-size: 16em;
		color: #A1A8AB;
		-moz-text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.35), 1px 1px 1px rgba(255, 255, 255, 0.75);
		-webkit-text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.35), 1px 1px 1px rgba(255, 255, 255, 0.75);
		text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.35), 1px 1px 1px rgba(255, 255, 255, 0.75);
	}
	.code-page p {
		position: absolute;
		left: 0;
		right: 0;
		top: 50%;
		text-align: center;
		font-size: 3em;
		font-weight: bold;
		text-transform: uppercase;
		-moz-text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.35), 1px 1px 1px rgba(255, 255, 255, 0.75);
		-webkit-text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.35), 1px 1px 1px rgba(255, 255, 255, 0.75);
		text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.35), 1px 1px 1px rgba(255, 255, 255, 0.75);
	}
	.code-page section {
		margin-top: 5em;
		width: 28em;
		margin-left: -14em;
		}
		.code-page section .action-tabs {
			padding-top: 1em;
			}
			.code-page section .action-tabs.on-form {
				padding-top: 1.75em;
			}
		.code-page section form.block-content {
			padding-left: 0;
			padding-right: 0;
			}
			.code-page section form.block-content #s {
				width: 15em;
			}

/************* Mobile customization *************/
@media only screen and (max-device-width: 480px) {
	
	.login-bg,
	.wizard-bg {
		background: #70828f url(../img/bg-mobile.png) no-repeat center -200px;
		}
		.login-bg,
		.error-bg {
			padding: 1em;
		}
		.login-bg section,
		.wizard-bg section,
		.error-bg section {
			position: static;
			width: auto;
			margin-top: 0;
			margin-left: 0;
			left: auto;
			top: auto;
			}
			.error-bg section#error-log {
				opacity: 100;
				filter: none;
			}
	.error-bg,
	.code-page {
		background: #70828f url(../img/old-browsers-bg/login-radial-bg-mobile.png) no-repeat center center;
		background: -moz-radial-gradient(center, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)), #70828f;
		background: -webkit-gradient(radial, 50% 50%, 10, 50% 50%, 240, from(rgba(255, 255, 255, 0.8)), to(rgba(255, 255, 255, 0))), #70828f;
	}
	
	.error-bg #send-report p {
		padding: 0;
		}
		.error-bg #send-report p .float-left {
			margin-left: 0;
			width: auto;
		}
		.error-bg #send-report p span.float-left {
			float: right;
			width: 40%;
		}
		.error-bg #send-report p #sender {
			width: 50%;
		}
	
	/******** Page for code errors : 404... *********/
	.code-page h1 {
		font-size: 10em;
	}
	.code-page p {
		font-size: 1.75em;
	}
	.code-page section {
		width: auto;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		margin: 0;
		}
		.code-page section .action-tabs {
			display: none;
		}
	
}

p.inline-small-label, .inline-small-label p {
padding:0;
text-align:left;
}

.inline-small-label label {
margin-left:0;
}

.inline-small-label input {
width:200px;
}

.form .title-field {
	width: 20%;
}
.form .name-field {
	width: 80%;
}
.form .country-field {
	width: 10%;
}
.form .phone-field {
	width: 90%;
}

.captcha {
	display: block;
}

.ui-widget.ui-tooltip {
	font-size: 15px;
}

@media only screen and (max-width: 850px) {
	#login-main > .message-container{
		position: relative;
		left: 5%;
		width: 95%;
		top: 10px;
		display: flex;
	}

	#login-main {
		background-size: cover;
	}
}