/* WEB DEFINED : http://www.webdefined.biz Compiled by Srinath */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
	margin: 0.2em 0;
	color: #000;
	padding: 0.2em 0;
	font-size: 0.8em;
	background-color: #FFFFCC;
	text-align:center;
	border: 1px solid #333333;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
	background-color:#FFF;
}
h1 {
	position: relative;
    text-shadow: 0 1px 1px #AAA, 0 0 5px #000;	 	
		z-index:100;
}
h1.home {
	padding-top: 200px;
	margin: 0;
	z-index: 10;
}
h2 {
	width:100%;
}
#container {
	position:relative;
	width: 100%;
	max-width:960px;
	margin:0 auto;
}
#news {
	position:absolute;
	top:150px;
	right:30px;
	z-index:50;
}
#under_construction {
	position:absolute;
	font-size:3em;
	letter-spacing:0.5em;
	width:100%;
	height:auto;
	background-color:#000;
	color:#FFF;
	opacity:0.7; filter:alpha(opacity=70); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
	text-align:center;
	top:380px;
	z-index:100;
}
#top_strip {
	position:absolute;
	top:0;
	width: 100%;
	max-width:960px;
	height:140px;
	background:url(../images/template/top_curve.png) top center no-repeat;
	z-index:9;
}
#quality_logo {
	position:relative;
	margin: -20px auto 0;
	width:160px;
	height:170px;
	z-index:10;
}
#logo {
	position:relative;
	margin:-23px auto 0;
	padding-left:28px;
	width:235px;
	height:428px;
	z-index:14;
}
#banner {
	position:absolute;
	top:102px;
	width: 100%;
	overflow: hidden;
	max-width:960px;
	height: auto;
	z-index:8;
	
}
#banner-inner {
	padding-top: 160px;
}
#banner img {
	position:relative;
	margin: auto;
}
#banner-inner img {
	width: 100%;
	height: auto;
}
#caption {
	position:absolute;
	top:250px;
	z-index:20;
}
.black_strip {
	position:absolute;
	top:512px;
	width: 100%;
	max-width:960px;
	height:40px;

	background-color:#000;
	opacity:0.5; filter: alpha(opacity=50); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
	z-index:11;
}
#content {
	position:relative;
	width:878px;
	margin-top:-60px;
	margin-bottom:22px;
	padding:40px;
}
#content img {
	margin-top:40px;
}
#menu {
	position:absolute;
	top:20px;
	width: 100%;
	max-width:960px;
	margin:auto;
	text-align:center;

	z-index:15;
}
#menu ul {
	display:table;
	margin:auto;
	padding:0;
}
#menu li {
	position:relative;
	float:left;
	*float:none;
	*display:inline;
	_float:none;
	_display:inline;
	list-style:none;
}
#menu ul li a {
	display: block;
	margin:0 10px;
}
.left {
	margin-left:90px;
}
.right {
	margin-right:90px;
}
.qr-code {
	margin: auto;
	top:62px;
	margin: auto;
	left: 0;
	right: 0;
	position: absolute;
	text-align: center;	
}
#footer_navigation {
	position:relative;
	background:url(../images/template/footer_curve.png) bottom center no-repeat;
	margin-top:-30px;
	width: 100%;
	max-width:960px;
	height:154px;
}
.eng_details {
	float:left;
	margin:60px 0 0 20px;	
}
.sinhala_details {
	float:right;
	margin:60px 20px 0 0;
	text-align: right;
}
.telenos {
	position:relative;
	text-align:center;
	margin: 10px;
}
.copyright {
	width:100%;
	margin-top: 5px;
	text-align:center;
}
.contact {
	text-align:center;
}
select,
input,
textarea {
	width:460px;
	padding:10px;
	margin:3px 0 9px;
	outline:none;
	border:solid 1px #505050;
}
select:focus,
input:focus,
textarea:focus {
	border:solid 1px #0066FF; 
	-webkit-box-shadow:#0066FF 0px 0px 5px; 
}
.help-block {
	position: absolute;
	background-color:#900;
	color:#FFF;
	padding:3px;
	width:474px;
	margin:-26px 0 0 -481px;
	
}
.row {
}
.set-relative {
	position: relative;
}
.centre {
	text-align:center;
}
.black_alpha {
	background: rgb(0, 0, 0);
	/* RGBa with 0.6 opacity */
	background: rgba(0, 0, 0, 0.70);
	/* For IE 5.5 - 7*/
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);
	/* For IE 8*/
	-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}
.black_alpha {
	background: rgb(0, 0, 0);
	/* RGBa with 0.6 opacity */
	background: rgba(0, 0, 0, 0.70);
	/* For IE 5.5 - 7*/
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);
	/* For IE 8*/
	-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";
}

.rotate {
	/* Safari */
	-webkit-transform: rotate(-90deg);
	/* Firefox */
	-moz-transform: rotate(-90deg);
	/* IE */
	-ms-transform: rotate(-90deg);
	/* Opera */
	-o-transform: rotate(-90deg);
	/* Internet Explorer */
	filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 600px) {
    /* Style adjustments for viewports that meet the condition */
	.left {
	margin-left: 10px;
}
.right {
	margin-right: 10px;
}

}

@media only screen and (max-width: 480px) {
    /* Style adjustments for viewports that meet the condition */
	.left {
	margin-left: 0;
	}
	.right {
		margin-right: 0;
	}
	#menu ul li a {
		margin: 0
	}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
