/*
 * 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 <addendum>(And those who  
 * paved the road before them ;)</addendum>.
 */

/* ==========================================================================
   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;
    margin-bottom: 0.5em;
}
picture {
    display: block;
    margin-bottom: 2em;
}
/*
 * 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
   ========================================================================== */

body {
    font-family: Garamond, Georgia, Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;  
    font-size: 1.8em;  
    color: #333;
    -webkit-font-feature-settings: "kern";
    -moz-font-feature-settings: "kern";
    -moz-font-feature-settings: "kern=1";
    position: relative;
}
body.cover {
    margin: 0;
    width: 100%;
    background: 
        url(../img/Title.svg) top right no-repeat,
        url(../img/Daffers.png) top left no-repeat;  
    background-color: #503c28;   
}
body.article.langley-and-casey {
    font-family: Garamond, Georgia, Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;  
    background: url(../img/cagney-and-lacey.gif) top center fixed;
}
body.article section {
    padding: 90px 3em;
    max-width: 700px;
    margin: 0 auto 0 auto;
    background: #f7f7f7;
}
body.article .fishy {
    background: url(../img/Angler.svg) right 10px no-repeat #f7f7f7;
}
body.article .crispy {
    background: url(../img/test.svg) right 10px no-repeat #f7f7f7;
}
body.article.langley-and-casey section {
    background: #fff;
    background: rgba(255,255,255,1);
}
body.article.langley-and-casey h1 {
    font-family: Impact, sans-serif;  
    font-size: 5.52em;
    line-height: .85em;
    letter-spacing: -0.02em;
}
body.article.langley-and-casey h2 {
    font-size: 1.44em;
    text-align: center;
    text-transform: uppercase;  
    position: relative; 
    left: .2em; 
    letter-spacing: 1px;
}
body.article.langley-and-casey h1 .spacing-w {
    letter-spacing: -0.04em;
}
body.article article a, body.article .show-links a {
    padding-left: .2em;
}
body.article .pointer:before {
    position: absolute;
    top: 90px;
    right: -60px;
    width: 400px;
    height: 200px;
    background: url(../img/pointer.png) 0 0 no-repeat;
    background-size: contain;
    z-index: 99;
    content: " ";
    clear: both;
}
.col-02 {
    -webkit-column-width: auto;
    -webkit-column-count: 2;
    -webkit-column-gap: 20px;
}
.cover {
}
nav.main {
    background: #666;
    border-top: 6px solid #bbb;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 0 10px 5px 20px;
}
.cover nav.main {
    background: #aecc46;
    border-top: 6px solid #a6c343;
}
p, ul, ol, dl {
    font-weight: 300;
    color: #5a5a5a;    
    margin-bottom: 1em;
}
ul ul, ol ol, ol ul, ul ol {
    font-size: 1em;
}
strong {
    color: #0a0a0a;
}
i.italics-before-punctuation {
    margin-right: 0.1em;
}
h1 {
    font-size: 4.8em;
    line-height: 1.1em;
    -moz-font-feature-settings:"liga=1, dlig=1"; 
    -moz-font-feature-settings:"liga", "dlig"; /* EDIT: new syntax for FF 15+ */ 
    -ms-font-feature-settings:"liga", "dlig"; 
    -o-font-feature-settings:"liga", "dlig"; 
    -webkit-font-feature-settings:"liga", "dlig"; 
    font-feature-settings:"liga", "dlig";
}
q {
  quotes: "“" "”" "‘" "’";
  font-weight: bold;
}
q:before {
    content: open-quote;
}
q:after {
    content: close-quote;
}
article h1, aside h1 {
    margin-bottom: 0.3em;
}
article h2, aside h2 {
    margin: 1em 0 0.6em 0;;
}
article h3, aside h3 {
    color: #ff6e5a;
    font-size: 1.3em;
    line-height: 1.3em;
    margin: 1em 0 0.8em 0;
}
article h4, aside h4, article h5, aside h5 {
    color: #000;
    font-size: 1em;
    line-height: 1.3em;
    font-weight: bold;
    margin: 1em 0 0.8em 0;
}
article h5, aside h5 {
    font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
    font-size: 75%;
    color: rgba(255,255,255,.85);
    text-transform: uppercase;
    font-weight: normal;
    padding: 0.5em 0.7em;
    background: rgba(81,192,49,1);
}
article h6, aside h6 {
    color: #666;
    font-size: 100%;
    color: rgba(186,71,213,1);
    line-height: 1.3em;
    font-weight: normal;
    margin: 1em 0 0.8em 0;
}

article a, aside a {
    color: #3e8acc;
}
article a:hover, aside a:hover {
    color: #fff;
    background: #75a5e9;
    text-decoration: none;
}
article img, aside img {
    width: 100%;
}
img.logo {
    border: 2px solid rgba(235,235,235,1);
    margin: .8em 0 1.5em 0;
}
body.article.langley-and-casey picture {
    border: 1px solid #ccc;
}
body.article.langley-and-casey img {
    margin: 0;
}
body.article.langley-and-casey figcaption {
    padding: .35em .35em .2em .35em;
}

/* One of the stupidest ways to display an image outside a section without disturbing the layout. */

body.article.langley-and-casey article {
    overflow: visible;
}
body.article.langley-and-casey .waffles {
    width: 0;
    height: 0;
    position: absolute;
    overflow: visible;
}
body.article.langley-and-casey .waffles span {
    background: url(../img/waffle-toes.png) top left no-repeat;
    width: 620px;
    height: 500px;
    display: block;
    position: relative;
    top: -6em;
    left: 32em;
    z-index: 99;
}
.footnote sup {
    font-size: 55%;
    margin-right: .5em;
    border-top: 1px solid #f5f5f5;
}
figcaption {
    font-style: italic;
    font-size: 85%;
}
.opinion {
    padding-left: 2em;
    font-style: normal;
    border-left: 3px solid rgba(210,210,210,1);
}
.comment {
    color: #999;    
}
.footnote {                       /* This should be a proper element instead of having to resort to a class or identifier. */
    font-size: 85%;
    font-style: oblique;
    padding-top: .5em;
    margin-top: 1.5em;
    border-top: 1px solid #ccc;
}
article pre {
    background: #fff;
/*    display: block;
    margin: 1em 0 1.5em 0;
*/}
table {
    width: 100%;
    font-size: 85%;
    margin-bottom: 2em;
}
tr:nth-child(even) {
    background: rgba(0,0,0,.1);
    background: #eeeeee;
}
td {
    padding: .4em;
    border: 1px solid #ccc;
}
blockquote {
    font-style: italic;
    background: rgba(0,0,0,.03);
    margin-left: 2em;
    padding: 1.5em 3em;
}

/* Form elements */

btn#monkey-butt {
    position: relative;
    top: 15px;
    margin-bottom: 40px;
}


/* Specific classes */
.inline-note {
    font-size: 80%;
    color: #333; /* #000 */
    padding: 1.5em;
    background: #fff; /* #e4e4e4 */
    /* border-left: 5px solid #ff6e57;      <<< Why can't I get a friggin' straight line? This is stupid.
                                                Line two of the the This is stupid statement: Resorting to box-shadow 
                                                because the left border differs in colour and weight  
                                                from the other sides of the box. */
    border-top: 3px solid #ff6e57;
    border-bottom: 3px solid #ccc;
    position: relative;
    margin-bottom: 2em;
}
.subtle-eater-egg {
    border-bottom: 1px dotted #ff6e57;
    cursor: default;
}
.subtle-eater-egg:hover {
    border-bottom: 1px dotted #ff6e57;
    cursor: default;
    border-bottom: 1px dotted #fff;
}
.easter-egg, .bit-of-irony {
    font-weight: 700;
    border-bottom: 1px dotted #ff6e57;
    cursor: default;
}
h1 .easter-egg {
    font-weight: 500;
}
.easter-egg:hover, .bit-of-irony:hover {
    color: #ff6e57;
    border-bottom: 1px dotted #fff;
}
.i-dont-have-to-give-a-redacted-for-now {
    margin: 1em 0;
}
.cruft-to-go-and-a-large-coke {
    haha: no; 
}
.redacted-redacted-box {                            /* Bruce Spritespleen's hip surgery's */
    color: #fff;
    width: 6em;
    position: absolute;
    top: -1em;
    text-align: center;
    margin: 0 auto 0 auto;
    padding: 1.7em .3em .3em .3em;
    font-size: 2em;
    background: rgb(185,30,0);
}
i .emphasis-interrupted {
    font-style: normal;
}
.without-spricespleen {
    letter-spacing: .06em;
    color: #e60a10;
    text-decoration: line-through;
}
.scheme img {
    -webkit-box-shadow: inset 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow:    inset 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    box-shadow:         inset 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
}
.glyphicon {
    line-height: 0;
}
.silly-form {
    margin: 2em 0;
}
.silly-form input, .silly-form button {
    font-family: Arial, sans-serif;
}
.silly-form button {
    margin-top: 2em;
    margin-bottom: 3em;
}
.form-group label {
    display: block;
}


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