/** ----------------------------------------------------------
 *
 * Contains the main layout of the page and the individual styles.
 * Acts as the main stylesheet for theme.
 *
 *		Include your notes or table of contents below....
 *		Include color hex's or values of your grid
 *
 *		1. OOCSS GRID
 *		2. MAIN LAYOUT
 *		3. HEADER
 *			- Brand
 *			- Search Form
 *		4. Navigation
 *			- Primary Navigation
 *			- tablet Navigation
 *			- Secondary Navigation
 *			- Secondary Nav 2-5 Levels deep
 *		5. Mixed
 *		6. Footer
 *		7. Page Specific Layout
 *			- Homepage
 *			- Search Results
 *		8. Device and Responsive Layout
 *			- Breakpoint 960px
 *			- Breakpoint 640px
 *				- Search Form
 *				- Main Content
 *		9. Print Styles
 *			- Simple Theme custom print styles
 *
 * @author Your Name <email@silverstripe.com>
 * ------------------------------------------------------- */

/* OOCSS Grid
* https://github.com/stubbornella/oocss/wiki/grids
*/

.line, /* line - Groups units on one horizontal line. Note: for mobile layout units may be stacked to avoid horizontal scrolling. */
.lastUnit {
	overflow:hidden;
	*overflow:visible;
	*zoom:1;
	padding:0 10px;
}
.unit { /* unit - Base class which divides a line into sections (columns). */
	float:left;
	padding:0 10px;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
	box-sizing:border-box; /* box-sizing:border-box; creates a box-model where 
	padding and border are NOT added onto the width - they are included in the width, 
	so a 200px wide element with 20px padding will be 200px, NOT 240px wide */
}
.unitRightv { /* Use this class if you want to offset a column eg: |--content(.unit)--|--content(.unit)--|--no-content--|--no-content--|--content(.unitRighttv)--| */
	float:right;
}

/* sizeXofY - Extends unit. Indicates the fractional width of the unit, for example size3of4 would take up three quarters, or 75%, of the horizontal space. 
The following fractions are supported: 1, 1/2, 1/3, 2/3, 1/4, 3/4, 1/5, 2/5, 3/5, 4/5 */
/* It is possible to add more columns if you wish you will just have to add the fractions that are missing eg: .size1of6 {width:16.66666%;} */

.size1of1 {
	float:none;
}
.size1of2, .size1of3, .size2of3, .size1of4, .size3of4, .size1of5, .size2of5, .size3of5, .size4of5 {width:100%;}
.lastUnit { /* lastUnit - Extends unit. Applied to the last child of every line. */
	float:none;
	width:auto;
	_position:relative; /* Bug fix for IE6 - Internet Explorer 6 and below wouldn't fail on properties that were prefixed with non-alphanumeric characters. 
	meaning that anything prefixed with _ wouldn't be picked up by any other browsers */
	_left:-3px;
	_margin-right:-3px;
}
.clearfix{clear:both;}
/* MAIN LAYOUT */
html, body {margin: 0;height: 100%;}
body {
    background: #333333 /*url(../images/demo04-inner.jpg) center -5px no-repeat*/;
    min-width: 240px; 
    -webkit-text-size-adjust: none; /* The text size is not adjusted for Safari on iPhone */
}
	.ie7 body,
	.ie8 body {
	    min-width: 860px; /* media queries are not supported in ie7/8 without a polyfill */
	}
	.wrapper{
		min-height: 100%;
		margin-bottom: -40px; 
	}
	.wrapper:after {
		height: 40px;
		content: ".";
		display: block;
		clear: both;
		visibility: hidden;
	}
	.main {
	    padding: 10px 0 10px 0;
		min-height:300px;
	}
	.inner {
	    max-width: 1100px;
	    margin: 0 auto;
	}
	.ie6 .inner {
	    width: 960px;
	}
	.no-sidebar .content-container {
	    float: left;
	    width:100%; /* makes content container full width when there is no sidebar */
	}
	.sidebar ,.how-to,.find-match{display:none;}
	.content-container {padding:10px 0;}
	.no-sidebar .sidebar {
		display: none;
	}

/* HEADER */
header{width:100%;-moz-transition:all 0.8s ease;-webkit-transition:all 0.8s ease;transition: all 0.8s ease;z-index:9;}

.header {
    margin: 0;
	background: #333333;
	padding:14px 0 0 0;
}
	.header .inner {
	    position: relative;
	    max-width: 1100px;
	}
	.inner-logo {
		position:absolute;
		z-index:9999;
		width: 90px;
		height: 60px;
		display:block;
		top:-14px;
		left:10px;
		-moz-transition:all 0.4s ease;-webkit-transition:all 0.4s ease;transition: all 0.4s ease;
	}
	.inner-logo embed{width:100%;height:auto;}
	/* Brand */
	header .brand, header .brand:hover {
	    float: left;
	    color: #fff;
	    display: inline-block;
		padding: 5px 0 20px 0;
		margin-left:105px;
		-moz-transition:all 0.4s ease;-webkit-transition:all 0.4s ease;transition: all 0.4s ease;
	}
		.brand h1 {
		    margin: 0;
		    padding: 0;
		    font-size: 25px;
		    font-family: 'ThaiSansNeue-Bold';
		    color: #fff;
		    font-stretch: normal; /* default value. No font stretching */
		    line-height: 1em;
		}
		.brand h2 {
		    margin: 0;
		    padding: 0;
		    font-size: 15px;
		    font-family: 'ThaiSansNeue-Regular';
		    color: #fff;
		}
/* STICKY HEADER */		
.sticky {position:fixed;height:96px;background:#660033;margin:0;padding-top:14px;}
.sticky .inner-logo{width:78px;height:52px;}
.sticky .brand {padding:0;margin-left:95px;}
.sticky .brand:hover {padding:0;margin-left:95px;}
.sticky .brand h1{font-size:20px;}
.sticky .brand h2{font-size:14px;}
.sticky #cssmenu {padding:0;margin-top:8px;}

/* CONTENT */
#container{
	width:100%;
	margin:0 auto;
	position:relative;
}
.left-box{background:#666;margin-bottom:10px;}
.right-box{background:#660033;margin-bottom:10px;}
.left-box-h{background:#666;margin-bottom:10px;}
.howto{padding-top:10px;}
.howto h1{color:#fff;background:#660033;}
.howto h4{color:#fff;}
.howto div{text-align:right;padding:0 10px 15px 0;}
.howto ol{padding:10px 0 20px 0;margin:0;}
.howto ol li{display:block;list-style:none;margin:0 0 10px 0;padding:5px 5px 10px 110px;text-indent:-100px;min-height:45px;}
.howto ol li:before{display:inline-block;font-size:45px;line-height:0;vertical-align:middle;color:rgba(255,255,255,0.4);margin:15px 0 0 100px;}
.howto ol li:nth-of-type(1):before{content:"01";}
.howto ol li:nth-of-type(2):before{content:"02";}
.howto ol li:nth-of-type(3):before{content:"03";}
.howto ol li:nth-of-type(4):before{content:"04";}
.howto ol li:nth-of-type(5):before{content:"05";}
.howto ol li:nth-of-type(6):before{content:"06";}
.howto ol li:nth-of-type(7):before{content:"07";}
.howto ol li:nth-of-type(8):before{content:"08";}
.howto ol li:nth-of-type(odd){background:rgba(0,0,0,0.3);}

/* SIDE BAR */
.secondary ul{margin:0;}
.secondary ul li{list-style:none;}
.secondary ul li a{color:#000;}
.current{background:rgba(0,0,0,0.2);color:#eb2c8c;}
.secondary ul li a:hover{color:#eb2c8c;}
.secondary ul li a:before {content:'»';padding-right:4px;font-size:15px;}

/* MIXED */
header:after,
.main:after,
#Root:after,
.search-bar:after,
header .inner:after { /* clearfix */
    height: 0;
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
}


body h1 span.amp {
    font-family: Baskerville,"Goudy Old Style","Palatino","Book Antiqua",Georgia;
    font-style: italic;
}


/* FOOTER */
.footer {
    color: #bbb;
	border-top:1px solid #bbb;
    padding: 0;
    font-size: 11px;
	height: 20px; 
}
.footer a {color: #999;}
.footer a:hover {color: #B90000;}
.copyright{text-align:center;}
.ztudio-glow{text-align:center;}
	
/* PAGE SPECIFIC LAYOUT */
::-webkit-selection{
    background: #000;
    color: #fff;
    text-shadow: none;
}
::-moz-selection{
    background: #000;
    color: #fff;
    text-shadow: none;
}
::selection{
    background: #000;
    color: #fff;
    text-shadow: none;
}

@media all and (min-width: 480px) {
.inner-logo {width:117px;height:78px;}
header .brand, header .brand:hover {padding: 24px 0 20px 0;margin-left:132px;}
.footer{background: #000;padding:10px 0;border-top:none;}

/* STICKY HEADER */		
.sticky {position:fixed;height:108px;background:#660033;margin:0;padding-top:14px;}
.sticky .inner-logo{width:90px;height:60px;}
.sticky .brand {padding:10px;margin-left:90px;}
.sticky .brand:hover {padding:10px;margin-left:90px;}
.sticky .brand h1{font-size:20px;}
.sticky .brand h2{font-size:14px;}
.sticky #cssmenu {padding:0;margin-top:0;}
}

@media all and (min-width: 768px) {
.inner-logo {width:156px;height:104px;}
header .brand, header .brand:hover {padding: 44px 0 20px 0;margin-left:156px;}
.main{padding: 20px 0 20px 0;}
.size1of2 {width:50%;}
.size1of4 {width:25%;}
.size3of4 {width:75%;}
.left-box{padding-bottom:500em;margin-bottom:-500em;border-right:5px solid #333;}
.right-box{padding-bottom:500em;margin-bottom:-500em;border-left:5px solid #333;}
.left-box-h{padding-bottom:500em;margin-bottom:-500em;border-right:10px solid #333;background:#666 url(../images/howto-background.png) no-repeat top right;}
.about{background:url(../images/profile-about.png) no-repeat top right;}
.service{background:url(../images/profile-service.png) no-repeat top right;}
.top-space{margin-top:140px;}
.copyright{text-align:left;}
.ztudio-glow{text-align:right;}
}
@media all and (min-width: 1080px) {
.size1of3 {width:33.33333%;}
.size2of3 {width:66.66666%;}
.size1of5 {width:20%;}
.size2of5 {width:40%;}
.size3of5 {width:60%;}
.size4of5 {width:80%;}
.sidebar {display:block;background:#ddd;padding:10px 15px;}
/*.wrapper{min-height:760px;}*/
.main {margin-bottom:30px;}

.how-to{display:block;background:#888;padding:7px 15px;margin-top:5px;}
.find-match{display:block;background:#660033;padding:7px 15px;margin-top:5px;}

.sticky {height:60px;padding-top:14px;}
.sticky .inner-logo{width:90px;height:60px;}
.sticky .brand {padding:10px;margin-left:90px;}
.sticky .brand:hover {padding:10px;margin-left:90px;}
.sticky .brand h1{font-size:20px;}
.sticky .brand h2{font-size:14px;}
.sticky #cssmenu {padding:0;margin-top:-20px;}
}
@media only screen and (min-width: 1440px) {html{zoom:1.1;-webkit-text-size-adjust:auto;}}
@media only screen and (min-width: 1600px) {html{zoom:1.2;-webkit-text-size-adjust:auto;}}
@media only screen and (min-width: 2048px) {html{zoom:1.4;-webkit-text-size-adjust:auto;}}
/* Based on HTML5 boilerplate print styles */
@media print {
	* {
	    background: transparent !important;
	    color: black !important;
	    box-shadow: none !important;
	    text-shadow: none !important;
	    filter: none !important;
	    -ms-filter: 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: "";
    }

	thead {
	    display: table-header-group
	}
	tr,
	img {
	    page-break-inside: avoid
	}
	img {
	    max-width: 100% !important
	}
	pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
    @page {
        margin: 0.5cm;
    }
    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

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

    /* Simple theme custom print styles */
	.header,
	.footer,
    .nav-open-button,
    .search-bar,
    .search-dropdown-icon,
    nav.primary {
	    display: none;
	}
}