/**
 *
 *
 * Core.
 *
 *
 */

/**
 *
 * Common.
 *
 */

.node {
  position: relative;
}

.node h1,
.node .body {
  text-align: center;
}

.page .node h1 {
  margin: 0 0 15px;
}

.node .body {
  width: 80%;
  margin: 0 auto 30px;
  font-size: 142.9%;
}

.node .body ul,
.node .body ol {
  margin: 10px 0;
  padding-left: 20px;
  line-height: 1.5;
}

body.mobile .node .body {
  width: auto;
  margin: 0 auto 20px;
  font-size: 128.6%;
}

body.not-logged-in #debug .messages {
  display: none;
}


/**
 * Close.
 */

.close {
  display: block;
  position: absolute;
  z-index: 2;
  right: 5px;
  top: 5px;
  width: 30px;
  height: 30px;
  font-size: 0%;
  cursor: pointer;
  background-color: transparent;
  background-image: url('/sites/all/themes/storyplace/images/icons/icon-close-white.png');
  background-repeat: no-repeat;
  background-position: 0 0;
  -webkit-background-size: 100%;
  -moz-background-size: 100%;
  -o-background-size: 100%;
  background-size: 100%;
}

/**
 * Icons.
 */

li.icon {
  width: 50px;
  height: 50px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  -webkit-background-size: 100%;
  -moz-background-size: 100%;
  -o-background-size: 100%;
  background-size: 100%;
  -webkit-transition: background-image 0.3s ease;
  -moz-transition: background-image 0.3s ease;
  -o-transition: background-image 0.3s ease;
  transition: background-image 0.3s ease;
}

li.icon a {
  display: block;
  height: 100%;
  font-size: 0%;
}

/**
 * Overlay.
 */

#overlay {
  display: none;
  position: absolute;
  z-index: 10500;
  top: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: transparent url('/sites/all/themes/storyplace/images/trans/trans-black.png') repeat 0 0;
}

#overlay .region-inner {
  height: 100%;
}

#overlay .block {
  display: none;
  position: absolute;
  left: 50%;
  top: 10%;
  width: 960px;
  margin-left: -480px;
}

#overlay .block-inner {
  position: relative;
}

body.tablet #overlay .block {
  width: 640px;
  margin-left: -320px;
}

#overlay .block .close {
  left: auto;
  right: -40px;
  top: -40px;
  width: 40px;
  height: 40px;
}

#overlay .block .content {
  overflow: hidden;
}

/* Iframe/video. */
.page #overlay iframe,
.page #overlay video {
  height: 540px;
}

body.tablet .page #overlay iframe,
body.tablet .page #overlay video {
  height: 360px;
}

/**
 *
 * Forms.
 *
 */

.form-required {
  color: #ff0000;
}

.page form label {
  display: block;
  margin-bottom: 5px;
  font-family: 'Open Sans Bold', sans-serif;
  white-space: inherit;
}

.page input[type="checkbox"],
.page input[type="radio"] {
  display: none;
}

.page input[type="checkbox"] + label,
.page input[type="radio"] + label {
  display: block;
  min-height: 25px;
  padding-left: 35px;
  text-transform: none;
  cursor: pointer;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: 0 0;
  -webkit-background-size: 25px;
  -moz-background-size: 25px;
  -o-background-size: 25px;
  background-size: 25px;
  -webkit-transition: background-image 0.3s ease;
  -moz-transition: background-image 0.3s ease;
  -o-transition: background-image 0.3s ease;
  transition: background-image 0.3s ease;
}

.page input[type="checkbox"] + label {
  background-image: url('/sites/all/themes/default/images/form/checkbox.png') !important;
}

.page input[type="radio"] + label {
  background-image: url('/sites/all/themes/default/images/form/radio.png') !important;
}

.page input[type="checkbox"]:checked + label {
  background-image: url('/sites/all/themes/default/images/form/checkbox-checked.png') !important;
}

.page input[type="radio"]:checked + label {
  background-image: url('/sites/all/themes/default/images/form/radio-checked.png') !important;
}

.page input[type="text"],
.page input[type="email"],
.page input[type="password"],
.page input[type="submit"],
.page input[type="reset"],
.page input[type="button"],
.page textarea,
.page select {
  border: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
}

.page input[type="text"],
.page input[type="email"],
.page input[type="password"],
.page input[type="submit"],
.page input[type="reset"],
.page input[type="button"],
.page textarea,
.page legend a, 
.page a.button {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.page input[type="text"],
.page input[type="email"],
.page input[type="password"],
.page textarea {
  width: 100%;
  color: #000000;
  text-indent: 5px;
  background-color: #f0f0f0;
  -webkit-box-shadow: inset 0 0 2px 0 #7f7f7f;
  -moz-box-shadow: inset 0 0 2px 0 #7f7f7f;
  box-shadow: inset 0 0 2px 0 #7f7f7f;
}

.page input[type="text"],
.page input[type="email"],
.page input[type="password"],
.page input[type="submit"],
.page input[type="reset"],
.page input[type="button"],
.page a.button {
  height: 30px;
  padding: 0;
  line-height: 30px;
}

.page input[type="submit"],
.page input[type="reset"],
.page input[type="button"],
.page a.button {
  padding: 0 10px;
  color: #ffffff !important;
  font-family: 'Open Sans Bold', sans-serif;
  text-transform: uppercase;
  background-color: #0072aa;
}

.page input[type="submit"]:hover,
.page input[type="reset"]:hover,
.page input[type="button"]:hover,
.page a.button:hover {
  color: #ffffff !important;
  background-color: #777777;
  background-image: none;
}

.page input[type="submit"],
.page input[type="reset"],
.page input[type="button"] {
  display: block;
}

.page a.button {
  display: inline-block;
}

.page legend a:hover,
.page a.button:hover {
  text-decoration: none;
}

.page input[disabled="disabled"] {
  color: #f5f5f5;
}

.page textarea {
  min-height: 100px;
  line-height: 1.5;
}

.page select {
  display: block;
  select::-ms-expand {
    display: none;
  }
}

.page fieldset {
  margin: 0;
  padding: 25px 15px;
  border: 1px solid #0072aa;
}

body.mobile .page fieldset {
  padding: 0;
  border: none;
}

body.mobile .fieldset-wrapper {
  padding: 20px;
  border: 1px solid #0072aa;
}

.page legend {
  position: relative;
  z-index: 2;
  margin: 0 0 -10px 10px;
}

body.mobile .page legend {
  position: static;
  z-index: 1;
  margin: 0;
}

.page legend span.fieldset-legend {
  display: block;
  padding: 10px 20px 10px 10px;
  color: #ffffff;
  font-family: 'Open Sans Bold', sans-serif;
  text-transform: uppercase;
  background-color: #0072aa;
}

/**
 *
 *
 * Non-core.
 *
 *
 */

/**
 *
 * Tiles.
 *
 */

.node-tile-row,
.node-tile-gutter {
  overflow: hidden;
}

.node-tile-gutter {
  width: 16px;
}

.node-tile-spacer {
  padding: 0 0 16px;
}

body.mobile-small .node-tile-gutter,
body.mobile-medium .node-tile-gutter {
  width: 0;
}

body.mobile-large .node-tile-gutter {
  width: 2%;
}

.node-tile-content {
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}

.node-tile-row.blue .node-tile-content {
  border: 6px solid #1275bb;
  background-color: #1275bb;
}
.node-tile-row.pink .node-tile-content {
  border: 6px solid #f05d77;
  background-color: #f05d77;
}
.node-tile-row.purple .node-tile-content {
  border: 6px solid #662d91;
  background-color: #662d91;
}
.node-tile-row.tangerine .node-tile-content  {
  border: 6px solid #f99f1c;
  background-color: #f99f1c;
}
.node-tile-row.teal .node-tile-content {
  border: 6px solid #47b9c7;
  background-color: #47b9c7;
}

.node-tile-row a {
  display: block;
}

.page .node-tile-row h3 {
  margin: 0;
  font-size: 228.6%;
  line-height: 1.1;
  color: #ffffff;
}

body.mobile .page .node-tile-row h3 {
  font-size: 142.9%;
}

.page .node-tile-row h3 a,
.page .node-tile-row h3 a:active,
.page .node-tile-row h3 a:link,
.page .node-tile-row h3 a:visited {
  color: #ffffff;
}

.node-tile-row h3 a {
  padding: 10px 0;
  text-align: center;
  background-color: grey;
}

.node-tile-row.blue h3 a {
  background-color: #1275bb;
}
.node-tile-row.pink h3 a {
  background-color: #f05d77;
}
.node-tile-row.purple h3 a {
  background-color: #662d91;
}
.node-tile-row.tangerine h3 a {
  background-color: #f99f1c;
}
.node-tile-row.teal h3 a {
  background-color: #47b9c7;
}

.node-tile-row .media {
  overflow: hidden;
  -webkit-transition: opacity 0.3s ease;
  -moz-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.node-tile-row:hover .media {
  -moz-opacity: 0.6;
  -khtml-opacity: 0.6;
  opacity: 0.6;
}

.node-tile-row .media img {
  width: 100%;
  height: auto;
}

/**
 *
 * RSS.
 *
 */

.rss-row {
  margin-bottom: 20px;
}

.rss-row:last-child {
  margin-bottom: 0;
}

.page .rss-row a,
.page .rss-row a:active,
.page .rss-row a:link,
.page .rss-row a:visited {
  color: #662d91;
}

.rss-row .title {
  margin-bottom: 5px;
  line-height: 1.2;
}

.rss-row .title a {
  font-size: 142.9%;
  font-family: 'Asap Bold', sans-serif;
}

.rss-row .description {
  line-height: 1.3;
}

/**
 *
 * Promoted themes.
 *
 */

body.mobile #promoted-themes {
  border-top: 1px solid #65328e;
  padding-top: 20px;
}

#promoted-themes h3 {
  color: #662d91;
  text-align: center;
}

.page #promoted-themes h3 {
  margin: 0 0 10px;
}

#promoted-themes .carousel-row {
  width: 100px;
  margin-right: 32px;
}

body.mobile #promoted-themes .carousel-row {
  width: 92px; 
}

#promoted-themes .custom-nav {
  top: 70px;
}

body.front #promoted-themes .custom-nav {
  top: 30px;
}

body.front.mobile #promoted-themes .custom-nav {
  top: 50px;
}

body.mobile-small #promoted-themes .custom-nav,
body.mobile-medium #promoted-themes .custom-nav {
  top: 118px;
}

body.mobile-large #promoted-themes .custom-nav {
  top: 88px;
}

#promoted-themes .custom-nav.prev {
  background-image: url('/sites/all/themes/storyplace/images/external/libraries/SlidesJS/icon-arrow-left-violet.png');
}

#promoted-themes .custom-nav.next {
  right: 0;
  background-image: url('/sites/all/themes/storyplace/images/external/libraries/SlidesJS/icon-arrow-right-violet.png');
}

/**
 *
 * Carousels.
 *
 */

.carousel {
  position: relative;
}

.carousel-rows {
  overflow: hidden;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}

.carousel .mCSB_scrollTools {
  visibility: hidden;
}

.carousel .mCSB_container > div {
  padding-right: 36px;
  padding-left: 36px;
}

/*
.carousel.nav-disabled .mCSB_container > div {
  padding-right: 0;
  padding-left: 0;
}
*/

.carousel-row {
  float: left;
  -webkit-transition: opacity 0.3s ease;
  -moz-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.carousel-row:last-child {
  margin-right: 0 !important;
}

.carousel-row:hover {
  -moz-opacity: 0.6;
  -khtml-opacity: 0.6;
  opacity: 0.6;
}

.carousel-row a {
  display: block;
}

.carousel-row img {
  width: 100%;
  height: auto;
}

.carousel.nav-disabled .custom-nav {
  display: block;
}

.carousel .custom-nav {
  display: block;
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 32px;
  font-size: 0%;
}

/**
 *
 * Back to top link.
 *
 */

#back-to-top {
  display: none;
}

body.mobile #back-to-top
body.mobile #back-to-top:active,
body.mobile #back-to-top:link,
body.mobile #back-to-top:visited,
body.mobile #back-to-top:hover {
  color: #ffffff;
}

body.mobile #back-to-top {
  display: block;
  position: fixed;
  z-index: 10090;
  right: 14px;
  bottom: 10px;
  padding: 0 8px 6px 8px;
  font-size: 171.4%;
  background-color: #333333;
}

body.mobile #back-to-top:hover {
  text-decoration: none;
}

/**
 *
 * Sharing.
 *
 */

.sharing {
  position: absolute;
  z-index: 2;
  right: 10px;
  top: 0;
}

body.is-admin .sharing {
  top: 52px;
}

body.mobile .sharing {
  position: relative;
  z-index: 1;
  right: auto;
  top: auto;
  margin-bottom: 10px;
}

.sharing-item {
  float: left;
}

body.mobile .sharing-item {
  float: none;
}

.sharing-count {
  margin-right: 3px;
  color: #662d91;
  font-size: 114.3%;
  font-family: 'Open Sans Bold', sans-serif;
  line-height: 30px;
  text-transform: uppercase;
}

body.mobile .sharing-count {
  display: none;
}

.sharing-icons ul {
  list-style: none inside none;
}

.sharing-icons li {
  float: left;
  margin-right: 3px;
}

.sharing-icons li:last-child {
  margin-right: 0;
}

.sharing-icons li.icon {
  width: 30px;
  height: 30px;
}

.sharing-icons li.icon.facebook {
  background-image: url('/sites/all/themes/storyplace/images/icons/icon-social-facebook.png');
}
.sharing-icons li.icon.twitter {
  background-image: url('/sites/all/themes/storyplace/images/icons/icon-social-twitter.png');
}
.sharing-icons li.icon.mail {
  background-image: url('/sites/all/themes/storyplace/images/icons/icon-social-email.png');
}
.sharing-icons li.icon.pinterest {
  background-image: url('/sites/all/themes/storyplace/images/icons/icon-social-pinterest.png');
}
