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














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

body {
    /*background-color: #e9c28b;
    background-image: linear-gradient(90deg, rgba(255,255,255,.07) 50%, transparent 50%),
    linear-gradient(90deg, rgba(255,255,255,.13) 50%, transparent 50%),
    linear-gradient(90deg, transparent 50%, rgba(255,255,255,.17) 50%),
    linear-gradient(90deg, transparent 50%, rgba(255,255,255,.19) 50%);
    background-size: 13px, 29px, 37px, 53px;
    background-attachment: scroll;*/
    background-color: white;
    /*font-family: 'Vollkorn', serif;*/
    font-family: 'Source Sans Pro', sans-serif;
    height: 100%;
}

/* Search */

.info-container {
    background-color: #EEE;
    border-bottom: 1px solid #DDD;
    height: 46px;
    text-align: right;
}

.info-container span {
    font-size: 16px;
    line-height: 46px;
    color: #aaa;
    padding-left: 6px;
}

.info-container span:nth-child(odd) {
    padding-left: 16px;
    line-height: 50px;
}



.info-container a{
    color: #aaa;
    padding: 0;
    margin: 0;
}



/* Logo */
.logo-container {
    padding: 25px;
    height: 120px;
    align-items: center;
}

.masthead {
    height: 120px;
}

.logo {
    width: 100px;
}

.nav-bar {
    list-style-type: none;
    margin: 0 25px;
    padding: auto 16px;
    overflow: hidden;
    font-weight: 300;
    font-style: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-bar > li {
    float: right;
    padding: 50px 0;
}

.nav-bar > li > a {
    line-height: 20px;
    color: black;
    text-align: center;
    font-size: 16px;
    margin: 0 16px;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease-out 0s;
}

.nav-bar > li:hover > a {
    color: #8BC34A;
}

.dropdown-item {
    display: inline-block;
}

.dropdown-content{
    min-width: 160px; /* Set width of the dropdown */
    background: #EEE;
    visibility:hidden;
    position: absolute;
    top: 150px;
    opacity: 0;
    z-index: 999;
    transition:opacity 0.2s ease-out, top 0.2s ease-out;
}

.dropdown-item:hover .dropdown-content {
    visibility:visible;
    top: 121px;
    opacity: 1;

}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    opacity: inherit;
    border-bottom: 1px solid #DDD;
    border-left: 1px solid #DDD;
    border-right: 1px solid #DDD;
}

.dropdown-content a:hover {
    background-color: #8BC34A;
    color: white;
}




.nav-bar > li > a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -40px;
    left: 0;
    background-color: #8BC34A;
    opacity: 0;
    transition: all 0.2s ease-out 0s;
}

.nav-bar > li:hover > a:before {
    opacity: 1;
    bottom: -8px;
    color: transparent;
}

@media(max-width: 768px){
    .logo-container {
        text-align: center;
    }
}


.page-wrap {
    min-height: 100%;
    margin-bottom: -250px;
}
.page-wrap:after {
    content: "";
    display: block;
}
.footer-container, .page-wrap:after {
    height: 250px;
}
.footer-container {
    background-color: #222;
    border-top: 1px solid black;
    padding-top: 30px;
}

.footer-logo {
    padding: 15px 35px;
    margin: 8px 0;
}

@media screen and (max-width: 768px) {
    .footer-logo {
        display: none;
    }
}

.footer-logo-text {
    margin-top: 8px;
    font-size: 16px;
    color: #888;
}

.footer-credit-text {
    color: #444;
}

.footer-credit-text:hover {
    color: #666;
    text-decoration: none;
}

.footer-header {
    font-size: 28px;
    color: #EEE;
    border-bottom: 2px solid #8BC34A;
    margin: 0 auto;
    width: 128px;
}

.footer-contact {
    margin: 20px auto;
    align-items: center;
    align-content: center;
    display: flex;
    text-align: left;
    font-size: 16px;
    color: #888;
}

.footer-table {
    padding: 0;
    margin: auto;
}

.footer-table th, td {
    padding: 5px;
    text-align: left;
}

.footer-mail {
    color: #EEE;
    text-decoration: none;
}

.footer-mail:hover {
    color: #8BC34A;
    text-decoration: none;
}

/* Main marketing message and sign up button */

.jumbotron-container {
    background-attachment: scroll;
    background-size: cover;
    background-image: url("../img/background5.jpg");
    background-repeat: no-repeat;
    background-position: center;
    border-top: 1px solid #CCC;
}

.jumbotron {
    height: 480px;
    text-align: center;
    background-color: transparent;
}
.jumbotron .btn {
    padding: 14px 24px;
    font-size: 21px;
    background-color: #8BC34A;
    border: none;
    border-radius: 0;
    transition: all 0.2s ease-out 0s;
}

.jumbotron .btn:hover {
    background-color: #AED581;
}

.jumbo-title {
    font-size: 36px;
    /*font-family: Vollkorn serif;*/
}

.jumbo-highlight {
    height: 240px;
    margin: 36px 4px;
    padding-top: 12px;
    background-color: rgba(255, 255, 255, 0.6);
}

.jumbo-highlight > p {
    font-size: 24px;
    margin: 24px;
    font-weight: 100;
}

.special-container {
    max-width: 1024px;
    text-align: center;
    margin-bottom: 10px;
}

.special-item {
    padding: 16px 24px;
    border: 1px solid #DDD;
    margin: 16px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
    transition: all 0.2s ease-out;
}

.special-item:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 4px 4px rgba(0, 0, 0, 0.1);;
}

.special-item h2{
    margin-top: 0;
}

.special-item p{
    font-size: 16px;
}

.popular-item {
    border: 1px solid #DDD;
    margin: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
    transition: all 0.2s ease-out;
    object-fit: scale-down;
    box-shadow: 0 2px 1px 1px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.popular-item:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 4px 4px rgba(0, 0, 0, 0.2);
}

.popular-item h2{
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 20px;
    color: whitesmoke;
    line-height: 50px;
}

.popular-item p{
    text-align: left;
    font-size: 14px;
}


.popular-img {
    margin: 8px auto;
    text-align: center;
    max-height: 150px;
}

.popular-img-container {
    height: 165px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.popular-title {
    margin: 0;
    width: 100%;
    background-color:  #8BC34A;
    height: 50px;
    border-radius: 2px 2px 0 0;
}

.popular-item-body {
    padding: 4px 24px 16px 24px;

}

a{
    color: black;
}
a:hover {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.special-img {
    margin: 0 auto;
    text-align: center;
    max-width: 100px;
}

.special-title {
    font-size: 48px;
    margin: 16px auto 24px auto;
    text-align: center;
}

.special-title:before {
    content: "";
    position: absolute;
    width: 16%;
    height: 4px;
    bottom: -4px;
    left: 42%;
    background-color: #8BC34A;
}

.equal {
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
}

.equal > div[class*='col-'] {
    display: flex;
    flex-direction: column;
}

.mobile-header {
    display: none;
    background-color: white;
    padding: 10px;
    border-top: 1px solid #DDD;
    border-bottom: 1px solid #DDD;
}

.mobile-icon {
    font-size: 28px;
    line-height: 32px;
    color: #8BC34A;
    margin: auto 0;
    vertical-align: middle;
}

.mobile-search-bar {
    text-align: right;
    /*Functionality broken. Will display when fixed*/
    display: none;
    align-items: center;
}

.mobile-search-input {
    text-align: right;
    font-size: 16px;
    line-height: 32px;
    padding: 0;
    height: 40px;
    border: none;

}

.md-hidden {
    display: none !important;
}

.xs-hidden {
    display: block !important;
}

.cf:before, .cf:after{
    content:"";
    display:table;
}

.cf:after{
    clear:both;
}

.cf{
    zoom:1;
}
/* Form wrapper styling */
.form-wrapper {
    width: 450px;
    padding: 15px;
    margin: 25px 35px 10px auto;
    background: #ddd;
    border-radius: 10px;
    box-shadow: 0 1px 1px rgba(0,0,0,.1) inset, 0 1px 0 rgba(255,255,255,.8);
}

/* Form text input */

.form-wrapper input {
    width: 310px;
    height: 40px;
    padding: 10px 10px;
    font-size: 16px;
    float: left;
    border: 0;
    background: #eee;
    border-radius: 3px 0 0 3px;
    transition: all 0.2s ease-out;
}

.form-wrapper input:focus {
    outline: 0;
    background: #fff;
    box-shadow: 0 0 2px rgba(0,0,0,.8) inset;
}


/* Form submit button */
.form-wrapper button {
    overflow: visible;
    position: relative;
    float: right;
    border: 0;
    padding: 0;
    cursor: pointer;
    height: 40px;
    width: 110px;
    color: #fff;
    text-transform: uppercase;
    background: #8BC34A;
    border-radius: 0 3px 3px 0;
    text-shadow: 0 -1px 0 rgba(0, 0 ,0, .3);
    transition: all 0.2s ease-out;
}

.form-wrapper button:hover{
    background: #AED581;
}

.form-wrapper button:active,
.form-wrapper button:focus{
    background: #AED581;
    outline: 0;
}

.form-wrapper button:before { /* left arrow */
    content: '';
    position: absolute;
    border-width: 8px 8px 8px 0;
    border-style: solid solid solid none;
    border-color: transparent #8BC34A transparent;
    top: 12px;
    left: -6px;
    transition: all 0.2s ease-out;
}

.form-wrapper button:hover:before{
    border-right-color: #AED581;
}

.form-wrapper button:focus:before,
.form-wrapper button:active:before{
    border-right-color: #AED581;
}

.form-wrapper button::-moz-focus-inner { /* remove extra button spacing for Mozilla Firefox */
    border: 0;
    padding: 0;
}

.quick-links {
    display: block;
}

.quick-links h2 {
    font-size: 18px;
    color: #aaa;
    text-align: center;
    margin: 0;
    text-decoration: none;
    transition: all 0.2s ease-out;
}

.quick-link:hover h2 {
    color: #8BC34A;
}

.quick-link {
    margin: 8px 4px 0 4px;
    padding: 4px;
    background-color: #333;
    border: 4px #282828 solid;
    transition: all 0.2s ease-out;
}

.quick-link:hover{
    background-color: #383838;
    border-bottom-color: #333;
}

.quick-links .col-xs-4 {
    padding: 4px;
}

@media screen and (max-width: 992px) {

    .popular-item{
        margin-top: 32px;
        margin-left: 32px;
        margin-right: 32px;
    }

    .md-hidden {
        display: block !important;
    }

    .xs-hidden {
        display: none !important;
    }

    .info-container{
        display: none;
    }

    .mobile-header{
        display: block;
        position: fixed;
        z-index: 999;
    }

    .nav-bar {
        list-style-type: none;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .nav-bar > li {
        width: 100%;
        display: block;
        float: left;
        padding: 15px;
        background-color: white;
        border-bottom: 1px solid #DDD;
    }

    .nav-bar > li > a {
        line-height: 20px;
        color: black;
        text-align: center;
        font-size: 16px;
        margin: 0;
        text-decoration: none;
        position: relative;
        transition: all 0.2s ease-out 0s;
    }

    .nav-bar > li:hover > a {
        color: #8BC34A;
    }

    .nav-bar > li > a:before {
        display: none;
    }

    .nav-bar > li:hover > a:before {
        display: none;
    }

    .nav-bar-container {
        padding: 0;
        display: none;
        position: fixed;
        top: 54px;
        z-index: 999;
    }

    .dropdown-content {
        display: none;
    }

    .logo-container {
        margin-top: 54px;
        height: 174px;
        align-content: center;
    }

    .img-logo {
        margin: 0 auto;
    }

    .masthead{
        height: 200px;
    }

}




/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    /* Remove the padding we set earlier */
    .masthead,
    .marketing,
    .footer {
        padding-right: 0;
        padding-left: 0;
    }
}
