/*! HTML5 Boilerplate v6.1.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
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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;
}

/* ==========================================================================
   Font definitions
   ========================================================================== */



/* ==========================================================================
   Menu items
   ========================================================================== */

#ribbon-top, #ribbon-bottom {
    clear: both;
    float: left;
    width: 100%;
    background-color: #1F72BE;
    line-height: 24px;
}
#ribbon-top a, #ribbon-bottom a {
    display: block;
    color: #FFFFFF;
    background-color: #1F72BE;
    padding-left: 24px;
    margin-right: 3em;
    text-decoration: none;
    font-size: .8em;
    background-size: 24px 24px;
    background-repeat: no-repeat;
}
#ribbon-top a {
    float: left;
}
#ribbon-bottom a {
    float: right;
}
#ribbon-top a:hover, #ribbon-bottom a:hover {
    color: yellow;
}
a.facebook {
    background-image: url(icon_facebook.png);
}
a.twitter {
    background-image: url(icon_twitter.png);
}
a.phone {
    background-image: url(icon_phone.png);
}
a.email {
    background-image: url(icon_email.png);
}


/* Header styles */
header {
    clear:both;
    float:left;
    width:100%;
    background-color: #FFFFFF;
    display: inline;
}
header p,
header h1,
header h2 {
    padding:.4em 15px 0 15px;
    margin:0;
}
header ul {
    clear:left;
    float:left;
    width:100%;
    list-style:none;
    margin:10px 0 0 0;
    padding:0;
}
header ul li {
    display:inline;
    list-style:none;
    margin:0;
    padding:0;
}
header ul li a {
    display:block;
    float:left;
    margin:0 0 0 1px;
    padding:3px 10px;
    text-align:center;
    background:#eee;
    color:#000;
    text-decoration:none;
    position:relative;
    left:15px;
    line-height:1.3em;
}
header ul li a:hover {
    background:#369;
    color:#fff;
}
header ul li a.active,
header ul li a.active:hover {
    color:#fff;
    background:#000;
    font-weight:bold;
}
header ul li a span {
    display:block;
}

/* Footer styles */
footer {
    clear:both;
    float:left;
    width:100%;
    background-color: #1F72BE;
}
footer h1 {
    font-size: 2em;
    font-weight: normal;
    padding: 1em 3em;
    color: #ffffff;
    text-align: center;
}
footer p {
    padding:10px;
    margin:0;
    color: #ffffff;
    text-align: center;
}


#navigation {
    line-height: 100px;
}
#navigation a {
    display: block;
    float: right;
    color: #333333;
    margin-right: 2em;
    text-decoration: none;
    font-size: 1em;
}
#navigation a:hover {
    color: #8A8F91;
}

/* ==========================================================================
   Shopping Cart styles
   ========================================================================== */
#minicart {
    background: -webkit-linear-gradient(bottom, #CCCCCC, #EEEEEE 175px);
    background: -moz-linear-gradient(bottom, #CCCCCC, #EEEEEE 175px);
    background: linear-gradient(bottom, #CCCCCC, #EEEEEE 175px);
    margin: 1em auto;
    position: relative;
    width: 90%;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #999;
    border: inset 1px solid #333;
    -webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
}
#minicart table {
    width: 100%;
    background-color: #C6D5EA;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #999;
    border: inset 1px solid #333;
    -webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    margin: .2em .5%;
    padding: 0 2%;
}
#minicart table tr.productrowvisible {
    display: table-row;
}
#minicart table tr.productrowhidden {
    display: none;
}
#minicart table th {
    padding: .3em;
    background-color: #C6D5EA;
    color: #000000;
    font-weight: bold;
}
#minicart table td {
    padding: .3em;
    font-size: .8em;
}
#minicart h1 {
    text-align: center;
    font-size: 1em;
    font-weight: bold;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

#banner {
    color: #FFFFFF;
    background-color: #1F72BE;
    padding: 1em;
    margin: 1em 0 1em 0;
    text-align: center;
}

h1 {
    font-size: 2em;
    font-weight: bold;
    color: #1F72BE;
}
h2 {
    font-size: 1.7em;
    font-weight: bold;
    color: #1F72BE;
}
h2.banner {
    color: #FFFFFF;
}
h3 {
    font-size: 1.2em;
    font-weight: normal;
    color: #1F72BE;
}
h4 {
    font-size: 1.1em;
    font-weight: normal;
    color: #1F72BE;
}
h5 {
    font-size: 1em;
    font-weight: normal;
    color: #1F72BE;
}

.centered {
    margin: 0 auto;
    width: 100%;
    text-align: center;
}
.rightjustified {
    text-align: right;
}
.leftjustified {
    text-align: left;
}
a.button, input[type=submit], input[type=button] {
    text-decoration:none;
    color:#333;
    font-family:Arial, sans-serif;
    font-size:1em;
    font-weight:normal;
    padding:3px .5em;
    border:1px solid #aaa;
    border-radius:3px;
    background: #FFFFFF;
    background: -webkit-linear-gradient(#FFFFFF, #C4C4C4);
    background: -moz-linear-gradient(#FFFFFF, #C4C4C4);
    background: linear-gradient(#FFFFFF, #C4C4C4);
    cursor:default;
}
a.button:hover, input[type=submit]:hover, input[type=button]:hover {
    background-color:#f2f2f2;
    border-color:#888;
    box-shadow:0 0 2px #ccc;
}
a.button:active {
    vertical-align:-1px;
}

.error {
    color: red;
    font-weight: bold;
    padding: 2px 8px;
}
.info {
    color: blue;
    font-weight: bold;
    padding: 2px 8px;
}


/* ==========================================================================
   Stripe
   ==========================================================================*/
.StripeElement {
    background-color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px 0 #fff;
    -webkit-transition: box-shadow 150ms ease;
    transition: box-shadow 150ms ease;
}
.StripeElement--focus {
    box-shadow: 0 1px 3px 0 #fff;
}
.StripeElement--invalid {
    border-color: #fa755a;
}
.StripeElement--webkit-autofill {
    background-color: #fff !important;
}

/* ==========================================================================
   List table
   ========================================================================== */

table.list {
    width: 100%;

}
table.list tr:nth-child(even){
    background-color: #DFDFDE;
}
table.list th {
    background-color: #154D81;
    color: #FFFFFF;
    font-weight: bold;
    text-align: left;
}

/* ==========================================================================
   Product edit form
   ========================================================================== */

form.edit {
    background: -webkit-linear-gradient(bottom, #CCCCCC, #EEEEEE 175px);
    background: -moz-linear-gradient(bottom, #CCCCCC, #EEEEEE 175px);
    background: linear-gradient(bottom, #CCCCCC, #EEEEEE 175px);
    margin: auto;
    position: relative;
    width: 50em;
    height: 100%;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 14px;
    font-style: italic;
    line-height: 24px;
    font-weight: bold;
    color: #000000;
    text-decoration: none;
    border-radius: 10px;
    padding: 2em 2em 5em 2em;
    border: 1px solid #999;
    border: inset 1px solid #333;
    -webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
}
form.edit input {
    width: 375px;
    display: block;
    border: 1px solid #999;
    height: 1.8em;
    -webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
}
form.edit label {
    display: inline-block;
    cursor: pointer;  /*hand view when on hover*/
    line-height: 2.5;
    font-size: 1em;
}
form.edit textarea#description {
    width: 48em;
    height: 4em;
    display: block;
}
form.edit input[type=submit]#submit {
    position: absolute;
    right: 3em;
    bottom: 20px;
    width: 6em;
}
form.edit input[type=submit]#cancel {
    position: absolute;
    right: 10em;
    bottom: 20px;
    width: 6em;
}

form.edit input[type=button]:hover {
    background: #fff;
    color: #09C;
}
form.edit textarea:focus, input:focus {
    border: 1px solid #09C;
}

form.edit label.radioset {
    display: inline-block;
    cursor: pointer;
    position: relative;
    padding-left: 1.2em;
    margin-right: 1em;
    font-size: 1em;
}
form.edit  input[type=radio] {
    display: none;
}
form.edit  label.radioset:before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: .2em;
    margin-bottom: .7em;
    margin-left: .2em;
    position: absolute;
    left: 0;
    bottom: 1px;
    background-color: #aaa;
    box-shadow: inset 0px 2px 3px 0px rgba(0, 0, 0, .3), 0px 1px 0px 0px rgba(255, 255, 255, .8);
    border-radius: 8px;
}
form.edit  input[type=radio]:checked + label.radioset:before {
    content: "\2022";
    color: #f3f3f3;
    font-size: 1em;
    text-align: center;
    line-height: 1em;
}


/* ==========================================================================
   Forms
   ========================================================================== */
input[type=submit], input[type=button] {
    margin-top: 1em;
}
input[type=text] {
    background-color: #ffffff;
    margin: 2px;
    padding: 2px;
}
input:focus {
    background-color: #ffff00;
}
.field_error {
    color: red;
    font-size: .9em;
    font-weight: bold;
    padding: 0;
    margin: 0;
}
label.error {
    display: block;
}



/* ==========================================================================
   Product Window
   ========================================================================== */
#product_container {
    background: -webkit-linear-gradient(bottom, #CCCCCC, #EEEEEE 175px);
    background: -moz-linear-gradient(bottom, #CCCCCC, #EEEEEE 175px);
    background: linear-gradient(bottom, #CCCCCC, #EEEEEE 175px);
    margin: 1em auto;
    position: relative;
    width: 90%;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #999;
    border: inset 1px solid #333;
    -webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
}
#product_container:after{
    clear: both;
    content: "";
    display: block;
}
#product_container div.productwindow {
    float: left;
    background-color: #C6D5EA;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #999;
    border: inset 1px solid #333;
    -webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    margin: .2em .5%;
    padding: 0 2%;
    width: 28%;
}
#product_container div.productwindow h1 {
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    height: 2.5em;
}
#product_container div.productwindow h2 {
    text-align: center;
    font-size: 1em;
}
#product_container div.productwindow img {
    width: 100%;
}
#product_container div.productwindow p {
    text-align: center;
    font-size: .8em;
}



/* ==========================================================================
   Invoice classes
   ========================================================================== */

table.invoice {
    width: 100%;
    font-size: .9em;
}
table.invoice th {
    background-color: blue;
    color: white;
    text-align: center;
}
table.invoice td {
    color: black;
    text-align: center;
}
table.invoice th.left, table.invoice td.left {
    text-align: left;
    padding-left: 3em;
}




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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * 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;
    white-space: inherit;
}

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

/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
    /* Styles */
    body {
        font-size: 12px;
    }
    .gridContainer {

    }
}

/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
    /* Styles */
    body {
        font-size: 12px;
    }
    .gridContainer {

    }
}

/* Smartphones (portrait) ----------- */
@media only screen
and (max-width : 320px) {
    /* Styles */
    body {
        font-size: 12px;
    }
    .gridContainer {

    }
}

/* iPads (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
    /* Styles */
    body {
        font-size: 14px;
    }
    .gridContainer {

    }
}

/* Desktop ----------------------------------*/
@media only screen and (min-width: 1024px) {
    /* Style adjustments for viewports that meet the condition */
    body {
        font-size: 16px;
    }
    .gridContainer {
        max-width: 1232px;
    }
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

@media print {
    .noprint {
        visibility: hidden;
    }
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        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 {
        white-space: pre-wrap !important;
    }
    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;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
