/*
 * 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;
    font-family: 'Ubuntu', sans-serif;
}

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

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

















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

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


/*MagicStore specific styles*/

a:hover {
    cursor: pointer;
}

body {
    font-size: 62.5%;
}

ul {
    margin: 0;
    padding: 0;
}

.headerContainer {
    background-color: #ffffff;
    border-bottom: 1px solid #e8d8c4;
}

header {
    width: 960px;
    margin-right: auto;
    margin-left: auto;
    padding: 10px;
    overflow: hidden;
}

.headerContainer h1 {
    margin: 0;
    padding: 0;
    float: left;
    font-family: 'Vollkorn', serif;
    font-style: italic;
    font-size: 3em;
    font-weight: 700;
    color: #885c25;
}

.headerContainer strong {
    text-transform: uppercase;
    color: #666;
}

.headerContainer .caption {
    float: right;
}

.headerContainer h3 {
    font-family: 'Vollkorn', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.7em;
    color: #666;
    text-align: right;
    padding: 0;
    margin: 0;
}

.mainMenu {
    float: right;
    overflow:  hidden;
}

.mainMenu li {
    list-style: none;
    float: left;
}

.mainMenu a {
    text-decoration: none;
    text-transform: uppercase;
    color: #885c25;
    font-size: 1.5em;
    width: 95px;
    margin-right: 20px;
}

.mainWrapper {
    background: url("../img/bg.png") repeat;
    overflow: hidden;
    padding-bottom: 15px;
}

.mainContainer {
    width: 960px;
    margin-right: auto;
    margin-left: auto;
}

.productSearch {
    border-radius: 3px;
    box-shadow: 0 1px 2px #aaa;
    float: right;
    border-style: none;
    height: 22px;
    width: 200px;
    padding-left: 25px;
    background: #ffffff url("../img/icon-prodsearch.png") no-repeat 8px center;
    font-size: 1.2em;
}

.catalogWrapper {
    background-color: #eeeeee;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.catalogContainer {
    width: 960px;
    margin-right: auto;
    margin-left: auto;
    background-color: #ffffff;
    overflow: hidden;
}

.catalogFilter {
    width: 200px;
    float: left;
}

.catalogFilter .filterHeader {
    border-bottom: 1px solid #ddd;
    margin-top: 15px;
    margin-left: 5px;
    margin-bottom: 15px;
    padding: 5px 0 5px 5px;
}

.filterHeader p {
    font-weight: 700;
    font-size: 1.1em;
    color: #000000;
    float: left;
    margin-top: 5px;
}

.filterHeader .reset {
    display: inline-block;
    padding: 3px 10px;
    background-color: #666;
    border-color: #666;
    border-radius: 3px;
    color: #ffffff;
    font-size: 1.2em;
    text-decoration: none;
    float: right;
    display: block;
}

.filterHeader .reset:hover {
    text-decoration: underline;
    background-color: #444;
}

.contactInfo {
    margin-top: 50px;
    margin-left: 20px;
    font-family: 'Ubuntu', sans-serif;
}

.contactInfo h3 {
    font-size: 1.8em;
}

.contactInfo p {
    margin: 0;
    font-size: 1.3em;
    font-weight: bold;
}

.contactInfo a {
    font-weight: normal;
}

.rangeFilter {
    margin-top: 10px;
    margin-left: 15px;
}

.rangeFilter span {
    color: #666;
}

.rangeFilter .min {
    float: left;
}

.rangeFilter .max {
    float: right;
}

.rangeFilter .noUiSlider {
    margin-top: 7px;
}

.rangeFilter div.active {
    background-color: #666;
}

.rangeFilter .noUiSlider.horizontal {
    width: 190px;
}

.rangeFilter .noUiSlider.horizontal div {
    margin: -6px 0 0 -10px;
}

.rangeFilter .noUiSlider div {
    height: 20px;
    width: 20px;
}

.catalogFilter li {
    margin-bottom: 7px;
}

.catalogFilter .categoryLink {
    display: block;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    padding-left: 20px;
    margin-top: 5px;
    margin-left: 15px;
    color: #000000;
    font-family: 'Ubuntu', sans-serif;
    background: url("../img/checkbox.png") no-repeat 0 0px;
}

.catalogFilter .categoryLink:hover {
    text-decoration: underline;
}

.catalogFilter .categoryLink.selected {
    color: #a46516;
    font-weight: 600;
    background-position: 0 100%;
}

.catalog {
    width: 700px;
    float: right;
    border-left: 1px solid #dddddd;
    padding: 0 15px;
    margin: 10px 0;
    min-height: 720px;
}

.catalogList li {
    list-style: none;
    display: inline-block;
    vertical-align: top;
    margin: 10px 15px;
    width: 200px;
    height: 280px;
    border: 1px solid #ffffff;
}

.catalog .imgContainer {
    position: relative;
    width: 200px;
    height: 200px;
}

.catalog .categoriesSelected {
    font-family: 'Ubuntu', sans-serif;
    font-size: 2.2em;
    padding: 10px;
}

.catalog .announcements {
    font-family: 'Ubuntu', serif;
    font-size: 2.2em;
    font-style: italic;
    margin-bottom: 15px;
    text-align: center;
}

.announcements p {
    margin-bottom: 0;
    margin-top: 0;
}

.numberOfProducts {
    margin-left: 20px;
    color: #666;
}

.catalogList li:hover {
    border: 1px solid #aaaaaa;
}

.catalogList a {
    text-decoration: none;
    display: block;
    height: 100%;
    width: 100%;
}

.catalogList img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    overflow: auto;
}

.catalogList .itemInfo {
    margin-top: 10px;
    margin-left: 20px;
    font-family: 'Ubuntu', sans-serif;
}

.catalogList .itemTitle {
    font-weight: bold;
    font-size: 1.5em;
    color: #333;
}

.catalogList .itemPrice {
    margin-top: 5px;
    font-size: 2em;
    font-weight: bold;
    color: #a46516;
}

.messageContainer {
    background-color: #f6f3e3;
}

.messages {
    width: 960px;
    margin-right: auto;
    margin-left: auto;
}

.messages section {
    display: inline-block;
    vertical-align: top;
    width: 300px;
    margin: 8px;
}

.messages p {
    line-height: 1.5em;
}

.messages p.authorName {
    text-align: right;
    font-style: italic;
}

.messages h2 {
    color: #a46516;
}

.footerContainer {
    background-color: #ffffff;
    border-top: 1px solid #e8d8c4;
}

.footerContainer footer {
    width: 960px;
    margin-right: auto;
    margin-left: auto;
}

footer ul {
    margin-top: 15px;
    margin-left: 10px;
    list-style: none;
}

.footerMenu li {
    display: inline-block;
    border-right: 1px solid #eeeeee;
    padding-left: 5px;
    padding-right: 10px;
}

.footerMenu a {
    text-decoration: none;
    font-size: 1.2em;
    color: #494949;
    padding-right: 20px;
    background: url("../img/divider.png") no-repeat right center;
}

.footerMenu a:hover {
    color: #a46516;
    text-decoration: underline;
}

.footerContainer .legal {
    margin-left: 15px;
    color: #aaa;
    font-size: 1.2em;
}

.legal a {
    color: #494949;
    text-decoration: none;
}

.animate-enter,
.animate-leave {
    -webkit-transition: 400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
    -moz-transition: 400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
    -ms-transition: 400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
    -o-transition: 400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
    transition: 400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
    position: relative;
    display: block;
}

.animate-leave.animate-leave-active,
.animate-enter {
    -webkit-transform: scaleY(0) scaleX(0);
    -moz-transform: scaleY(0) scaleX(0);
    -ms-transform: scaleY(0) scaleX(0);
    -o-transform: scaleY(0) scaleX(0);
    transform: scaleY(0) scaleX(0);
    height: 0px;
    opacity: 0;
}

.animate-enter.animate-enter-active,
.animate-leave {
    -webkit-transform: scaleY(1) scaleX(1);
    -moz-transform: scaleY(1) scaleX(1);
    -ms-transform: scaleY(1) scaleX(1);
    -o-transform: scaleY(1) scaleX(1);
    transform: scaleY(1) scaleX(1);
    height: 280px;
    opacity: 1;
}

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