/*! HTML5 Boilerplate v5.0.0 | MIT License | http://h5bp.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;
    font-family: Palatino,Palatino Linotype,Palatino LT STD,Book Antiqua,Georgia,serif; 
    width:100%;    
}
body{
    width:100%;

    -webkit-perspective: 999999px; /* <-NB */
}


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

















/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

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

.centered{
    text-align: center;
}
.italic{
    font-style:italic;
}
.bold{
    font-weight: bold;
}

/* ==========================================================================
   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 the additional HTTP request:
   archived print CSS loading note
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        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;
    }
}

.ribbon{
    clear:both;
    display:block;
    position:relative;
    width:100%;
    float:left;
}

.wrap{
    width:1200px;
    margin:0 auto;
}

#logo{
    margin: 0 auto;
    display:block;
    width:186px;
    padding: 12px 0;
}

.dash-line{
    width:960px;
    height:4px;
    background: url("top_dash.png");
    background-repeat: repeat-x;
    margin:0 auto;
}
.line{
    width:960px;
    height:1px;
    background: url("line.png");
    background-repeat: repeat-x;
    margin:0 auto;
}
.qline{
    width:740px;
    height:1px;
    background: url("line.png");
    background-repeat: repeat-x;
    margin:25px auto;
}
.cline{
    width:100%;
    height:1px;
    background: url("line.png");
    background-repeat: repeat-x;
    margin:0px auto;
}
.cline.mobile{
    display:none;
}

#nav {
    display: table;
    float: none;
    list-style: outside none none;
    margin: 0 auto;
    padding-left:0px;
   
    padding-top: 12px;
}
#nav li{
    display:inline-block;
}


/* Container box to set the sides relative to */
.cube {
    text-align: center;
    margin: 0 auto;
    height: 26px;
    padding:10px;
    display:block;

    -webkit-transition: -webkit-transform .33s;
    transition: transform .33s; /* Animate the transform properties */

    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d; /* <-NB */
}

/* The two faces of the cube */
.flippety,.flop { 
    border-radius: 5px;
    height: 25px;
    display:block;

}

/* Position the faces */
.flippety {
    -webkit-transform: translateZ(23px);
    transform: translateZ(23px);
}

.flop {
    -webkit-transform: rotateX(-90deg) translateZ(-23px);
    transform: rotateX(-90deg) translateZ(-23px);
}

/* Rotate the cube */
.cube:hover {
    -webkit-transform: rotateX(89deg);
    transform: rotateX(89deg); /* Text bleed at 90º */
}




#content{
    width:762px;
    margin:0 auto;
    display:table;
    padding-bottom:22px;
}
#content h1{
    font-size: 41px;
    font-style: italic;
    color: #debea6;
    font-weight:lighter;
    margin:23px 0;
    margin-top:0px;
}
#content p{
    font-size:13px;
    color:#000;
}
#content img{
    max-width:100%;
}
#content a{
    color: #000;
    text-decoration: none;
}
#content a:hover{
    color:#65a0c1;
}
#column_1{
    width:362px;
    margin-right:22px;
    float:left;
}
#column_2{
    width:362px;
    float:left;
}
footer{
    width:960px;
    margin: 0 auto;

}
#footer_title{
    font-size: 15px;
    color: #169b77;
    width:235px;
    float:left;
    margin-top:25px;
    font-weight:lighter;
}
#footer_addr{
    float:right;
    text-align:right;
    width:200px;
    margin-top:25px;
}
#footer_addr p{
    margin:0px;
    font-size:12px;
}
.feet{
    padding-bottom:44px;
}
#for{
    font-style: italic;
}
#banner{
    max-width:100%;
    margin: 0 auto;
    display: table;
    padding-bottom:10px;
}
.test{
    padding-bottom:44px;
}

#content h2{
    font-size: 20px;
    font-style: italic;
    color: #000;
    font-weight:lighter;
    margin-top:10px;
}

.right-name{
    color: #71baca;
    text-align: right;
    float:right;
    font-style: italic;
}


.pull{
    display:none;
    text-align:center;
    cursor:pointer;
    padding-bottom:10px;
    margin:0px;
}

#pull img{
    margin:0 auto;
    display:block;
}



@media (max-width:1200px){
    .wrap{
        width:100%;
    }
}

@media (max-width:960px){
    .dash-line{
        width:90%;
        margin: 0 auto;
    }
    .line{
        width:100%;
    }
    footer{
        width:90%;
        margin:0 5%;
    }

    iframe#banner{
        max-height:400px;
        max-width:90%;
        margin-left: 5%;
        margin-right:5%;
    }

}

@media (max-width:762px){
    #content,#column_1,#column_2{
        width:100%;
        margin:0px;
    }
    #content p img{
        margin: 0 auto;
        display:table;
    }
    #content{
        width:90%;
        margin:0 5%;
    }
    .qline{
        width:90%;
        margin: 0 5%;
    }
}
@media (max-width:700px){
    #pull{
        display:block;
    }
    #nav{
        display:none;
    }
    #nav img{
        margin: 0 auto;
        display:block;
    }
    #nav li{
        display:block;
    }

    .cline.mobile{
        display:block;
    }
}

@media (max-width:550px){
    #footer_title{
        width:90%;
        margin:5%;
        float:none;
        text-align:center;
    }
    #footer_addr{
        width:90%;
        margin:5%;
        float:none;
        text-align:center;
    }
    #content h1{
        font-size:36px;
    }

}