/**
    TWEAKS/OVERRIDES FOR FOUNDATION/THEME STYLES
 */
html body .row {
    padding: 0;
}

.top-bar-right {
    left: 0;
    padding-right: 10px;
}

.row {
    max-width: 1440px !important;
    border: unset !important;
    padding: 0;
}

div.off-canvas-wrapper {
    border: unset;
}

.limited-width {
    max-width: 1440px !important;
}

div.universal-search-bar {
    display: none;
}

h2 {
    font-weight: unset;
}

/**
    menu bar fixes
 */
li.gift-card-menu > a {
    white-space: nowrap;
}

div.site-branding > a > img {
    height: 50px;
    width: 73px;
    /*max-width:unset;*/
}

/**
    Main Styles

    Panels - full width containers
    Blocks - inner containers
    Cards  - inner containers with a border

 */

div.title {
    font-size: 2rem;
    font-family: "Roboto Slab", serif;
    font-weight: bold;
    line-height: 1.15;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #f8993a;
    position: relative;
    top: -65px;
    width: 80%;
    padding: 42px 20px;
    margin: 0 auto -65px;
    background-color: rgba(39, 46, 94, 0.97);
    text-align: center;
}

div.section.header {
    width: 100%;
    text-align: left;
    padding: 0;
}

div.panel {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    padding: 0 100px;
}

/** Some panel customizers/helpers **/
div.panel.padding-top {
    padding-top: 40px;
}

div.panel.padding-bottom {
    padding-bottom: 40px;
}

div.panel.margin-top {
    padding-top: 40px;
}

div.panel.margin-bottom {
    padding-bottom: 40px;
}

div.panel.padding-top-and-bottom {
    padding-top: 40px;
    padding-bottom: 40px;
}

div.panel.shaded {
    background-color: #eeeef3;
}

div.panel.blue {
    color: whitesmoke;
    background-color: #272e5e;
}

div.header.blue {
    color: whitesmoke;
    background-color: #4d5590;
}

/******
 *
 * Links and Buttons (within panels)
 *
 ******/
div.panel a:not(.button) { /* links */
    text-decoration: underline;
    color: #c5258f;
}

div.panel a:not(.button):hover,
div.panel a:not(.button):focus { /* links */
    background-color: #c5258f;
    text-decoration: unset;
    color: white;
}

a.button {
    border-radius: 0;
    font-weight: bold;
}

a.button:hover,
a.button:focus {
    background-color: white;
    color: #c5258f;
    border: solid 1px #c5258f;
    font-weight: bold;
}

div.blue a {
    border: 1px solid white;
}

/****** FIXES - hopefully remove these through better standards ******/

li.tag-label-link:hover a:hover { /*fix for tags on cards*/
    background-color: unset;
}

span.listing-parent-category.label a:hover { /*fix for categories on cards*/
    background-color: unset;
    font-weight: bold;
}

/******
 *
 * Section Layouts
 *
 ******/
div#intro {
    width: 80%;
    text-align: center;
    margin: auto;
}

/** Panel Grid of things **/

div.panel-grid {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

/** Panel Grid Footer **/
div.panel div.grid-footer-container {
    display: flex;
}


/** Template Part: panel-twocard **/
div.card {
    width: 500px;
    max-width: 500px;
    padding-bottom: 20px;
    border-radius: 3px;
    border: 3px #eeeef3 solid;
    position: relative;
}

div.card > div.b {
    padding: 20px 20px 40px;
}

div.card > div.b > div.d {
    padding-bottom: 20px;
}

div.card > div.b > div.l {
    position: absolute;
    bottom: 20px;
}

.card:nth-child(1):nth-last-child(2),
.card:nth-child(2):nth-last-child(1) {
    width: 50%;
}

.card:nth-child(1):nth-last-child(3),
.card:nth-child(2):nth-last-child(2),
.card:nth-child(3):nth-last-child(1) {
    width: 30%;
}

.card:nth-child(1):nth-last-child(4),
.card:nth-child(2):nth-last-child(3),
.card:nth-child(3):nth-last-child(2),
.card:nth-child(4):nth-last-child(1) {
    width: 25%;
}


/** Template: panel-rows-left-right **/
div.panel.rows-left-right > div {
    width: 50%;
    padding: 50px;
}

/** Template: panel-row-images **/
div.row-images {
    flex-flow: nowrap;
}


/** MOBILE STUFF **/

.mobile-only {
    display: none;
}

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

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: unset;
    }

    div.title {
        width: 100%;
        position: unset;
        padding: 10px 5px;
        margin: 0 auto 20px;
    }

    div.panel {
        padding: 0;
    }

    div.panel > div {
        width: unset;
    }

    div.panel > h2 {
        text-align: center;
    }

    div.row { /* is this needed?*/
        text-align: center;
    }

    /** Panel Grid Footer **/
    div.panel div.grid-footer-container {
        display: unset;
    }

    /** Template Part: panel-twocard **/
    div.card {
        margin: 10px;
        padding: 10px;
    }

    .card:nth-child(1):nth-last-child(2),
    .card:nth-child(2):nth-last-child(1),
    .card:nth-child(1):nth-last-child(3),
    .card:nth-child(2):nth-last-child(2),
    .card:nth-child(3):nth-last-child(1),
    .card:nth-child(1):nth-last-child(4),
    .card:nth-child(2):nth-last-child(3),
    .card:nth-child(3):nth-last-child(2),
    .card:nth-child(4):nth-last-child(1) {
        width: unset;
    }


    /** Template: panel-rows-left-right **/
    div.panel.rows-left-right > div {
        width: 100%;
        padding: 10px;
        margin: 10px;
    }

    /** Template: panel-row-images **/
    div.row-images {
        flex-flow: row wrap;
    }
}


/** Font Sizing **/

h1 {
    font-size: 2.125rem;
}

h2 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.625rem;
    margin-bottom: 0.6rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 480px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 992px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 16px;
    }
}
