/*
 * 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 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 images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
    max-width: 100%;
}

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

* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }

@font-face {
    font-family: 'SkyTextRegular';
    src: url('https://mybike.goskyride.com/Includes/fonts/sky_reg-webfont.eot');
    src: url('https://mybike.goskyride.com/Includes/fonts/sky_reg-webfont.eot#iefix') format('embedded-opentype'),
         url('https://mybike.goskyride.com/Includes/fonts/sky_reg-webfont.woff') format('woff'),
         url('https://mybike.goskyride.com/Includes/fonts/sky_reg-webfont.ttf') format('truetype'),
         url('https://mybike.goskyride.com/Includes/fonts/sky_reg-webfont.svg#SkyTextRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'SkyTextMediumRegular';
    src: url('https://mybike.goskyride.com/Includes/fonts/sky_med-webfont.eot');
    src: url('https://mybike.goskyride.com/Includes/fonts/sky_med-webfont.eot#iefix') format('embedded-opentype'),
         url('https://mybike.goskyride.com/Includes/fonts/sky_med-webfont.woff') format('woff'),
         url('https://mybike.goskyride.com/Includes/fonts/sky_med-webfont.ttf') format('truetype'),
         url('https://mybike.goskyride.com/Includes/fonts/sky_med-webfont.svg#SkyTextMediumRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

html, body { height: 100%; }

html {
    overflow-y: scroll;
    min-height: 100%;
    /*background: #46acde;
    background: -moz-linear-gradient(top,  #46acde 0%, #a0cdea 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#46acde), color-stop(100%,#a0cdea));
    background: -webkit-linear-gradient(top,  #46acde 0%,#a0cdea 100%);
    background: -o-linear-gradient(top,  #46acde 0%,#a0cdea 100%);
    background: -ms-linear-gradient(top,  #46acde 0%,#a0cdea 100%);
    background: linear-gradient(to bottom,  #46acde 0%,#a0cdea 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#46acde', endColorstr='#a0cdea',GradientType=0 );*/
    background: #00b1e1;
}

body {
    background: url(https://mybike.goskyride.com/Includes/img/body.bg.jpg) no-repeat center bottom;
}

a {
    color: #0095d6;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: 'SkyTextRegular';
}

.row {
    max-width: 970px;
    margin: 0 auto;
    position: relative;
}

div[role="main"] {
    padding-bottom: 20px;
}

/* Reveal */
.reveal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}
.reveal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    padding: 20px;
}
.reveal-content {
    max-width: 500px;
    margin: 90px auto 0;
    -webkit-box-shadow: 0 0 20px #000;
    -moz-box-shadow: 0 0 20px #000;
    box-shadow: 0 0 20px #000;
    position: relative;
}
.reveal-overlay.show, .reveal.show {
    display: block;
}
.reveal-close {
    position: absolute;
    right: -30px;
    top: -30px;
    display: block;
    width: 56px;
    height: 55px;
    text-indent: -999px;
    overflow: hidden;
    background: url(https://mybike.goskyride.com/Includes/img/close.png) no-repeat 0;
}

/* Banner */
header[role="banner"] {
    background: #ffffff;
    background: -moz-linear-gradient(top,  #ffffff 0%, #e5e5e5 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5));
    background: -webkit-linear-gradient(top,  #ffffff 0%,#e5e5e5 100%);
    background: -o-linear-gradient(top,  #ffffff 0%,#e5e5e5 100%);
    background: -ms-linear-gradient(top,  #ffffff 0%,#e5e5e5 100%);
    background: linear-gradient(to bottom,  #ffffff 0%,#e5e5e5 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 );
    -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 99;
}
header[role="banner"] > .row {
    padding: 5px 10px 3px;
}
header[role="banner"] .sky-home, header[role="banner"] .sky-logo, header[role="banner"] .sky-links {
    float: left;
    width: 33.3%
}
header[role="banner"] .sky-home {
    text-align: left;
}
header[role="banner"] .sky-logo {
    text-align: center;
}
header[role="banner"] .sky-links {
    text-align: right;
}
header[role="banner"] .sky-links .twitter-icon {
    margin-left:20px;
}
header[role="banner"] .sky-links .facebook-icon {
    margin-left:2px;
}

/* Hero */
div[role="hero"] {
    margin-bottom: 10px;
    overflow: hidden;
}
div[role="hero"] .slides {
    overflow: hidden;
}
div[role="hero"] .slide {
    text-align: center;
    transition: .1s;
    -moz-transition: .1s;
    -webkit-transition: .1s;
}
div[role="hero"] .controls {
    text-align: center;
}
div[role="hero"] .controls > .prev, div[role="hero"] .controls > .next {
    display: block;
    width: 66px;
    height: 94px;
    text-indent: -999px;
    overflow: hidden;
    background: url(https://mybike.goskyride.com/Includes/img/hero.icons.png) no-repeat 0;
    position: absolute;
    bottom: 120px;
}
div[role="hero"] .controls > .prev {
    background-position: 0 0;
    left: 10px;
}
div[role="hero"] .controls > .next {
    background-position: -66px 0;
    right: 10px;
}
div[role="hero"] .controls > i {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 5px;
    border: 3px solid #fff;
    background: #fff;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    border-radius: 100%;
    -webkit-box-shadow: 0 0 10px #000;
    -moz-box-shadow: 0 0 10px #000;
    box-shadow: 0 0 10px #000;
}
div[role="hero"] .controls > i.active {
    background: #b00000;
}

div[role="hero"] .large {
    display: block;
    margin: 0 auto;
}
div[role="hero"] .small {
    display: none;
}

/* CTA Boxes */
aside.box {
    width: 33.3%;
    padding: 12px;
    float: left;
    text-align: center;
}
aside.box .panel {
    overflow: hidden;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    background: #ffffff;
    background: -moz-linear-gradient(top,  #ffffff 0%, #ededed 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#ededed));
    background: -webkit-linear-gradient(top,  #ffffff 0%,#ededed 100%);
    background: -o-linear-gradient(top,  #ffffff 0%,#ededed 100%);
    background: -ms-linear-gradient(top,  #ffffff 0%,#ededed 100%);
    background: linear-gradient(to bottom,  #ffffff 0%,#ededed 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 );
    -webkit-box-shadow: 0 0 10px #000;
    -moz-box-shadow: 0 0 10px #000;
    box-shadow: 0 0 10px #000;
    max-width: 300px;
    min-height: 300px;
    text-align: left;
    margin: 0 auto;
}
.gt-ie8 aside.box .panel {
    filter: none;
}
aside.box hgroup {
    padding: 10px 15px;
}
aside.box hgroup h1, aside.box hgroup h2 {
    margin: 0;
}
aside.box hgroup h1 {
    color: #333;
    font-weight: bold;
    font-size: 28px;
    line-height: 32px;
}
aside.box hgroup h2 {
    color: #0095d6;
    font-size: 22px;
    line-height: 26px;
    font-weight: normal;
}
aside.box header {
    padding: 5px 10px;
    background: #62b6e2;
    background: -moz-linear-gradient(top,  #a9d8f1 0%, #62b6e2 40%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#a9d8f1), color-stop(40%,#62b6e2));
    background: -webkit-linear-gradient(top,  #a9d8f1 0%,#62b6e2 40%);
    background: -o-linear-gradient(top,  #a9d8f1 0%,#62b6e2 40%);
    background: -ms-linear-gradient(top,  #a9d8f1 0%,#62b6e2 40%);
    background: linear-gradient(to bottom,  #a9d8f1 0%,#62b6e2 40%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a9d8f1', endColorstr='#62b6e2',GradientType=0 );
    color: #fff;
}
.gt-ie8 aside.box header {
    filter: none;
}
aside.box header h1 {
    margin: 0;
    font-weight: bold;
    font-size: 18px;
}
.twitter-feed {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #666;
    font-size: 12px;
    overflow: auto;
    max-height: 255px;
}
.twitter-feed li {
    padding: 10px;
    border-bottom: 1px solid #dcdcdc;
}
.twitter-feed li:last-child {
    border: none;
}
.twitter-feed li > .twitter-pic {
    float: left;
    width: 25%;
    padding-right: 5px;
}
.twitter-feed li > .twitter-post {
    float: left;
    width: 75%;
}
.twitter-feed li > .twitter-post p {
    margin: 0;
}
.twitter-feed li > .twitter-post a {
    font-weight: bold;
}

@media all and (min-width: 720px) {
    div[role="hero"] .slide.combo {
        background: none;
        position: relative;
    }
    div[role="hero"] .slide.mym {
        padding: 0 80px;
    }
}
@media all and (max-width: 720px) {
    .reveal-content {
        margin-top: 30px;
    }
    header[role="banner"] .sky-home {
        width: 25%;
    }
    header[role="banner"] .sky-logo {
        width: 75%;
        text-align: right;
    }
    header[role="banner"] .sky-links {
        float: none;
        width: 100%;
        text-align: center;
        clear: both;
    }
    header[role="banner"] .britishCycling {
        float: left;
    }
    header[role="banner"] .social {
        float: right;
    }

    aside.box {
        float: none;
        width: 100%;
    }

    div[role="hero"] .large {
        display: none;
    }
    div[role="hero"] .small {
        display: block;
    }
    div[role="hero"] {
        /*max-width: 500px;
        margin: 0 auto;*/
    }
    div[role="hero"] .controls > .prev, div[role="hero"] .controls > .next {
        width: 33px;
        height: 41px;
        background-size:60px 40px;
        bottom: 40px;
    }
    div[role="hero"] .controls > .prev {
    }
    div[role="hero"] .controls > .next {
        background-position: -28px 0;
    }
    div[role="hero"] .slide {
        height: 570px;
        /*height: 430px;*/
        position: relative;
    }

    div[role="hero"] .slide.combo {
        background: none;
    }
    div[role="hero"] .slide.combo .background {
    }
    div[role="hero"] .slide.combo .header {
        position: absolute;
        top: 3%;
        width: 100%;
        padding: 10px;
    }
    div[role="hero"] .slide.combo .cta {
        position: absolute;
        bottom: 3%;
        width: 100%;
        padding: 10px;
    }
    div[role="hero"] .slide.combo .cta .btn {
        width: 50%;
        margin-top: 10px;
    }
    
    div[role="hero"] .slide.mym .background {
        margin-top: 12%;
    }
    div[role="hero"] .slide.mym .header {
        position: absolute;
        top: 0;
        width: 100%;
        padding: 10px;
    }
    div[role="hero"] .slide.mym .cta {
        position: absolute;
        bottom: 3%;
        width: 100%;
        padding: 10px;
    }
    div[role="hero"] .slide.mym .cta .btn {
        width: 50%;
        margin-top: 5px;
    }

    aside.box {
        float: none;
        width: 100%;
    }
    aside.box .panel {
        min-height: auto;
    }
    aside.box hgroup h1 {
        font-size: 24px;
        line-height: 28px;
    }
    aside.box hgroup h2 {
        font-size: 18px;
        line-height: 22px;
    }
    .twitter-feed {
        max-height: 100%;
    }
}
@media all and (max-width: 640px) {
    div[role="hero"] .slide {
        height: 530px;
    }
}
@media all and (max-width: 600px) {
    div[role="hero"] .slide {
        height: 500px;
    }
}
@media all and (max-width: 550px) {
    div[role="hero"] .slide {
        height: 465px;
    }
}
@media all and (max-width: 500px) {
    div[role="hero"] .slide {
        height: 425px;
    }
}
@media all and (max-width: 460px) {
    div[role="hero"] .slide {
        height: 390px;
    }
}
@media all and (max-width: 400px) {
    div[role="hero"] .slide {
        height: 350px;
    }
}
@media all and (max-width: 350px) {
    div[role="hero"] .slide {
        height: 300px;
    }
}


/* ==========================================================================
   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.
   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,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* 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;
    }
}