/**
 * Home Page
 */

/**
 * Page Style
 */

section h3,
section h4 {
    margin-bottom: 5px;
    font-family: Courier;
    font-weight: bold !important;
    text-decoration: none !important;
}

section h3 { font-size: 20px; }
section h4 { font-size: 18px; }
section.lined {
    margin: 0px;
    border-top: 1px solid #333;
    padding: 5px 0 5px 0;
}
section.roasters h3,
section.brewers h3,
section.grinders h3,
section.espresso h3,
section.miscellaneous h3,
section.underlined h3 {
    border-bottom: 1px solid rgba(154, 154, 154, 0.5);
    padding-bottom: 1px;
    margin-bottom: 10px;
}

section h3 a,
section h4 a {
    text-decoration: none !important;
}

/**
 * Home Page Sections
 */

/**
 * Hero
 */

.hero {
    margin-top: 25px;
}

.hero, .hero p {
    position: relative;
    font-family: Courier;
    font-size: 16px;
    line-height: 1.25em;
}

.sm-welcome {
    width: 343px;
    position: absolute;
    top: -1px;
    right: 0;
}

.sm-sloppy-border {
    width: 660px;
    height: 348px;
    position: relative;
}

.sm-sloppy-border img {
    position: absolute;
    top: 16px;
    left: 15px;
    width: 630px;
    height: 315px;
    overflow: hidden;
}

/**
 * Bubble Map
 */
 
.sm-bubble-map {
    position: relative;
    height: 100px;
    margin-bottom: 12px;
}

.sm-bubble-map .bubble {
    display: block;
    position: absolute;
    left: 0px; top: 0px;
    width: 200px;
    min-height: 70px;
}
.sm-bubble-map .bubble#tradition-bubble {    left:  28px; top:  0px; width: 202px; }
.sm-bubble-map .bubble#ordering-bubble {     left: 247px; top: 21px; width: 186px; }
.sm-bubble-map .bubble#instructions-bubble { left: 439px; top:  0px; width: 156px; }
.sm-bubble-map .bubble#library-bubble {      left: 618px; top: 21px; width: 228px; }

/**
 * Section: New Arrivals
 */

section.bubbles.trim {
    margin-top: 20px;
    margin-bottom: 0;
}

section.updates {
    margin-top: 0;
}

.updates .two.column {
    width: 485px;
    float: left;
}

.updates .two.column#latest-coffee-arrivals {
    margin-right: 25px;
}

.updates .date {
    display: inline;
    font-weight: 600;
    text-decoration: none;
    color: #333;
}

.updates .coffee-name,
.updates .coffee-names {
    display: inline;
    font-weight: 600;
    color: #333;
}

.updates a.coffee-name:hover,
.updates a.coffee-names:hover {
    color: rgba(26, 156, 180, 0.97);
}

.updates p.description {
    display: inline;
}

.updates ul li,
.updates p.description {
    line-height: 16px;
}

.updates #latest-coffee-arrivals ul li,
.updates #latest-coffee-arrivals p.description {
    line-height: 16px;
}

.updates #latest-library-uploads ul li,
.updates #latest-library-uploads p.description {
    line-height: 18px;
}

#latest-coffee-arrivals ul li {
    margin-bottom: 10px;
}

#latest-library-uploads ul li {
    margin-bottom: 10px;
}

/**
 * Featured Products
 */

.products {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
}

.products .product {
    position: relative;
    float: left;
    display: inline-block;
    margin: 15px 20px 0 0;
    text-align: center;
    overflow: hidden;
}
ul.products li.product:last-child { margin-right: 0; }
.products .product.rofOf4 { width: 238px; }
.products .product.rowOf5   { width: 187px; }
.products .product.rowOf6 { width: 152px; }
.products .product.rowOf7 { width: 127px; }
.products .product.rowOf8 { width: 109px; }

.products .product img {
    margin: 0 0 10px 0;
}

.products .product a {
    text-decoration: none;
}

.products .product .product-name {
    display: block;
    clear: left;
    font-weight: normal;
}

/**
 * Section: Notes
 */

.notes {
    margin-top: 20px;
    margin-bottom: 0;
}

.notes .column {
    border-top: 1px solid rgba(154, 154, 154, 1);
    border-bottom: 1px solid rgba(154, 154, 154, 1);
    padding: 12px 0;
}

/**
 * Section: Thanks
 */

section.thanks {
    margin: 10px 0 0 0;
}

.thanks .column {}

.sm-tiles {
    display: block;
    height: 145px;
    margin: 0;
}

.sm-tiles li {
    position: relative;
    display: block;
    width: 145px;
    height: 145px;
    float: left;
    text-align: center;
    font-size: 22px;
    font-style: italic;
    overflow: hidden;
}
.sm-tiles .sm-tile img {
    width: 100px;
    margin: 5px 24px;
}
.sm-tile {
    display: block;
}
.sm-tile#thank-you { padding-top: 30px; }
.sm-tile#girls-gotta-run { padding-top: 20px; }
.sm-tile#coffee-kids { padding-top: 30px; }
.sm-tile#grounds-for-health { padding-top: 32px; }
.sm-tile#world-coffee-research { padding-top: 28px; }
.sm-tile#doctors-without-borders { padding-top: 40px; }
.sm-tile#specialty-coffee-association { padding-top: 8px; }
.sm-tile#fair-trade { padding-top: 3px; }
.sm-tile#usda-organic { padding-top: 18px; }

/**
 * UI Elements
 */

@-webkit-keyframes rotation {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(359deg);
  }
}

@-moz-keyframes rotation {
  from {
    -moz-transform: rotate(0deg);
  }
  to {
    -moz-transform: rotate(359deg);
  }
}

@-o-keyframes rotation {
  from {
    -o-transform: rotate(0deg);
  }
  to {
    -o-transform: rotate(359deg);
  }
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

.sm-spinner {
    height: 35px;
    width: 35px;
    margin: -22px auto -5px auto;
    position: absolute;
    left:310px;
    top:50%;
    -webkit-animation: rotation .6s infinite linear;
    -moz-animation: rotation .6s infinite linear;
    -o-animation: rotation .6s infinite linear;
    animation: rotation .6s infinite linear;
    border-left: 6px solid rgba(255, 255, 255, 0.15);
    border-right: 6px solid rgba(255, 255, 255, 0.15);
    border-bottom: 6px solid rgba(255, 255, 255, 0.15);
    border-top: 6px solid rgba(255, 255, 255, 0.8);
    border-radius: 100%;
}
