/*
 * 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;
    padding-top: 2em;
    padding-bottom: 2em;
    min-width: 900px;
}

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

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

.side-menu
{
	position: fixed;
	background-color: rgba( 80, 80, 80, .95 );
	color: white;
	position: fixed;
	left: 0em;
	top: 1.7em;
	right: 0em;
	padding-left: 1em;
	z-index: 1;
}

.side-menu-button
{
	position: fixed;
	left: -2.1em;
	top: 9.0em;
	background-color: grey;
	color: white;
	transform:rotate(270deg);
	-ms-transform:rotate(270deg); /* IE 9 */
	-webkit-transform:rotate(270deg); /* Safari and Chrome */
	padding-left: 1em;
	padding-right: 1em;
	cursor: pointer;
	z-index: 4;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

.side-menu-button:hover
{
	background-color: rgba( 60, 60, 60 );
}

.footer
{
    position: fixed;
    bottom: 0px;
    text-align: center;
    background-color: rgba( 60, 60, 60 );
    width: 100%;
    color: rgba( 255, 255, 255, 0.5 );
    height: 2.0em;
    font-size: 0.8em;
}

.footer a
{
    text-decoration: none;
    color: rgba( 0, 0, 0, 0.5 );
}

.footer img
{
	height: 2em;
}

#www
{
	position: fixed;
	right: 0px;
	bottom: 6.2em;
}

#email
{
	position: fixed;
	right: 0px;
	bottom: 4em;
}

#twitter
{
	position: fixed;
	right: 0px;
	bottom: 2em;
}

#copyright
{
	position: fixed;
	transform:rotate(270deg);
	-ms-transform:rotate(270deg); /* IE 9 */
	-webkit-transform:rotate(270deg); /* Safari and Chrome */
	right: -52pt;
	bottom: 141pt;
	color: rgba( 0, 0, 0, 0.5 );
}

#facebook
{
	position: fixed;
	right: 0px;
	bottom: 0em;
}

.header-level-1
{
    float: left;
    cursor: pointer;
}

div.section:nth-child(odd)
{
    background-color: rgba( 100, 255, 100, 0.05);
}

a[smooth-scroll-jquery]
{
	font-weight: bold;
	cursor: pointer;
}

a
{
	font-weight: bold;
	text-decoration: none;
	color: rgba( 100, 100, 180, 1 );
}

div.section
{
    padding-left: 2em;
    padding-right: 2em;
}

.command
{
	position: relative;
	top: -0.05em;
    font-family: monospace;
    font-size: 1.2em;
    background-color: hsl(215, 100%, 92%);
    border-radius: 3px;
    padding-left: 0.35em;
    padding-right: 0.35em;
    border: 1px solid rgba( 0, 0, 0, 0.1 );
	color: black;
}

.subcommand
{
	position: relative;
	top: -0.05em;
    font-family: monospace;
    font-size: 1.2em;
    background-color: hsl(215, 100%, 92%);
    border-radius: 3px;
    padding-left: 0.35em;
    padding-right: 0.35em;
    border: 1px solid rgba( 0, 0, 0, 0.1 );
    cursor: pointer;
	color: black;
    font-style: italic;
}

img.icon
{
	position: relative;
	top: -0.05em;
	height: 1.2em;
}

.key
{
	position: relative;
	top: -0.05em;
    font-family: monospace;
    font-size: 1.2em;
    background-color: hsl(255, 100%, 92%);
    border-radius: 3px;
    padding-left: 0.35em;
    padding-right: 0.35em;
    border: 1px solid rgba( 0, 0, 0, 0.1 );
    cursor: pointer;
	color: black;
}

.subkey
{
	position: relative;
	top: -0.1em;
    font-family: monospace;
    font-size: 1.2em;
    font-style: italic;
    background-color: hsl(255, 100%, 92%);
	color: black;
    border-radius: 3px;
    padding-left: 0.35em;
    padding-right: 0.35em;
    border: 1px solid rgba( 0, 0, 0, 0.1 );
}

table
{
    margin-left: auto;
    margin-right: auto;
}

div.code
{
    font-size: small;
    white-space: pre-wrap;
    border-radius: 5px;
    background-color: hsl(0, 0%, 95%);
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    padding-left: 1em;
    padding-right: 1em;
    border: 1px solid rgba( 0, 0, 0, 0.1 );
}

p + div.code
{
	margin-top: 1em;
}

p + div.lc-screenshot
{
	margin-top: 1em;
}

div.tabset>div.tabset-body>div.tab>p
{
	font-size: 0.9em;
	margin-top: 0.5em;
	margin-bottom: -0.3em;
}

p.note
{
    border-radius: 5px;
    background-color: lightgoldenrodyellow;
    padding: 0.5em;
    padding-left: 1em;
    padding-right: 1em;
    border: 1px solid rgba( 0, 0, 0, 0.1 );
}

p.note:before
{
    content: "Note: ";
    font-weight: bold;
}

p.important
{
    border-radius: 5px;
    background-color: hsl(0, 100%, 95%);
    padding: 0.5em;
    padding-left: 1em;
    padding-right: 1em;
    border: 1px solid rgba( 0, 0, 0, 0.1 );
}

p.important:before
{
    content: "Important: ";
    font-weight: bold;
}

.lc-screenshot
{
    text-align: center;
    border-radius: 5px;
}

.tabbed-tab
{
    color: blue;
    cursor: pointer;
}

.tabbed-tab.selected
{
    color: red;
}

div.main
{
    top: 2.5em;
}

.header
{
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 1.2em;
    line-height: 1.2em;
    text-align: center;
    font-weight: bold;
    font-size: 1.0em;
    background-color: rgb( 60, 60, 60 );
    z-index: 3;
    border-bottom: 10px solid rgb( 60, 60, 60 );
    border-top: 10px solid rgb( 60, 60, 60 );
    color: white;
    min-width: 900px;
}

h1
{
    font-size: 1.2em;
}

h2
{
    font-size: 1.1em;
}

h3
{
    font-size: 1.0em;
}

.terminal
{
    font-family: monospace;
    font-size: 1.2em;
    background-color: hsl(0, 0%, 95%);
    border-radius: 3px;
    padding-left: 0.35em;
    padding-right: 0.35em;
}

span.terminal
{
    border: 1px solid rgba( 0, 0, 0, 0.1 );
}

.code
{
    font-family: monospace;
    font-size: larger;
}

td
{
    padding-left: 1em;
    padding-right: 1em;
}

tr th:last-child
{
    border-top-right-radius: 5px;
}
tr th:first-child
{
    border-top-left-radius: 5px;
}

tr th
{
    background-color: hsl(213, 100%, 90%);
}

tr
{
    background-color: hsl(213, 100%, 99%);
}

tr:nth-child(odd)
{
    background-color: hsl(213, 100%, 96%);
}










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