/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

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

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


/* Reset
------------------------------------------------------------ */
* { margin: 0; padding: 0; }
html { overflow-y: scroll;}
body { background:#999999; font-size: 13px; color: #666666; font-family: Arial, helvetica, sans-serif;}
ol, ul { padding-left: 40px; margin: 10px 0;}
aside ul, aside ol { list-style: none; margin: 0; padding: 0;}
h1 { margin-bottom: 10px; color: #111111;}
a, img { outline: none; border:none; color: #000; font-weight: normal;}
p { margin: 0 0 10px; line-height: 1.4em; font-size: 1.2em;}
img { display: block; margin-bottom: 10px;}
aside { font-style: italic; font-size: 0.9em;}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block;}

/* Structure */
#wrapper {width: 96%; max-width: 920px; margin: auto; /*padding: 2%;*/ background-color: #ffffff;}
header span {display: block; color: #000000; font-size: 4em;text-align: center; background-color: #464646}
header a {color: #8c061c; text-decoration: none; font-family: Tahoma, sans-serif;font-weight: normal;}
 /* Nav */
header nav {text-align: center; font-size: 1.5em; background-color: #141414; border-bottom: 10px solid #8c061c; }
header nav li {display: inline; margin-left: 15px; font-size: 1em;font-family: Tahoma, sans-serif;font-weight: normal;}
#bar {color: white;}
#banner {float: left; margin-bottom: 15px; width: 100%; background-image: url(/img/layout1.jpg); height: 100%;}
#banner img {width: 100%;}
/* content */
#main {width: 65%; margin-right: 5%; float: left; padding: 3%;}
h1 {text-align: center; color: #8c061c;}
/* sidebar start */
aside {width: 22%; float: right; padding: 1%;}
aside img {float: left; margin-right: 5px; width: 30%;}
aside #profile img {float: none; width: 90%; margin-bottom: 10px;}
aside #company-title {clear: both; text-align: center; font-size: 1em;}
aside #info-box {clear: both; font-size: 1.5em; margin-bottom: 10px;}
aside #resources {font-size: 1.5em;}
aside #resources a {font-size: .8em; text-decoration: none; color: #8c061c;}

/* sidebar end */

#clear {clear: both;} /* added so that background shows on floated elements */

footer {
        float: left;
        clear:left;
        margin-bottom: 15px;
        width: 100%;
        height:auto;
        padding-top:1%;
        background-color: #151515;
        color: #ffffff;
        text-align: center;
        }

footer a {color: #ffffff;}

#goTo {display: none;}
#goTo li {background: #f7b0b0;}


/* Media Queries */
@media screen and (max-width: 480px) {

    #goTo {display: block;
                    }

    header nav, #main, aside {
                    float: left;
                    clear: left;
                    margin: 0 0 10px;
                    width: 100%;
                    }

    header nav li {
                    margin: 0;
                    background: #151515;
                    display: block;
                    margin-bottom: 3px;
                    }

    header nav a {
                    display: block;
                    padding: 10px;
                    text-align: center;
                    color: #ffffff;
                                      }

    #bar {display: none;}
    #main {padding: 0px;}
  }










/* ==========================================================================
   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,
       (-webkit-min-device-pixel-ratio: 1.25),
       (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;
    }
}
