/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

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

html {
    color: #222;
    font-size: 1em;
    line-height: 1.8;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/*body { opacity:1; }*/
   
a, p, li, h1, h2, h3, h4 { font-family:'Open Sans', san-serif; }

h1, h2, h3, h4 {
	display:block;
	/*color:#13398B;*/
	color:#222;
	font-family: 'Open Sans', sans-serif;
}

h1 { margin:2em 0; color:#13398B; }
h2 { font-size:1.5em; margin:0.83em 0; }
h3 { font-size:1.17em; margin:1em 0; color:#13398B; }
h4 { margin:1.33em 0; color:#13398B; }

.sc-foot h1, .sc-foot h2, .sc-foot h3 { color:#fff; }

a { color:#D02607; text-decoration:none; }
a:hover { text-decoration:underline; }

ul { list-style-position:inside; padding-left:15px; }
li { margin-bottom:12px; list-style-position: inside; text-indent: -1em; padding-left: 1em; padding-right:1em; }
p.spacer { margin:0; height:10px; }

.center, .align-center { text-align:center; }
.left { float:left; }
.right { float:right; }
.half-wide { width:50%; }
.align-left { text-align:left; }
.align-right { text-align:right; }

.gm-blue { color:#13398b; }
.gm-red { color:#d02607; }

.bold { font-weight:bold; }
.normal { font-weight:normal; }
.strikethrough { text-decoration: line-through; }

.just-mobile { display:none; }

.h1ns { display:none !important; }

.section-container {
	overflow:hidden;
	width:100%;
}

/*jquery animation stuff STARTS*/
.animation-element { opacity: 0; position: relative; }
.animation-element.slide-left {
	opacity: 0;
	-moz-transition: all 500ms linear;
	-webkit-transition: all 500ms linear;
	-o-transition: all 500ms linear;
	transition: all 500ms linear;
	-moz-transform: translate3d(-500px, 0px, 0px);
	-webkit-transform: translate3d(-500px, 0px, 0px);
	-o-transform: translate(-500px, 0px);
	-ms-transform: translate(-500px, 0px);
	transform: translate3d(-500px, 0px, 0px);
}
.animation-element.slide-left.in-view {
	opacity: 1;
	-moz-transform: translate3d(0px, 0px, 0px);
	-webkit-transform: translate3d(0px, 0px, 0px);
	-o-transform: translate(0px, 0px);
	-ms-transform: translate(0px, 0px);
	transform: translate3d(0px, 0px, 0px);
}
.animation-element.image-spinner {
	opacity:1;
	-moz-transition: transform 1.5s linear;
	-webkit-transition: transform 1.5s linear;
	-o-transition: transform 1.5s linear;
	transition: transform 1.5s linear;
	transform-style: preserve-3D;
}
.animation-element.image-spinner.in-view {
	opacity:1;
	-moz-transform: rotate(720deg);
	-webkit-transform: rotate(720deg);
	-o-transform: rotate(720deg);
	transform: rotate(720deg);
}
/*jquery animation stuff ENDS*/

.sc-head {
	/*height:93px;*/
	/*background-color:#EDEAFF;*/
	background-color:#f5f5f5;
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important;
	/*position:fixed;
	top:0;
	z-index:10;*/
}

.sc-foot {
	/*height:450px;
	background-color:#990000;*/
	background-color:#222;
	border-top:2px solid #EDEAFF;
	color:#fff;
}

a#main-logo {
	width:222px;
	height:74px;
	display:block;
	float:left;
	margin:12px 0 10px 8px;
}

ul.top-nav {
	list-style:outside none none;
	margin:0;
	padding:0;
}

li.top-nav-item {
    float: right;
    position: relative;
	margin:53px 20px 0 20px;
	text-indent: 0em;
	padding-left: 0em;
	padding-right:0em;
}

li.top-nav-item a {
	color:#D02607;
	text-decoration:none;
	font-weight:bold;
	opacity:0.8;
	transition: opacity 0.3s ease;
	font-size:1.2em;
}
li.top-nav-item a:hover {
	opacity:1;
}

li.top-nav-item.mobile-only { display:none; }

.sc-c0 {
	background-attachment: scroll;
    background-image: url(../img/keyboard_1920X600.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 600px;
	margin-top:2px;
    overflow: hidden;
    width: 100%;
	border-bottom: 2px solid #edeaff;
}

.sc-c0-tmp {
	background-attachment: scroll;
    /*background-image: url(../img/keyboard_1920X600.jpg);*/
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 480px;
	/*margin-top:2px;*/
    overflow: hidden;
    width: 100%;
	border-bottom: 2px solid #222;
	background-color:#222;
}

.sc-c1 {
	height:auto;
	/*padding-top:94px;*/
}

p.copyright { font-size:70%; }
p.copyright-mobile { font-size:70%; display:none; }

.gm-wrapper {
	height: auto;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
}

.gm-wrapper-indent { margin:50px 20px; }

/* services stuff STARTS HERE */
h2.about-motto { margin-left:80px; margin-right:80px; }
.services-container { width:100%; /* remove this margin-bottom if treat me deal button is active */ margin-bottom:20px; }
.services-third {
	width:30%;
	margin-right:5%;
	float:left;
	margin-bottom:60px;
	/*height:500px;
	background-color:#F5F5F5;*/
	border-radius:6px;
}
.services-third:nth-child(6), .services-third:nth-child(14) {
	margin-right:0;
}
.services-third-icon, .services-third-title, .services-third-content, .services-third-link { text-align:center; }
.services-third-icon { margin-top:30px; }
.services-third-title { margin:0 15px; }
.services-third-content { margin:0 25px 20px; }
.services-third-title h3 { /*color:#222;*/ }
.services-third-link { margin-bottom:45px; }

.clear-single, .clear-double { display:none; }
.clear-triple { clear:both; }

.popup-open, .deal-book { background-color:#d02607; color:#fff; padding:6px 10px; border:none; border-radius:4px; font-weight:bold; opacity:0.8; transition: opacity 0.3s ease; cursor:pointer; text-shadow: 1px 1px 0px rgba(34, 34, 34, 0.9); }
.popup-open:hover, .deal-book:hover { opacity:1; text-decoration:none; cursor:pointer; }
.popup-close { 
	cursor:pointer;
	background-color:#d02607;
	color:#fff;
	font-weight:bold;
	padding:2px 5px;
	border-radius:14px;
	margin-left:12px;
	opacity:0.8;
	transition:opacity 0.3s ease 0s;
	text-shadow: 1px 1px 0px rgba(34, 34, 34, 0.9);
}
.popup-close:hover { text-decoration:none; opacity:1; }

p.p-close { margin-bottom:0; }
img.p-closer { margin-left:20px; margin-right:610px; }
p.p-icon { text-align:center; margin-top:-20px; }
.gm-blue-p { color:#13398b; /*margin:1.4em 0;*/ font-size:1.6em; }
p.p-intro { font-size:1.1em; }

p.tick-point { position:relative; padding:0 50px 0 100px; }
p.tick-point img { position:absolute; top:-1px; left:48px; }
p.tick-point.first { margin-top:35px; }

ul.p-bullets { margin:30px 50px; list-style-image:url('../img/services/tick_32.png'); list-style-type:disc; }
ul.p-bullets li { text-indent:-2em; }

p.p-clients { text-align:center; margin-top:2em; }
img.p-client-img-1 { width:72px; height:72px; margin-right:20px; }
img.p-client-img-2 { width:72px; height:72px; }

/*.quickFlip-train {
	height:600px;
	width:800px;
	left:50%;
	top:50%;
	margin-left:-400px;
	margin-top:-300px;
	position:fixed;
	z-index:100;
	opacity:0;
	display:none;
}*/

#popup-remote, #popup-mal, #popup-setup, #popup-backup, #popup-tuneup, #popup-upgrade { 
	background-color:#fff;
	border:4px solid #d02607;
	/*border:4px solid #13398B;*/
	border-radius:12px;
	/*box-shadow:0 0 400px 100px #d02607;
	box-shadow:0 0 400px 100px #628dea;*/
	box-shadow:0 0 400px 100px rgba(98, 141, 234, 0.4);
	/*box-shadow:0 0 15px #000;*/
	width:800px;
	height:600px;
	left:50%;
	top:50%;
	margin-left:-400px;
	margin-top:-300px;
	position:fixed;
	z-index:100;
	opacity:0;
	display:none;
}

/* services stuff ENDS HERE */

.treat-me-deal { /*margin:0 0 80px; padding:40px 0 40px;*/ text-align:center; margin-top:30px; /*border-top:1px solid #222; border-bottom:1px solid #222;*/ }

/* deals stuff STARTS HERE */
.deals-container { width:100%; margin-top:30px; padding-bottom:30px; border-bottom:1px solid #222; }
.deals-container.first-deal { padding-top:30px; border-top:1px solid #222; margin-top:65px; }
.deals-container.last-deal { margin-bottom:65px; }
.deals-left { float:left; width:18%; margin-right:2%; /*background-color:grey;*/ }
.deal-number { width:100%; text-align:center; margin-bottom:35px; }
.deal-icon { width:100%; text-align:center; margin-bottom:20px; }
.deal-number img { width:82px; height:82px; }

.deals-center { float:left; width:58%; margin-right:2%; /*background-color:lightblue;*/ }
.deals-center h2 { color:#13398b; margin-top:15px; }
.last-point { margin-bottom:25px; }

.deals-right { float:left; width:20%; margin-right:0%; /*background-color:lightgreen;*/ }
.old-price { text-decoration:line-through; margin-top:2em; margin-bottom:0; }
.new-price { font-size:1.5em; margin-top:0.5em; }
.clearing { clear:both; }

/* deals stuff ENDS HERE */

.banner-opaque {
	margin-top:140px;
	margin-left:0px;
	text-align:center;
}

.banner-opaque p {
	background: rgba(0, 0, 0, 0.6) none repeat scroll 0 0;
    border-radius: 6px;
    /*color: #13398B;*/
	color: #fff;
    display: inline-block;
    font-size: 2.5em;
    font-weight: bold;
    /*letter-spacing: 2px;*/
    line-height: 1.2em;
    padding: 35px 42px;
	text-align:center;
}

a#back-top {
	background: rgba(0, 0, 0, 0) url("../img/top.png") no-repeat scroll 0 0;
    bottom: 30px;
    display: none;
    height: 90px;
    opacity: 1;
    position: fixed;
    right: 40px;
    width: 79px;
}

table.rates-table td, table.rates-table th { padding:12px 25px; }
table.rates-table th { background-color:#F5F5F5; margin:0; border-left:1px solid #13398b; border-bottom:1px solid #13398b; border-top:1px solid #13398b; color:#13398b; }
table.rates-table td { border-left:1px solid #13398b; border-bottom:1px solid #13398b; }
table.rates-table td.last, table.rates-table th.last { border-right:1px solid #13398b; }

/* iframe styling starts */
#ninja-frame { 
	margin-left:25%;
	margin-right:25%;
	background-color:#f5f5f5;
	border-bottom-left-radius:6px;
	border-bottom-right-radius:6px;
	border:1px solid #13398b;
	border-top:none;
	/*box-shadow: 5px 5px 5px -5px #333;*/
	margin-bottom:2em;
}

#ninja-top {
	width:50%;
	margin-left:25%;
	margin-right:25%;
	height:135px;
	background-color:#f5f5f5;
	border-top-left-radius:6px;
	border-top-right-radius:6px;
	border:1px solid #13398b;
	border-bottom:none;
	/*box-shadow: 5px 0 5px -5px #333;*/
}

/* iframe stying ends */

#contact-placeholder { height:900px; }

#footer-left { width:50%; float:left; }

#footer-right { width:50%; float:left; }
#footer-right-inner { width:300px; margin-left:16px; float:right; margin-top:90px; }
p.our-address { padding-left:42px; background:url(../img/fi_address.png) no-repeat scroll 0 2px; margin-bottom:2em; }
div.our-phone { padding-left:42px; background:url(../img/fi_phone.png) no-repeat scroll 0 2px; }
div.our-phone:nth-child(2) { margin-top:30px; }
div.our-phone:nth-child(3), div.our-phone:nth-child(4), div.our-phone:nth-child(5) { padding-left:42px; background:url(../img/fi_phone.png) no-repeat scroll 0 0px; }

p.our-email { padding-left:42px; background:url(../img/fi_email.png) no-repeat scroll 0 2px; margin-bottom:2em; }
div.our-phone a, p.our-email a { color:#fff; }
div.our-phone a:hover, p.our-email a:hover { color:#fff; text-decoration:none; }
p.call-back { margin-right:30px; font-size:80%; }

div.our-social { padding-top:2.1em; }
div.our-social a { border-radius:6px; /*transition:background-position 0.2s ease 0s;*/ float:left; margin-right:18px; }
a.fb-social { display:block; width:30px; height:30px; background:url(../img/gm-sm-sprite.jpg) no-repeat /*-1px -32px;*/ -1px -1px; opacity:0.7; transition:opacity 0.3s ease 0s; }
a.fb-social:hover { opacity:1; }

a.tw-social { display:block; width:30px; height:30px; background:url(../img/gm-sm-sprite.jpg) no-repeat /*-33px -31px;*/ -33px -1px; opacity:0.7; transition:opacity 0.3s ease 0s; }
a.tw-social:hover { opacity:1; }

a.in-social { display:block; width:30px; height:30px; background:url(../img/gm-sm-sprite.jpg) no-repeat /*-129px -32px;*/ -129px -1px; opacity:0.7; transition:opacity 0.3s ease 0s; }
a.in-social:hover { opacity:1; }

#footer-bottom { width:100%; float:left; }

/* footer contact form starts */

form {
    margin:0;
}
form#contact { margin-bottom:40px; }

form label.error {
    color:#c0392b;
	padding:20px;
}
form input[type="text"], form textarea {
	padding:8px;
	border-radius:6px;
	border:2px solid #222;
	background:#F5F5F5;
}

form textarea { line-height:1.4em; }
form input[type="text"]:focus, form textarea:focus {
    box-shadow:none;
    -moz-box-shadow:none;
    -webkit-box-shadow:none;
	background:#fff;
}

form input[type="text"].error, form textarea.error { border-color:#c0392b; }

#success, #error { display:none; }
#success { color:#9bd32d; margin-bottom:40px; }
#error { color:#c0392b; margin-bottom:40px; }

div.input-holder { margin-bottom:20px; }
div.input-holder input { color:#222; width:300px; }
div.input-holder textarea { color:#222; width:300px; height:200px; }

#submit { background-color:#d02607; color:#fff; padding:12px 30px; border:none; border-radius:4px; font-weight:bold; text-transform:uppercase; opacity:0.8; transition: opacity 0.3s ease; letter-spacing:1px; text-shadow: 1px 1px 0px rgba(34, 34, 34, 0.9); }
#submit:hover { opacity:1; }

/* footer contact form ends*/

a#mobile-menu-block {
    display: none;
    float: right;
}

.top-menu-area { display:block; float:right; }

h2.header-phone { text-align:right; margin:5px 0 0px; margin-right:20px; }
h2.header-phone a { color:#222; opacity:0.8; transition: opacity 0.3s ease; }
h2.header-phone a:hover { text-decoration:none; opacity:1; }

.button-link { background-color:#d02607; color:#fff; padding:12px 30px; border:none; border-radius:4px; font-weight:bold; text-transform:uppercase; opacity:0.8; transition: opacity 0.3s ease; letter-spacing:1px; text-shadow: 1px 1px 0px rgba(34, 34, 34, 0.9); }
.button-link:hover { opacity:1; text-decoration:none; }

.support-start { position:absolute; right:20px; top:5px; }

.home-button-1 { margin-bottom:6em; margin-top:6em; }
.home-button-2 { margin-bottom:6em; }

.tips-image { width:30%; margin-right:4%; float:left; }
.tips-image-r { width:30%; margin-left:4%; float:left; }
.tips-image-block-text { width:66%; float:left; }

@media (max-width:1220px) {
	.banner-opaque {  }
	.banner-opaque p { /*font-size:2.2em;*/  }
}

@media (max-width:1200px) {
	.sc-c0-tmp { height:400px; }
	.banner-opaque { margin-top:100px; }
	.banner-opaque p { line-height:1.3em;  }
}

@media (max-width:1068px) {
	.services-third-content p { min-height:100px; }
	.old-price { margin-top:4em; }
	.deal-number { margin-bottom:60px; }
}

@media (max-width:1024px) {
	.sc-c0-tmp { height:400px; }
	.banner-opaque { margin-top:100px; }
	.banner-opaque p { font-size:2.2em;  }
}

@media (max-width:935px) {
	.banner-opaque { margin-top:110px; }
	.banner-opaque p { font-size:2.0em;  }
}

@media (max-width:910px) {
	.old-price { margin-top:5em; }
	.deal-number { margin-bottom:80px; }
}

@media (max-width:900px) {
	.services-third-link { margin-bottom:0px; }
	.popup-open { display:none; }
}

@media (max-width:875px) {
	.services-third-content p { min-height:120px; }
}

@media (max-width:850px) {
	/* deals drop from 3 columns to 1 */
	.deals-container.first-deal { margin-top:50px; }
	.deals-left { width:100%; margin-right:0; }
	.deals-center { width:98%; margin-left:1%; margin-right:2%; }
	.deals-center h2 { text-align:center; margin-top:0; }
	.last-point { margin-bottom:12px; }
	.deals-right { width:100%; }
	.deal-number { margin-bottom:10px; }
	.deal-number img { width:72px; height:72px; }
	.old-price { margin-top:1em; }
}

@media (max-width:824px) {
	.clear-double { display:block; }
	.clear-triple { display:none; }
	.services-third { width:47%; margin-right:6%; }
	.services-third:nth-child(6) { margin-right:6%; }
	.services-third:nth-child(3), .services-third:nth-child(9), .services-third:nth-child(14) { margin-right:0; }
	.services-third-content p { min-height:90px; }
}

@media (max-width:817px) {
	.sc-c0-tmp { height:380px; }
	.banner-opaque { margin-top:110px; }
	.banner-opaque p { font-size:1.8em;  }
}

@media (max-width:750px) {
	.sc-c0-tmp { height:360px; }
	.banner-opaque { margin-top:80px; }
	.banner-opaque p { font-size:1.8em;  }
}

@media (max-width:730px) {
	/* mobile menu transition */
	a#main-logo { width:148px; height:49.3px; }
	img#logo-img { width:148px; height:49.3px; }
	.top-menu-area { display:none; float:left; width:100%; position:relative; }
	li.top-nav-item { float:left; clear:both; margin:5px 0; text-align:center; width:100%; background-color:#fff; }
	li.top-nav-item:nth-child(1) { margin-top:0px; }
	li.top-nav-item:nth-child(10) { margin-bottom:10px; }
	li.top-nav-item a { width:100%; padding:8px 0; display:block; border-bottom:1px dashed #222; border-top:1px dashed #222; }
	li.top-nav-item a:hover { border-bottom:1px dashed #D02607; border-top:1px dashed #D02607; }
	li.top-nav-item.mobile-only { display:block; }
	li.top-nav-item.non-mobile { display:none; }
	a#mobile-menu-block {
		background: rgba(0, 0, 0, 0) url(../img/menu_icon_mobile_222.png) no-repeat scroll 0 0;
		border-radius: 5px;
		display: block;
		height: 39px;
		margin: 16px 20px 0 0;
		padding: 0;
		width: 42px;
	}
}

@media (max-width:710px) {
	#footer-left { width:100%; }
	#footer-right { width:100%; }
	#footer-right-inner { float:left; margin-top:25px; margin-bottom:55px; }
}

@media (max-width:680px) {
	.support-start { display:none; }
}

@media (max-width:634px) {
	a#back-top { right:12px; bottom:2px; }
	p.copyright { display:none; }
	p.copyright-mobile { display:block; }
	p.contact-message { text-align:center; }
	/*.sc-foot { border-top:1px solid #d02607; }*/
	h1 { margin:1.3em 0; font-size:1.4em; }
	h2 { font-size:1.20em; }
	h3 { font-size:1.12em; margin:0.75em 0; }
	div.gm-wrapper-indent { margin-top:38px; }
	#submit { padding:9px 27px; }
	.desktop-only { display:none; }
	.just-mobile { display:block; }
	h2.header-phone { display:none; }
	.sc-c0-tmp { height:250px; }
	.sc-c0-tmp div.gm-wrapper-indent { margin:0 20px; }
	.banner-opaque { margin-top:65px; }
	.banner-opaque p { font-size:1.4em; padding:20px 12px; }
	.center-for-mobile { text-align:center; }
	.mobile-fit-error { max-width:260px; max-height:328px; width:auto; height:auto; }
	.home-button-1 { margin-bottom:4em; margin-top:4em; }
	.home-button-2 { margin-bottom:4em; }
	.services-third-icon img { width:72px; height:72px; }
}

@media (max-width:553px) {
	.banner-opaque { margin-top:50px; }
}

@media (max-width:584px) {
	.services-third-content p { min-height:120px; }
}

@media (max-width:540px) {
	.services-third { width:100%; margin-right:0; margin-bottom:20px; }
	.services-third:nth-child(1),
	.services-third:nth-child(2),
	.services-third:nth-child(3),
	.services-third:nth-child(4),
	.services-third:nth-child(5),
	.services-third:nth-child(6) { margin-right:0; }
	.services-third.services-last { margin-bottom:50px; }
	h2.about-motto { margin-left:40px; margin-right:40px; }
	.services-third-content p { min-height:0px; }
}

@media (max-width:322px) {
	.footer-right-inner { width:280px; }
	div.input-holder input { color:#222; width:260px; }
	div.input-holder textarea { color:#222; width:260px; height:200px; }

}












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

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

/*
 * Hide visually and from screen readers, 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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

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

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

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

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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

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