/**
 * @file
 * CSS reset for the overall Scn 2.0 template, to get rid of the browser weirdities.
 */

/* CSS reset taken from http://knacss.com/css/knacss.css, http://knacss.com/ */

/* soft reset */
html,
body {
	margin: 0;
	padding: 0;
}

/* switching box model for all elements */
* {
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
}

ul,
ol {
	padding-left: 2em;
}
[dir="rtl"] ul,
[dir="rtl"] ol {
	padding-right: 2em;
	padding-left: 0;
}

ul.unstyled {
	list-style: none;
}

code,
pre,
samp,
kbd {
	white-space: pre-wrap;
	font-family: consolas, 'DejaVu Sans Mono', courier, monospace;
	line-height: 1em;
}

code, kbd, mark {
	border-radius: 2px;
}

em {
	font-style: italic;
}

strong {
	font-weight: bold;
}

kbd {
	padding: 0 2px;
	border: 1px solid #999;
}

code {
	padding: 2px 4px;
	background: rgba(0,0,0,.04);
	color: #b11; 
}

mark {
	padding:2px 4px;
	background: #ff0;
}

sup,
sub {
	vertical-align: 0;
	position: relative;
}

sup {
	bottom: 1ex;
}

sub {
	top: .5ex;
}

table { margin-bottom: 1.5em; }

/* avoid top margins on first content element */
p:first-child,
ul:first-child,
ol:first-child,
dl:first-child,
blockquote:first-child,
pre:first-child,
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
	margin-top: 0;
}

/* avoid margins on nested elements */
li p,
li ul,
li ol {
	margin-top: 0;
	margin-bottom: 0;
}

/* max values */
img, table, td, blockquote, code, pre, textarea, input, video {
	max-width: 100%;
}

/* pictures */
img {
	vertical-align: middle;
}

/* Google Gmap3 bug fix on images */
/*
:not(.gm-style) img {
	height: auto !important;
}
*/
.ie678 .gm-style img {
	height: 100%;  /* IE678 hack */
}
.gm-style img,
.gmnoscreen img,
.gmnoprint img {
	max-width: none !important;
}

a img { border: 0; }

/* scripts */
body > script {display: none !important;}

/* orientation iOS font-size fix */
@media (orientation: landscape) and (max-device-width: 768px) {
	html, body {
		-webkit-text-size-adjust: 100%;
	}
}

/**********
/* IE FIXES
/**********/

/* hasLayout for IE6/IE7 */
.ie67 .clearfix,
.ie67 .line,
.ie67 .mod,
.ie67 .row,
.ie67 .col {
	zoom: 1;
}

/* inline-block and table-cell for IE6/IE7 */
/* warning: .col needs a width on IE6/IE7 */
.ie67 .btn,
.ie67 .col,
.ie67 .inbl {
	display: inline;
	zoom: 1;
}

/* this has caused problems with the slideshow
.ie8 img {
	width: auto; / * @bugfix for IE8 * /
}
*/

/* Active box-sizing for IE6/IE7 */
/* @source https://github.com/Schepp/box-sizing-polyfill */
/*
.ie67 * {
	behavior: url(/js/boxsizing.htc);
}
*/

/*******
/* PRINT
/*******/

/* quick print reset */
@media print {
	p,
	blockquote {
		orphans: 2;
		widows: 2;
	}
	blockquote,
	ul,
	ol {
		page-break-inside: avoid;
	}
	h1,
	h2,
	h3,
	caption {
		page-break-after: avoid;
	}
}

wbr:after { content: "\00200B" }

