/*
 * 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;
    height: 100%;
    width: 100%;
}

body {
    font-size: 1em;
    line-height: 1.4;
    background: #999; 
    width: 100%;  
    height: 100%;
    font-family: 'Lucida Grande', Helvetica, Arial, Sans-Serif;
}


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


/* MOBIILE STYLE */

.wrapper-mobile {
  width: 100%;
  height: 100%;
  background: white;

}

.container-mobile {
  width: 400px;
  height: 100%;
  background-color: white;
    margin: 0 auto;
}

#logo-mobile {
  width: 238px;
  margin: 0 auto;
}

#logo-mobile img {
  margin-top: 25px;
}



/* mobile top nav */

nav.mobile ul li {
    float: left;
}

nav.mobile ul li a {
    display:block;
    color: #b3b3b3;
    margin: 0px 8px 0px 0px;
    padding: 10px 15px;
    text-decoration: none;
}

nav.mobile a.active, a:hover.active {
    background: #bbbdbf; 
    color: white;
    border-radius: 7px;
}

/* END mobile top nav */





/* bottom nav mobile */

.footer-mobile {
  height: 100px;
  width: 100%;
  background-color: #1e86b3; 
}

.bottom-nav-mobile {
  width: 400px;
  height: 100px;
  background-color: #1e86b3;
  margin: 0 auto;
}

nav.bottom-nav-mobile ul li {
    float: left;
    margin-top: 35px;
}

nav.bottom-nav-mobile ul li a {
    display: block;
    color: #f1f1f2;
    margin: 0px 5px 0px 0px;
    padding: 10px 15px;
    text-decoration: none;
}

nav.bottom-nav-mobile ul li a:hover {
    color: #ccc;
    background: none;
    text-decoration: none;
}

/* END bottom top nav mobile*/

.download-iphone {
        background:url(../img/ht-sprite.png) no-repeat;
        background-position: 0px -458px;
        margin: 25px auto 10px auto;
        width: 290px;

             /* "Scott Kellum Method (2012)" for image replacement */
         text-indent: 100%;
         white-space: nowrap;
         overflow: hidden;
}

.download-iphone a {
        display: block; /* we make the <a> block, so that we can assign a width/height and create the "button" click area */
        width: 290px;
        height: 48px;
}

.download-iphone:hover {
     background-position: 0px -458px;
}



.center {
  width: 400px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mobile-text h1 {
  margin: 20px 0px 5px 0px;
  line-height: 60px;
}

.mobile-text p {
  margin: 0 0px 0 0px;
}

.mobile-details {
  margin: -30px 30px 40px 30px;
  text-align: left;
}

.mobile-details p {
  margin: 20px 0 0 0;
}


.point-mobile {
  width: 340px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.point-mobile h2 {
  margin: 10px 0 -15px 0;

}

.point-mobile img {
  margin: 35px 0 0 0;
}

.points-mobile {
  margin: 15px 0 45px 0;
}

.points-mobile-container {
  margin-top: 30px;
}


/* DESKTOP STYLE */

#wrapper {
    width: 100%;
    min-height: 100%;
    background: #b3b3b3; /* Old browsers */
    background: -moz-linear-gradient(top,  #b3b3b3 0%, #404040 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b3b3b3), color-stop(100%,#404040)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #b3b3b3 0%,#404040 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #b3b3b3 0%,#404040 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #b3b3b3 0%,#404040 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #b3b3b3 0%,#404040 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b3b3b3', endColorstr='#404040',GradientType=0 ); /* IE6-9 */

}


.container {
    background: white;
}

.shadow {
    -moz-box-shadow:    0px 0px 35px 0px #000;
    -webkit-box-shadow: 0px 0px 35px 0px #000;
    box-shadow:         0px 0px 35px 0px #000;
}



#logo img {
    margin: 15px 0px;
}

/* top nav */

nav ul li {
    float:right;
}

nav ul li a {
    display:block;
    color: #b3b3b3;
    margin: 8px 0px 0px 5px;
    padding: 10px 15px;
    text-decoration: none;
}

nav ul li a:hover {
    background: #f1f1f2; 
    color: black;
    border-radius: 7px;
    text-decoration: none;
}

nav ul li a:active {
    background: #e6e7e8;
    color: black;
    border-radius: 7px;
    text-decoration: none;
}

a.active, a:hover.active {
    background: #bbbdbf; 
    color: white;
    border-radius: 7px;
}

.button {
   margin-left: 20px; 
   border-top: 1px solid #fafafa;
   background: #636263;
   background: -webkit-gradient(linear, left top, left bottom, from(#adadad), to(#636263));
   background: -webkit-linear-gradient(top, #adadad, #636263);
   background: -moz-linear-gradient(top, #adadad, #636263);
   background: -ms-linear-gradient(top, #adadad, #636263);
   background: -o-linear-gradient(top, #adadad, #636263);
   padding: 7px 14px;
   -webkit-border-radius: 5px;
   -moz-border-radius: 5px;
   border-radius: 5px;
   -webkit-box-shadow: rgba(0,0,0,1) 0 1px 0;
   -moz-box-shadow: rgba(0,0,0,1) 0 1px 0;
   box-shadow: rgba(0,0,0,1) 0 1px 0;
   text-shadow: rgba(0,0,0,.4) 0 1px 0;
   color: white;
   font-size: 18px;
   font-family: 'Lucida Grande', Helvetica, Arial, Sans-Serif;
   text-decoration: none;
   vertical-align: middle;
   }
.button:hover {
   border-top-color: #595959;
   background: #595959;
   color: #ccc;
   -webkit-border-radius: 5px;
   -moz-border-radius: 5px;
   border-radius: 5px;
   }
.button:active {
   border-top-color: #4d4d4d;
   background: #4d4d4d;
   -webkit-border-radius: 5px;
   -moz-border-radius: 5px;
   border-radius: 5px;
   }

/* END top nav */




/* bottom nav */

nav.bottom-nav ul {
    margin-top: 90px;
    margin-left: -55px; 
}

nav.bottom-nav ul li {
    float: left;
}

nav.bottom-nav ul li a {
    display: block;
    color: #f1f1f2;
    margin: 0px 8px 0px 0px;
    padding: 10px 15px;
    text-decoration: none;
}

nav.bottom-nav ul li a:hover {
    color: #ccc;
    background: none;
    text-decoration: none;
}

/* END bottom nav */





.hero-background {
    background: url(../img/apple_macbook.png) no-repeat;
    background-position: 100% 50px;
}

.hero-background-iphone {
    background: url(../img/iphone5.png) no-repeat;
    background-position: 85% 0px;
    margin-bottom: 45px;
    padding-bottom: 50px;
}

.details {
  padding: 40px 0px 50px 0px;
}

.details h1 {
    font-size: 50px;
    font-weight: lighter;
    margin: 0px 0px -15px 0px; 
}

h1 {
    font-size: 50px;
    font-weight: lighter;
    margin: 120px 0px -15px 0px;
}

h2 {
  font-size: 24px;
  font-weight: lighter;
  color: #4d4d4d;
}

p {
    font-size: 16px;
    color: #b3b3b3;
}

.hero-content {
    background: url(../img/gradient-white.png) repeat-y;
}

.hero-content img {
    margin: 25px 0px 0px 0px;
}


.download-facebook {
        background:url(../img/ht-sprite.png) no-repeat;
        background-position: 0px -3px;
        width: 315px;
        margin: 30px 0px 0px -5px;

             /* "Scott Kellum Method (2012)" for image replacement */
         text-indent: 100%;
         white-space: nowrap;
         overflow: hidden;
}

.download-facebook a {
        display: block; /* we make the <a> block, so that we can assign a width/height and create the "button" click area */
        width: 310px;
        height: 96px;
}

.download-facebook:hover {
     background-position: 0px -102px;
}




.download-iphone-desktop {
        background:url(../img/ht-sprite.png) no-repeat;
        background-position: 0px -202px;
        margin: 30px 0px 0px -5px;
        width: 307px;

             /* "Scott Kellum Method (2012)" for image replacement */
         text-indent: 100%;
         white-space: nowrap;
         overflow: hidden;
}

.download-iphone-desktop a {
        display: block; /* we make the <a> block, so that we can assign a width/height and create the "button" click area */
        width: 300px;
        height: 96px;
}

.download-iphone-desktop:hover {
     background-position: 0px -301px;
}



.toggle {
  position: relative;
  margin: 0px 0px 170px 0px;
}

.facebook-toggle {
        background:url(../img/ht-sprite.png) no-repeat;
        background-position: 0px -404px;
        position: absolute;
        width: 150px;
        height: 24px;
        margin: 10px 0px 0px -5px;

             /* "Scott Kellum Method (2012)" for image replacement */
         text-indent: 100%;
         white-space: nowrap;
         overflow: hidden;
}

.facebook-toggle a {
        display: block; /* we make the <a> block, so that we can assign a width/height and create the "button" click area */
        width: 140px;
        height: 24px;
}


.facebook-toggle-off {
        background:url(../img/ht-sprite.png) no-repeat;
        background-position: -146px -404px;
        position: absolute;
        width: 150px;
        height: 24px;
        margin: 10px 0px 0px -5px;

             /* "Scott Kellum Method (2012)" for image replacement */
         text-indent: 100%;
         white-space: nowrap;
         overflow: hidden;
}


.facebook-toggle-off:hover {
        background:url(../img/ht-sprite.png) no-repeat;
        background-position: 0px -404px;
        position: absolute;
        width: 150px;s
        height: 24px;
        margin: 10px 0px 0px -5px;

             /* "Scott Kellum Method (2012)" for image replacement */
         text-indent: 100%;
         white-space: nowrap;
         overflow: hidden;
}

.facebook-toggle-off a {
        display: block; /* we make the <a> block, so that we can assign a width/height and create the "button" click area */
        width: 140px;
        height: 24px;
}


.iphone-toggle {
        background:url(../img/ht-sprite.png) no-repeat;
        background-position: -101px -430px;
        position: absolute;
        width: 100px;
        height: 20px;
        margin: 10px 0px 0px 160px;

             /* "Scott Kellum Method (2012)" for image replacement */
         text-indent: 100%;
         white-space: nowrap;
         overflow: hidden;
}

.iphone-toggle:hover {
        background:url(../img/ht-sprite.png) no-repeat;
        background-position: 0px -430px;
        width: 100px;
        height: 20px;
        margin: 10px 0px 0px 160px;

             /* "Scott Kellum Method (2012)" for image replacement */
         text-indent: 100%;
         white-space: nowrap;
         overflow: hidden;
}

.iphone-toggle a {
        display: block; /* we make the <a> block, so that we can assign a width/height and create the "button" click area */
        width: 100px;
        height: 20px;
}

.iphone-toggle-on {
        background:url(../img/ht-sprite.png) no-repeat;
        background-position: 0px -430px;
        position: absolute;
        width: 100px;
        height: 20px;
        margin: 10px 0px 0px 160px;

             /* "Scott Kellum Method (2012)" for image replacement */
         text-indent: 100%;
         white-space: nowrap;
         overflow: hidden;
}

.iphone-toggle-on a {
        display: block; /* we make the <a> block, so that we can assign a width/height and create the "button" click area */
        width: 100px;
        height: 20px;
}

.hr-gradient {
  background: url(../img/gradient.png) no-repeat;
  background-size: 100%;
}

.point1, .point2, .point3 {
  float: left;
  text-align: center;
  width: 290px;
  margin: 85px 0 50px 0;
  padding: 0px 15px 0 15px;
}

.point1 h2, .point2 h2, .point3 h2 {
  margin: 10px 0 -10px 0;
}

.footer {
  height: 200px;
  background-color: #1e86b3;
}

#copyright {
  text-align: right;
  margin-top: 100px;
  color: #f1f1f2;
}




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

/*
 * 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 only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* 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;
    }
}
