/*! 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;
    margin: 0 auto;
    width: 100%;
}

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

/* ---- FEATURE HEADER ----*/

#work-feature-bg {
    background: #333 url('../img/news-bg-header.jpg');
    min-height: 500px;
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    top: 0;
    color: white;
    padding-bottom: 20px;
}

#work-post-it {
    max-width: 100px;
    position: relative;
    left: 0px;
    top: 450px;
    z-index: 99;
}

/* ---- WORK TILES ----*/

#program-tiles {
    padding: 75px 0 0 0;
}

.landing-img-tile {
    width: 100%;
    margin-bottom: -2px;
}

.yellow-tile {
    background: #ffc22c url('../img/work-bg-food.png');
    background-position: left;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    z-index: 98;
}

#work-col-1 {
    margin-top: -20px;
}

#work-col-2 {
    display: none;
}

#tile-feature-arrow {
    position: relative;
    margin-top: -60px;
    right: 9%;
    width: 25px;
    float: right;
    z-index: 99;
}

.agave-pattern {
    background: #00a9aa url('../img/work-bg-programs.png');
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    z-index: 98;
}

.strawberry-pattern {
    background: #c51f3f url('../img/work-bg-events.png');
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    z-index: 98;
}

.orange-pattern {
    background: #f15b40 url('../img/work-bg-education.png');
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    z-index: 98;
}

.plum-pattern {
    background: #561a45 url('../img/work-bg-policy.png');
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    z-index: 98;
}


.tile-img-arrow {
    position: relative;
    margin-top: -80px;
    right: 9%;
    width: 25px;
    float: right;
    z-index: 99;
}

/* ---- WHERE WE WORK ----*/

#where-we-work {
    text-align: center;
    width: 100%;
    margin-top: -50px;
}

#work-labels-block {
    position: relative;
    display: block;
    bottom: 1px;
    margin-bottom: -20%;
}

#work-labels-text {
    padding-bottom: 60px;
}

#county-map-img {
    width: 65%;
    max-width: 930px;
    z-index: 99;
    padding-left: 2%;
    margin-bottom: 10%;
}

#work-img-waves {
    z-index: 98;
    width: 100%;
    bottom: 0px;
}

#hartford-label {
    position: absolute;
    float: left;
    width: 50%;
    left: 8%;
    color: black;
    font-weight: bold;
    text-align: center;
    line-height: 1em;
}

#tolland-label {
    position: absolute;
    float: right;
    width: 50%;
    right: 5%;
    color: black;
    font-weight: bold;
    text-align: center;
    line-height: 1em;
}

#find-programs {
    padding: 5% 9% 5% 9%;
    color: white;
    text-align: center;
    margin-top: -18%;
}

#find-programs p {
    color: white;
}

#find-programs h5, #find-programs a {
    color: #9999cc;
    font-weight: lighter;
    text-transform: none;
}

/* ---- HOW YOU CAN HELP ----*/

#work-help {
    background-color: #ebebeb;
    padding: 20px 0 50px 0;
}


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

/* ==========================================================================
   TABLET/MOBILE STYLES (WIDTH OVER 560PX)
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */


    /* ---- FEATURE HEADER ----*/

    #work-feature-bg {
        min-height: 450px;
    }

    #work-post-it {
        max-width: 125px;
        top: 380px;
    }

    #county-map-img {
        margin-bottom: 8%;
    }

}


/* ==========================================================================
   LAPTOP STYLES (WIDTH OVER 650PX)
   ========================================================================== */

@media only screen and (min-width: 41em) {
    /* Style adjustments for viewports that meet the condition */


    /* ---- FEATURE HEADER ----*/

    #work-feature-bg {
        min-height: 360px;
    }

    #work-post-it {
        width: 125px;
        top: 290px;
    }

    /* ---- PROGRAM TILES ----*/


    #work-col-1 {
        width: 55%;
        float: left;
    }

    #work-col-2 {
        width: 35%;
        float: right;
        display: block;
        text-align: center;
        padding: 35px 15px 0 0;
    }

    #work-col-2 h5 {
        width: 100%;
    }


    #tile-feature-arrow {
        margin-top: -60px;
        right: 7%;
    }

    .tile-img-arrow {
        margin-top: -80px;
        right: 14%;
    }

/* ---- WHERE WE WORK ----*/

    #work-labels-text {
        padding-bottom: 0px;
    }

    #hartford-label {
        width: 14%;
        right: 36%;
        font-size: 1.25em;
        margin-top: 11%;
    }

    #tolland-label {
        width: 15%;
        left: 76%;
        font-size: 1.25em;
        margin-top: 11%;
    }

    #find-programs {
        margin-top: -12%;
    }

    #work-labels-block {
        margin-bottom: -25%;
    }

}

/* ==========================================================================
   LAPTOP STYLES (WIDTH OVER 845PX)
   ========================================================================== */

@media only screen and (min-width: 53em) {
    /* Style adjustments for viewports that meet the condition */

    .yellow-tile {
        background-position: right;
    }


}


/* ==========================================================================
   LAPTOP STYLES (WIDTH OVER 1250PX)
   ========================================================================== */

@media only screen and (min-width: 78em) {
    /* Style adjustments for viewports that meet the condition */

    #work-feature-bg {
        min-height: 350px;
    }

    #work-post-it {
        max-width: 145px;
        top: 120px;
    }

    #program-tiles {
        margin: 0;
    }

    #work-col-1 {
        margin-top: -50px;
    }

    #work-col-2 {
        width: 28%;
        padding: 20px 15px 0 0;
    }

    #tile-feature-arrow {
        right: 5%;
    }

    .tile-img-arrow {
        right: 11%;
    }

    /* ---- WHERE WE WORK ----*/

    #hartford-label {
        width: 20%;
        right: 30%;
    }

    #tolland-label {
        width: 12%;
        left: 75%;
    }

    #find-programs {
        padding: 5% 15% 5% 15%;
    }


}

/* ==========================================================================
   DESKTOP STYLES (WIDTH OVER 1520PX)
   ========================================================================== */

@media only screen and (min-width: 95em) {
    /* Style adjustments for viewports that meet the condition */

    #work-labels-text {
        width: 930px;
        display: inline-block;
        position: absolute;
        margin: 0 15% 0 15%;
    }

    #hartford-label {
        width: 48%;
        left: -200px;
        margin-top: 175px;
        text-align: center;
    }

    #tolland-label {
        width: 48%;
        left: 720px;
        margin-top: 175px;
        text-align: center;
    }

    #find-programs {
        margin-top: -10%;
    }

    #county-map-img {
        margin: 0 15% 14% 15%;
    }

    #work-labels-block {
        margin-bottom: -30%;
    }


@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;
    }
}
