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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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;
}

/* ==========================================================================
   Gershoni custom styles
   ========================================================================== */

@font-face {
    font-family: 'Palestina';
    src: url("../fonts/249B14_0_0.eot");
    src: url("../fonts/249B14_0_0.eot?#iefix") format("embedded-opentype"), url("../fonts/249B14_0_0.woff") format("woff"), url("../fonts/249B14_0_0.ttf") format("truetype");
    font-weight: 700; 
}

@font-face {
    font-family: 'Palestina';
    src: url("../fonts/249B14_1_0.eot");
    src: url("../fonts/249B14_1_0.eot?#iefix") format("embedded-opentype"), url("../fonts/249B14_1_0.woff") format("woff"), url("../fonts/249B14_1_0.ttf") format("truetype");
    font-weight: 400; 
}
body {
    margin: 0;
    padding: 0;
    background: #000 url('/assets/img/bg_stripe_1.png') top left repeat;
}
#slideshow {
    position: fixed;
    margin-left: 150px;
    width: 100%;
    height: 100%;
    display: none;
}
#slideshow ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;
}
#slideshow ul li {
    margin: 0;
    padding: 0;
    position: absolute;
    overflow: hidden;
}
#slideshow ul li img {
    position: relative;
}
header {
    width: 150px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    background: #242424;
    margin: 0;
    color: #fff;
    z-index: 120;
}
#logo {
    position: fixed;
    bottom: 0;
}
.activeslide {
    z-index: 100;
}
.nextslide {
    z-index: 80;
}
.prevslide {
    z-index: 60;
}
a {
    color: #fff;
}
#previous-target {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
/*    width: 15%;*/
    width: 25%;
    min-width: 70px;
    z-index: 120;
background: url(#);
cursor: pointer;
display: block;
}
#next-target {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
/*    width: 15%;*/
    width: 25%;
    min-width: 70px;
    z-index: 120;
background: url(#);
cursor: pointer;
display: block;
}
#btn-next {
    background: transparent url('../img/right-slide-arrow.png') no-repeat center top;
    width: 42px;
    height: 76px;
    margin-right: 10px;
    position: absolute;
    right: 0;
    top: 45%;
    z-index: 200;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    color: #fff;
    display: none;
}
#btn-previous {
    background: transparent url('../img/left-slide-arrow.png') no-repeat center left;
    width: 42px;
    height: 76px;
    margin-left: 10px;
    position: absolute;
    left: 0;
    top: 45%;
    z-index: 200;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    color: #fff;
    display: none;
}
#counter {
display: none;
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    font-family: 'Times New Roman', Times, sans-serif;
    font-size: 16px;
    font-style: italic;
    color: #fff;
    padding: 4px;
    font-weight: bold;
    text-shadow: 1px 1px 5px #333;
}
.textslide {
    width: 100%;
    height: 100%;
    background: #f8f2e0;
    padding: 25px;
}
.textslide-contents {
    border: 15px solid #000;
    padding: 32px 51px;
}
.slide-copy-container {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}
.client-name {
    font-family: Times, serif;
    font-size: 24px;
    line-height: 1em;
    color: #000;
    text-align: right;
    padding-bottom: 6px;
}
.slide-headline {
    font-family: 'Palestina', Arial, Helvetica, sans-serif;
/*    font-size: 80px;*/
/*    line-height: 74px;*/
    font-size: 5em;
    line-height: 0.92em;
    text-transform: uppercase;
    color: #000;
/*    text-rendering: optimizelegibility;*/
    border-top: 5px solid #000;
/*    padding-top: 21px;
    padding-bottom: 24px;*/
    padding-top: 0.3em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #000;
    font-weight: bold;
    display: block;
    width: 100%;
}
.slide-subhed {
    font-family: Times, serif;
    font-size: 38px;
    line-height: 1.1em;
    color: #000;
/*    padding-top: 24px;*/
    padding-top: 0.63em;
    letter-spacing: .03em;
    display: block;
    width: 100%;
}
.slide-figure {
    position: absolute;
/*    bottom: 60px;
    right: 90px;*/
    bottom: 0;
    right: 0;
    font-family: 'Times New Roman', Times, sans-serif;
    font-size: 16px;
    font-style: italic;
    color: #000;
    font-weight: bold;
    display: inline-block;
    text-align: right;
    width: 100%;
}
#main-nav > ul {
    margin: 15px;
    margin-top: 10px;
    padding: 0;
}
#main-nav a {
    text-transform: uppercase;
    text-decoration: none;
    color: #666;
}
#main-nav a:hover {
    color: #FBF6F3;
}
#main-nav > ul > li {
    border-bottom: 1px solid #666;
}
#main-nav > ul > li > a {
    font-size: 20px;
    line-height: 40px;
    display: block;
}
#main-nav > ul > li ul {
    margin: 0;
    padding: 0;
    padding-left: 10px;
    margin-bottom: 5px;
}
#main-nav ul li li a {
    font-size: 15px;
    line-height: 15px;
}
#main-nav ul li li li {
    padding: 3px 0;
    line-height: 1.4em;
}
#main-nav ul li li li a {
    font-size: 13px;
    line-height: 15px;
    display: block;
}

.main-content {
    margin: 0; 
    margin-left: 150px; 
    width: 800px; 
    height: auto; 
    min-height: 100%;
    background: #FBF6F3; 
    color: #3C3E47; 
    padding: 25px;
}
.bordered {
    border: 15px solid #3C3E47; 
    padding: 51px; 
    padding-right: 0;
}
.main-content section {
    padding-bottom: 15px;
}
.main-content h1,
.main-content h2 {
    font-family: Palestina; 
    font-size: 60px; 
    line-height: 60px; 
    margin: 0; 
    padding: 19px 0 14px 0; 
    text-transform: uppercase; 
    border-top: 3px solid #3C3E47; 
    border-bottom: 1px solid #3C3E47; 
    margin-right: 51px;
}
.content-body {
    font-family: 'Times New Roman', Times,  serif; 
    font-size: 24px; 
    line-height: 26px; 
    letter-spacing: 0.03em;
}
ul.client-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
ul.client-list li {
    position: relative;
    margin-right: 16px;
    margin-bottom: 16px;
    float: left;
}
.team-thumbs {
    float:left;
    width: 212px;
    padding-right: 16px;
    font-size: 15px;
    line-height: 1.1em;
    padding-bottom: 30px;
}
.job-title {
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.2em;
}
.job-title a {
    color: #3C3E47;
    text-decoration: none;
}
.job-title a:hover {
    text-decoration: underline;
}
a.read-bio {
    color: #3C3E47; 
    text-decoration: none; 
    font-size: 13px;
}
a.read-bio:hover {
    text-decoration: underline;
}
.team-bio-container {
    clear: both;
    font-size: 15px;
    line-height: 1.2em;
}
.team-bio-container p {
    margin-top: 10px;
}
.team-bio-left {
    float: left;
    width: 212px;
    padding-right: 30px;
    padding-top: 10px;
}
.team-bio-right {
    float: left;
    width: 470px;
    padding-top: 0;
}
.team-links {
    margin-top: 20px;
}
.team-links a {
    color: #3C3E47;
}
.last {
    margin-right: 0;
}
ul.client-list a {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
}
ul.client-list a img {
    visibility: hidden;
}
ul.client-list a:hover img {
    visibility: visible;
}
.bordered p {
    margin-right: 51px;
}
.bordered ul {
    font-size: 18px;
    line-height: 22px;
}
.bordered hr {
    margin-right: 51px;
    border-color: #3C3E47;
}
#work section {
    padding-bottom: 35px;
}

#main-nav ul > li > ul {
    display: none;
}
#agency #nav-agency > a,
#work #nav-work > a,
#contact #nav-contact > a,
#case-study #nav-work > a {
    color: #fff;
}
#agency #nav-agency > ul,
#work #nav-work > ul,
#case-study #nav-work > ul,
#case-study #nav-all-studies > ul, 
#work #nav-all-studies > ul {
    display: block;
}
.patron #nav-patron a, 
.aol #nav-aol a, 
.retailnext #nav-retailnext a,
.post-ranch-inn #nav-post-ranch-inn a,
.horizon #nav-horizon a,
.threadsuite #nav-threadsuite a,
.apple #nav-apple a,
.bbc #nav-bbc a,
.hotel-oceana #nav-hotel-oceana a,
.national-music-day #nav-national-music-day a,
.aha-radio #nav-aha-radio a,
.nespresso #nav-nespresso a,
.aiga #nav-aiga a,
#main-nav .selected > a
{
    color: #fff;
}

#contact .content-body a {
    color: #3C3E47;
    text-decoration: none;
}
#contact .content-body a:hover {
    text-decoration: underline;
}
#pager-container {
    position: absolute; 
    bottom: 0px; 
    margin: 65px auto; 
    right:0;
    left: 150px; 
    display: block; 
    z-index: 150;
}
ul#pager {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}
#pager li {
    float: left;
    width: 16px;
    height: 12px;
/*    background: url('/assets/img/pager-inactive.png') center center no-repeat;*/
}
#pager li a {
    display: block;
    width: 16px;
    height: 12px;
    outline: none;
    font-family: 'Times New Roman', Times, sans-serif;
    font-size: 16px;
    font-style: italic;
    font-weight: bold;
    text-decoration: none;
}
#pager li.active a {
    text-decoration: underline;
}
/*#pager li a span {
    visibility: hidden;
}
*/

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

/*
 * 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.
   Theses 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 only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for high resolution devices */
}

@media screen and (max-width: 768px) {
    .textslide {
        padding: 18px;
    }
    .textslide-contents {
        border-width: 15px;
        padding: 47px;
    }
    #pager-container {
        margin: 51px auto;
    }
}
@media screen and (max-width: 480px) {
    .textslide {
        padding: 11px;
    }
    .textslide-contents {
        border-width: 9px;
        padding: 30px;
    }
    #pager-container {
        margin: 31px auto;
    }
}
@media screen and ( max-width: 320px ) {
    .textslide {
        padding: 8px;
    }
    .textslide-contents {
        border-width: 5px;
        padding: 18px;
    }
    #pager-container {
        margin: 21px auto;
    }
}

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