/*
 * HTML5 Boilerplate
 *
 * 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,
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;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

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

/* Fonts */
@font-face {
	font-family: 'TrendSlabOne';
	src: url('../font/25C68D_10_0.eot');
	src: url('../font/25C68D_10_0.eot?#iefix')
		format('embedded-opentype'),url('../font/25C68D_10_0.woff')
		format('woff'),url('../font/25C68D_10_0.ttf')
		format('truetype');
}
@font-face {
	font-family: 'TrendSansOne';
	src: url('../font/25C68D_6_0.eot');
	src: url('../font/25C68D_6_0.eot?#iefix')
		format('embedded-opentype'),url('../font/25C68D_6_0.woff')
		format('woff'),url('../font/25C68D_6_0.ttf')
		format('truetype');
}
.tslab-one { font-family: 'TrendSlabOne'; }
.tsans-one { font-family: 'TrendSansOne'; }

.page { position: relative; }
.sprite { display: block; background: url('../img/sprite.png') 0 0 no-repeat; }
p.sprite { margin-top: 0; margin-bottom: 0; }
h1.sprite, h2.sprite, h3.sprite, h4.sprite, h5.sprite, p.sprite, a.sprite { margin-left: auto; margin-right: auto; }

.phone-left,
.phone-right { position: absolute; top: 68px; left: 0; z-index: 5; background-position: 0 0; width: 153px; height: 646px; }
.phone-right { left: auto; right: 0; background-position: 0 -656px; width: 156px; }
.ch-logo { position: absolute; top: 20px; left: 20px; width: 76px; height: 32px; background: url('../img/ch-logo.png') 0 0 no-repeat; }
#fb-container { position: absolute; top: 20px; right: 20px; width: 90px; height: 23px; }

.section-divider { height: 8px; border-top: 1px solid #e5e7e8; background-color: #cfd1d4; }
.section-content { position: relative; width: 1020px; margin: 0 auto; text-align: center; }
.section-1 { background-color: #e4fef8; border-bottom: 1px solid #92b7bf; }
.section-2 { background-color: #1a2f49; }
.section-3 { background-color: #0e1a29; }
.section-4 { background-color: #fff; }
.section-5 { background-color: #fee2fd; border-bottom: 1px solid #92b7bf; }
.section-6 { background-color: #7fdff9; }

.apps { width: 353px; margin: 0 auto; }
.apps a.app { display: block; width: 173px; height: 58px; background-position: 0 0; background-repeat: no-repeat; }
.apps a.app-android { float: right; background-image: url('../img/app-android.png'); }
.apps a.app-apple { float: left; margin-right: 7px; background-image: url('../img/app-apple_live.png'); }
.apps a.tsans-one { display: block; clear: both; margin-top: 6px; float: right; width: 173px; color: #010006; font-size: 0.7em; padding-top: 2px; }
.apps a.tsans-one:hover { text-decoration: none; }

.page-1 { padding-top: 240px; }
.page-1 h1 { margin: 0; }
.page-1 h2 { margin: 13px auto 32px; background-position: 0 -1312px; width: 353px; height: 14px; }
.page-1 .apps { margin-bottom: 120px; }
.page-1 p.scroll { background-position: -2808px -196px; width: 162px; height: 19px; margin-bottom: 8px; }

.page-2 { padding: 30px 0 5px; }
.page-2 img { max-width: 99%; margin-bottom: 265px; }
.page-2 .sprite { margin-bottom: 450px; }
.page-2 .sprite-1 { background-position: 0 -1425px; width: 742px; height: 202px; }
.page-2 .sprite-2 { background-position: 0 -1637px; width: 213px; height: 398px; }
.page-2 .sprite-3 { background-position: -752px 0; width: 1018px; height: 719px; }
.page-2 .sprite-4 { background-position: -752px -729px; width: 541px; height: 99px; }
.page-2 .sprite-5 { background-position: -752px -838px; width: 543px; height: 231px; }
.page-2 .sprite-6 { background-position: -752px -1079px; width: 711px; height: 502px; }
.page-2 .sprite-7 { background-position: -752px -1591px; width: 84px; height: 25px; margin-bottom: 0; }

.page-3 { padding: 4px 0 2px; }
.page-3 .sprite { background-position: -752px -1626px; width: 52px; height: 34px; }

.page-4 { padding-top: 9px; }
.page-4 .sprite { margin-bottom: 340px; }
.page-4 .sprite-1 { background-position: -752px -1670px; width: 158px; height: 25px; }
.page-4 .sprite-2 { background-position: -752px -1705px; width: 311px; height: 38px; }

.page-5 { padding-top: 130px; }
.page-5 .sprite { margin-bottom: 340px; }
.page-5 h3 { background-position: -752px -1753px; width: 947px; height: 562px; }
.page-5 p { background-position: -1780px 0; width: 807px; height: 153px; margin-bottom: 275px; }

.page-6 { padding-top: 163px; }
.page-6 .apps { margin-bottom: 24px; }
.page-6 .sprite-1 { background-position: -1780px -163px; width: 284px; height: 18px; margin-bottom: 18px; }
.page-6 .sprite-2 { background-position: -1780px -191px; width: 302px; height: 333px; margin-bottom: 122px; }
.page-6 .sprite-3 { background-position: -1780px -534px; width: 551px; height: 432px; margin-bottom: 195px; }

.page-7 { padding-top: 300px; border-bottom: 1px solid #85909e; }
.page-7 .sprite { margin-bottom: 340px; }
.page-7 .sprite-1 { background-position: -1780px -976px; width: 430px; height: 603px; }
.page-7 .sprite-2 { background-position: -1780px -1589px; width: 584px; height: 331px; }
.page-7 .sprite-3 { background-position: -1780px -1930px; width: 127px; height: 47px; margin-bottom: 16px; }

.page-8 { padding-top: 15px; }
.page-8 .sprite { background-position: -1780px -1987px; width: 471px; height: 15px; margin: 0 auto; }
.page-8 .sprite a { display: block; float: left; height: 15px; }
.page-8 .sprite a.press { width: 100px; margin-left: 95px; }
.page-8 .sprite a.tech { width: 195px; }
.page-8 .sprite a.hire { width: 80px; }
.page-8 p { color: #a2a2a2; font-size: 12.5px; font-family: 'TrendSlabOne'; }

.page-9 { padding-top: 83px; padding-bottom: 60px; }
.page-9 .sprite-1 { background-position: -2808px 0; width: 345px; height: 129px; }
.page-9 .sprite-2 { background-position: -2808px -139px; width: 127px; height: 47px; margin-top: 100px; }
.page-9 p { color: #3f426a; font-size: 12.5px; font-family: 'TrendSlabOne'; }
.page-9 p a { color: #ff0000; font-size: 23px; font-family: 'TrendSlabOne'; text-decoration: none; }
.page-9 p a:hover { text-decoration: underline; }

/* ==========================================================================
   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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses 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,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

@media only screen and (max-width: 1000px) {
	.phone-left, .phone-right { display: none; }	
}

@media only screen and (max-width: 768px) {
	.ir { text-indent: -999em; }
	.sprite { background-position: center center !important; background-size: auto 100%; }
	.section-content { width: auto; }
	.ch-logo { left: 5px; top: 5px; z-index: 10; width: 54px; height: 24px; background-size: cover; }
	#fb-container { right: 5px; top: 5px; z-index: 11; }

	.apps { width: auto; margin-left: 1%; margin-right: 1%; }
	.apps a.app { width: 48%; height: 3.2em; margin-right: 0; background-size: 100% auto; }
	.apps a.tsans-one { width: 48%; }
	
	.page-1 { z-index: 1; padding-top: 8em; }
	.page-1 h1 img { max-width: 98%; }
	.page-1 h2 { background-image: url('../img/text/page-1_3_making.png'); width: 95%; height: 0.5em; }
	.page-1 p.scroll { background-image: url('../img/text/page-v2-1_1_scroll.png'); width: auto; height: 1em; }

	.page-2 { padding-top: 1em; }
	.page-2 img { max-width: 99%; margin-bottom: 6em; }
	.page-2 .sprite { margin-bottom: 10em; width: 95%; height: auto; }
	.page-2 .sprite-1 { background-image: url('../img/text/page-2_1_breaking-up.png'); height: 3.4em; }
	.page-2 .sprite-2 { background-image: url('../img/text/page-2_2_kissy.png'); height: 18em; }
	.page-2 .sprite-3 { background-image: url('../img/text/page-2_3_we-ve-all.png'); width: 100%; height: 17em; }
	.page-2 .sprite-4 { background-image: url('../img/text/page-2_4_but-what.png'); height: 3.5em; }
	.page-2 .sprite-5 { background-image: url('../img/text/page-2_5_where-does.png'); height: 8em; }
	.page-2 .sprite-6 { background-image: url('../img/text/page-2_6_and-more.png'); width: 100%; height: 13.8em; }
	.page-2 .sprite-7 { background-image: url('../img/text/page-2_7_flip.png'); height: 1.5em; margin-bottom: 0; }

	.page-3 .sprite { background-image: url('../img/text/page-3_1_the.png'); width: 90%; height: 1.5em; }

	.page-4 .sprite { margin-bottom: 10em; width: 95%; }
	.page-4 .sprite-1 { background-image: url('../img/text/page-4_1_switch.png'); height: 1.5em; }
	.page-4 .sprite-2 { background-image: url('../img/text/page-4_2_introducing.png'); height: 2em; }

	.page-5 .sprite { margin-bottom: 8em; width: 100%; }
	.page-5 h3 { background-image: url('../img/text/page-5_1_killswitch.png'); height: 10em; }
	.page-5 p { background-image: url('../img/text/page-5_2_no.png'); height: 3.6em; margin-bottom: 4em; }

	.page-6 { padding-top: 10em; }
	.page-6 .apps { margin-bottom: 1.5em; }
	.page-6 .sprite { margin-bottom: 8em; width: 98%; }
	.page-6 .sprite-1 { background-image: url('../img/text/page-6_1_simply.png'); height: 1em; margin-bottom: 1em; }
	.page-6 .sprite-2 { background-image: url('../img/text/page-6_2_and-let.png'); height: 16em; }
	.page-6 .sprite-3 { background-image: url('../img/text/page-6_3_easy-as.png'); height: 15.5em; }

	.page-7 { padding-top: 8em; }
	.page-7 .sprite { margin-bottom: 10em; width: 98%; }
	.page-7 .sprite-1 { background-image: url('../img/text/page-7_1_best-part.png'); height: 27em; }
	.page-7 .sprite-2 { background-image: url('../img/text/page-7_2_because-everyone.png'); height: 10em; }
	.page-7 .sprite-3 { background-image: url('../img/text/page-7_3_back.png'); height: 2em; margin-bottom: 1em; }

	.page-8 .sprite { background-image: url('../img/text/page-8_1_contact.png'); width: 98%; height: 0.6em; }
	.page-8 .sprite a.press { width: 70px; margin-left: 63px; }
	.page-8 .sprite a.tech { width: 125px; }
	.page-8 .sprite a.hire { width: 55px; }

	.page-9 { padding-top: 5em; padding-bottom: 4em; }
	.page-9 .sprite-1 { background-image: url('../img/text/page-9_1_about.png'); width: 98%; height: 4em; }
	.page-9 .sprite-2 { background-image: url('../img/text/page-9_2_back.png'); width: 98%; height: 2em; margin-top: 8em; }
	.page-9 p { padding: 2%; text-align: left; font-size: 0.7em; }
}

@media only screen and (max-width: 480px) {
	
}

@media only screen and (min-device-width: 481px) and (max-device-width: 768px) {

}

/* ==========================================================================
   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;
    }
}
