/* global variables */

/**
 * mixin for media queries
 * taken from https://gist.github.com/1215856#file-6_media_queries-scss
 */

/** CSS used by cl4 for default formatting of html elements related to cl4 **/

/** table striping **/

/* this needs to be up here so things later on can override it, like a hover */

/** styles for cl4 forms **/

/** jquery date picker customizations **/

/** multiple edit table **/

/** editable list css **/

/* claero custom pagination */

/** cl4 "content" table for data **/

/** field help **/

/** message formating **/

/** formatting for buttons inside delete messages (likely contained in .cl4_message ul) **/

/** formatting for displaying values when viewing records **/

/* adds some space between the date operand and the date field in the search */

/** for model create in cl4 admin **/

/* a bunch SASS of mixins/helpers */

/* see: http://seesparkbox.com/foundry/scss_rem_mixin_now_with_a_better_fallback */

.book_thumbs:after, .small_book_details:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

nav ul {
  padding-left: 0;
}

body {
  background-color: #f7f7f7;
  color: #333;
  font-size: 0.9em;
}

a {
  color: #555;
}

p {
  line-height: 1.2em;
}

h2 a {
  text-decoration: none;
  color: #333;
}

h2 a:hover {
  text-decoration: underline;
}

h3:first-child {
  margin-top: 0;
}

/** header **/

header {
  margin: 20px 0;
}

header .page_title {
  float: left;
  margin-bottom: 0.5em;
  font-weight: bold;
  font-size: 2.1em;
  text-shadow: #bfbfbf 1px 1px 1px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

header .page_title a {
  text-decoration: none;
  color: #222;
}

header nav {
  float: right;
}

@media only screen and (max-width: 767px) {
  header nav {
    float: none;
  }
}

header nav ul {
  list-style: none;
  font-size: 1.1em;
  padding: 0;
  margin: 0;
}

@media only screen and (max-width: 767px) {
  header nav ul.pills > li {
    float: none;
  }
}

header nav ul.pills li a {
  color: #333;
  border-radius: 5px;
}

@media only screen and (max-width: 767px) {
  header nav ul.pills li a {
    color: #fff;
    text-decoration: none;
    text-shadow: none;
    background-color: #2a85c2;
  }
}

/** footer **/

footer {
  border: none;
  font-size: 0.7em;
  background-color: #99a1a9;
  padding: 1em;
}

/** nav pills **/

.pills {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  zoom: 1;
  /* Pills */
}

.pills:before, .pills:after {
  display: table;
  content: "";
  zoom: 1;
}

.pills:after {
  clear: both;
}

.pills > li {
  float: left;
}

.pills > li > a {
  display: block;
  text-decoration: none;
}

.pills a {
  margin: 5px 3px 5px 0;
  padding: 0 15px;
  line-height: 30px;
  text-shadow: 0 1px 1px #fff;
  border-radius: 15px;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

.pills a:hover {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  background-color: #2a85c2;
}

.pills .active a {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  background-color: #2985c2;
}

.deborah_bkg-bio .main_content {
  background: url(/images/deborah-miller-bg-003.png) no-repeat;
  min-height: 570px;
  padding-bottom: 17px;
  background-size: 310px;
}

.deborah_bkg-presentations .main_content {
  background: url(/images/deborah-miller-bg-002.png) no-repeat;
  min-height: 570px;
  padding-bottom: 17px;
  background-size: 410px;
}

.deborah_bkg-contact .main_content {
  background: url(/images/deborah-miller-bg-001.png) no-repeat;
  min-height: 570px;
  padding-bottom: 17px;
  background-size: 410px;
}

.deborah_bkg .main_content {
  background-position: bottom right;
}

@media only screen and (max-width: 767px) {
  .deborah_bkg .main_content {
    padding-bottom: 565px;
  }
}

.p_index .sixcol {
  width: 41%;
}

.p_index .sixcol > p {
  margin-top: 0;
}

.feelings_home {
  text-align: center;
}

.feelings_home h2 {
  margin-top: 0;
  font-size: 1.9em;
}

@media only screen and (max-width: 767px) {
  .feelings_home img {
    margin: 1em;
  }
}

/** book "listing" **/

.book_thumbs {
  width: 785px;
  margin: 0 auto 0.2em auto;
}

.book_thumbs.book_thumbs_hp {
  width: 100%;
  margin-bottom: 0;
}

@media only screen and (max-width: 767px) {
  .book_thumbs {
    width: 100%;
  }
}

.book_thumbs.poetry {
  width: 540px;
}

@media only screen and (max-width: 767px) {
  .book_thumbs.poetry {
    width: 100%;
  }
}

.book_thumbs a {
  display: block;
  float: left;
  margin: 0 10px 0.25em 0;
  text-decoration: none;
}

@media only screen and (max-width: 1200px) {
  .book_thumbs a {
    float: none;
  }
}

.book_thumbs a.landing_at_night {
  margin-right: 0;
}

.book_thumbs a div.links {
  display: none;
  width: 100%;
}

.book_thumbs a:hover div.links {
  display: block;
  position: absolute;
  margin-top: 210px;
  background-color: #000;
  background-color: rgba(0, 0, 0, 0.25);
  color: #fff;
  width: 170px;
  padding: 6px 10px;
  text-shadow: #000 0 0 5px;
  text-align: center;
}

@media only screen and (max-width: 767px) {
  .book_thumbs a:hover div.links {
    margin-top: 204px;
  }
}

.book_thumbs a:hover div.links_landing_at_night {
  margin-top: 226px;
}

@media only screen and (max-width: 767px) {
  .book_thumbs a:hover div.links_landing_at_night {
    margin-top: 204px;
  }
}

.book_thumbs a:hover div.links_grumblies {
  margin-top: 218px;
  width: 382px;
  padding: 10px 12px;
  text-align: left;
}

@media only screen and (max-width: 767px) {
  .book_thumbs a:hover div.links_grumblies {
    margin-top: 0;
    width: auto;
  }
}

.book_thumbs a:hover div.links .title {
  text-transform: uppercase;
  font-weight: bold;
}

.book_thumbs.book_thumbs_hp a {
  margin-left: 1.2em;
}

@media only screen and (max-width: 1200px) {
  .book_thumbs.book_thumbs_hp a {
    margin-left: 0;
  }
}

.book_thumbs.book_thumbs_hp a:first-child {
  margin-left: 0;
}

.book_thumbs.book_thumbs_hp a:hover div.links_grumblies {
  margin-top: 327px;
  width: 520px;
}

@media only screen and (max-width: 767px) {
  .book_thumbs.book_thumbs_hp a:hover div.links_grumblies {
    margin-top: 0;
    width: auto;
  }
}

.small_book_details {
  width: 100%;
}

.small_book_details .book_cover {
  float: left;
  width: auto;
}

.small_book_details .book_details {
  float: left;
  background-color: #949ba1;
  padding: 0.8em 1.7em 0.2em;
  line-height: 2em;
}

@media only screen and (max-width: 767px) {
  .small_book_details .book_details {
    margin-top: 1.5em;
  }
}

.small_book_details .book_details h4 {
  display: inline;
}

.small_book_details .book_details ul.pills {
  margin-top: 1.5em;
}

@media only screen and (max-width: 767px) {
  .small_book_details .book_details ul.pills {
    margin-bottom: 0;
  }

  .small_book_details .book_details ul.pills li {
    float: none;
    margin-bottom: 15px;
  }
}

.small_book_details .book_details ul.pills a {
  margin: 0 1em 0 0;
}

.shop_list .shop_item {
  padding: 2em 2em 1.5em 2em !important;
  margin-bottom: 1.5em;
  margin-right: 3em;
  text-align: center;
  background-color: #949ba1;
}

.shop_list .shop_item.col-1-2 {
  width: 46%;
}

@media only screen and (max-width: 767px) {
  .shop_list .shop_item.col-1-2 {
    width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  .shop_list .shop_item {
    margin-right: 0;
  }
}

.shop_list .shop_item ul.pills {
  width: 71%;
  margin: 1.1em auto 0 auto;
}

@media only screen and (max-width: 767px) {
  .shop_list .shop_item ul.pills {
    margin-bottom: 0;
  }

  .shop_list .shop_item ul.pills li {
    float: none;
    margin-bottom: 0.7em;
  }
}

.shop_list .shop_item ul.pills li {
  margin: 0 0 0 1em;
}

.shop_list .shop_item ul.pills li:first-child {
  margin-left: 0;
}

@media only screen and (max-width: 767px) {
  .shop_list .shop_item ul.pills li {
    margin-left: 0;
  }
}

.feelings_books {
  text-align: center;
}

.feelings_books a {
  display: inline-block;
  margin-right: 1em;
}

@media only screen and (max-width: 767px) {
  .feelings_books a {
    margin-bottom: 1em;
  }
}

.hp-flex {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

@media (min-width: 801px) {
  .hp-flex {
    justify-content: space-between;
  }
}

.hp_flex-copy {
  line-height: 1.5;
}

@media (min-width: 801px) {
  .hp_flex-copy {
    width: 55%;
  }
}

@media (min-width: 801px) {
  .hp_flex-img {
    text-align: right;
    width: 45%;
  }
}

.video {
  margin: 1.3em 0;
}

.video > div {
  margin: 0 auto 1em;
}

@media only screen and (min-width: 48em) {
  .video > div {
    width: 47%;
    width: calc(50% - (2em / 2));
    margin-bottom: 0;
  }
}

