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

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

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

















/* ==========================================================================
   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,
       (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,
    *:first-letter,
    *:first-line {
        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;
    }
}


/*
* Customizing
*/
body {
    color: #333333;
    font-size: 18px;
    font-family: Roboto, sans-serif;
    font-weight: 300;
}

h2 {
    font-weight: 100;
    font-size: 36px;
}

h2 span {
    font-size: 16px;
    color: #666666;
}

h4 {
    font-weight: 100;
    font-size: 28px;
    color: #666;
    margin-bottom: 10px;
}


a {
    text-decoration: none;
    color: #80BBB2;
    -webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
}

a:hover {
    color: #FFFFFF;
}

p {
    margin: 30px 0;
}
.pull-left {
    float: left;
}
.pull-right {
    float: right;
}

.wrapper {
    width: 100%;
    overflow-x: hidden;
}
header {
    width: 100%;
    padding: 10px 100px;
    box-sizing: border-box;
    border-bottom: 1px solid #EEEEEE;
}

header:after {
    content: "";
    clear: both;
    display: block;
}

header h1 {
    font-family: Rubik, sans-serif;
    font-size: 72px;
    font-weight: 300;
}

header h1 img {
    width: 150px;
}

header .nav {
    margin: 120px 20px;
}

header .nav a {
    color: #333333;
    margin: 0px 40px;
    font-size: 24px;
}

header .nav a span {
    border-bottom: 5px solid #FFF;
    -webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
}

header .nav a:hover span {
    border-bottom: 5px solid #80BBB2;
}

header .nav img {
    margin-right: 10px;
}

.wrap {
    width: 960px;
    height: auto;
    left: 50%;
    margin-left: -480px;
    position: relative;
    box-sizing: border-box;
    padding: 40px 0;
}

.no-padding {
    padding: 0px;
}

.width100 {
    width: 100%;
}

.content {
    width: 620px;
}

.sidebar {
    width: 320px;
    padding-left: 20px;
    box-sizing: border-box;
}

#intro {
    width: 100%;
    background-color: #FFFFFF;
}

li {
    margin: 5px 0;
}

#preview {
    position: absolute;
    top: 400px;
    left: 50%;
    margin-left: 130px;
}

#preview img {
    width: 500px;
}

.more {
    width: 100%;
    background-color: #333333;
    color: #FFFFFF
}

.more h2 {
    color: #FFFFFF;
}

.downloads:after {
    content: "";
    clear: both;
    display: block;
}

.download-item {
    width: 150px;
    float: left;
    text-align: center;
}

#count {
    font-size: 48px;
    color: #666666;
}

kbd {
    display: inline-block;
    padding: 3px 5px;
    font-size: 11px;
    line-height: 10px;
    color: #555;
    vertical-align: middle;
    background-color: #fcfcfc;
    border: solid 1px #ccc;
    border-bottom-color: #bbb;
    border-radius: 3px;
    box-shadow: inset 0 -1px 0 #bbb;
}

.shortcuts {
    line-height: 32px;
}

.shortcuts span {
    display: inline-block;
}

.views {
    margin-top: 100px;
}

footer {
    width: 100%;
    border-top: 1px solid #444444;
    text-align: center;
    color: #999999;
    box-sizing: border-box;
    padding: 40px;
    background-color: #333333;
    font-size: 14px;
}

footer a {
    color: #999999;
}

@media screen and (max-width: 1280px) {
    header {
        padding: 10px 50px;
    }
    #preview img {
        width: 400px;
    }
}

@media screen and (max-width: 1024px) {
    header h1 {
        font-size: 48px;
    }
    header h1 img {
        width: 120px;
    }
    header .nav {
        margin: 70px 0px;
    }
    header .nav a {
        margin: 0px 20px;
        font-size: 18px;
    }
    .wrap {
        padding: 20px 10px;
        width: 100%;
        left: 0;
        margin-left: 0;
    }
    .content {
        width: 100%;
    }

    .sidebar {
        width: 400px;
        float: left;
    }

    #preview {
        position: relative;
        top: 0px;
        left: 50%;
        margin-left: -200px;
    }
}
@media screen and (max-width: 720px) {
    header {
        padding: 10px 20px;
    }
    header .nav a span{
        display: none;
    }
    .download-item {
        width: 100px;
    }
}
@media screen and (max-width: 520px) {
    header .nav {
        display: none;
    }
}
@media screen and (max-width: 420px) {
    #preview {
        margin-left: -150px;
    }
    #preview img {
        width: 300px;
    }
    .sidebar {
        width: 100%;
    }
}



