/*
Theme Name: Sparkling WW2L child theme
Author: P-O Yliniemi
Description: Child theme to Sparkling by Colorlib. Sparkling is a clean minimal and responsive WordPress theme suitable for most projects.
Version: 2.5.0
Template: sparkling
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sparkling
Domain Path: /languages/
*/
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

/* Background image in header */
.navbar.navbar-default {
  background: #193568 url("/site-graphics/page_header_img.png");
  font-family: 'Open Sans', serif;
  padding-top: 8px;
  margin-bottom: 0;
  font-weight: 500;
}

/* Header menu items */
.navbar-default .navbar-nav > li > a {
  color: #F5F7FA;
  line-height: 24px;
  text-transform: uppercase;
  font-size: 12px;
}
/* Remove dotted outline box when menu items are clicked */
a {
   outline: none !important;
}
blockquote {
  font-size: 120%;
  font-style: italic;
  padding: 5px 20px;
  border: none;
}

/* Bootstrap table styling overrides */
.table-hover tbody tr:not(.highlight):hover td { background-color: #fff; }
.table tbody tr td { border: 0; }
.table-hover tbody, .table tbody { border-bottom: 1px solid #ccc; }

/* Less space between posts on listing pages and rounded corners on content boxes */
#main .post-inner-content .wpb_content_element, .container.main-content-area {
  margin-bottom: 0;
}
#main .post-inner-content, .well {
  border-radius: 15px;
  padding: 2ex 3ex;
}
.entry-title {
  margin-bottom: 1ex;
}
.entry-meta {
  margin-bottom: 1ex;
}
.blog-item-wrap {
  margin-bottom: 2ex;
}

/* Search form in page header */
#searchform-header-replace { position: absolute; top: 0; left: 0; height: 100%; width: 100%; background: #fff; visibility: hidden; opacity: 0; -moz-opacity: 0; -webkit-opacity: 0; transition: all 0.25s ease-in-out; -moz-transition: all 0.25s ease-in-out; -webkit-transition: all 0.25s ease-in-out; }
#searchform-header-replace form { height: 100%; width: 90%; float: left; }
#searchform-header-replace input { height: 72px; width: 100%; outline: 0; border: 0; -webkit-appearance: none; border-radius: 0; -moz-border-radius: none; -webkit-border-radius: none; font-size: 32px; color: #bbb; background: none; }
#searchform-header-replace-close { float: right; right: 0; margin-top: 20px; height: 30px; line-height: 30px; font-size: 26px; color: #bbb; cursor: pointer; }
#searchform-header-replace-close:hover { color: #000 }
body.boxed-main-layout #searchform-header-replace input { padding: 0 30px }
body.boxed-main-layout #searchform-header-replace-close { right: 30px }
#searchform-header-replace.show { visibility: visible; opacity: 1; -moz-opacity: 1; -webkit-opacity: 1;}


.searchwp-live-search-results {
    margin-top: -20px;
}

/* Set smaller text and rounded corners on comments */
.comment .comment-body {
  font-size: 80%;
  border-radius: 7px;
}
.comment .comment-body blockquote {
  font-size: 120%;
  font-style: italic;
  padding: 7px 20px;
}


/* Move "Read More" button to the right on the search result page */
.search #page a.btn.btn-default.read-more {
  float: right;
}
.search #page .entry-summary {
  overflow: hidden;
}

/* Links hover color in widget listings */
#secondary .well a:hover {
    color: #DA4453 !important;
}
/* Margins in widget boxes: below heading, and bottom */
#secondary .widget {
    margin-bottom: 3ex;
}
#secondary .widget > h3 {
    margin-bottom: 1ex;
}


/* Border colors and radius for drop down menus */
.dropdown-menu {
    border-top: 4px solid #2EA3F2;
    border-bottom: 4px solid #DA4453;
    margin-left: 1em;
    border-radius: 0px 0px 8px 8px !important; 
}

/* Footer area */
#footer-area {
    margin-top: 2em;
}

/* Center the footer text */
@media (min-width: 992px) {
.col-md-6 {
    width: 100%;
}
}
.copyright {
    margin-top: 10px;
    float: none;
    text-align: center;
}

/* Testimonial Rotator plugin */
@media screen and (max-width: 992px) {
  div.testimonial_rotator_wrap {
    display: none;
  }
}

div.testimonial_rotator_slide {
    margin: 0;
    /* shadow effect*/
    -moz-box-shadow: 0px 0px 8px #888;
    -webkit-box-shadow: 0px 0px 8px #888;
    box-shadow: 0px 0px 8px #888;

    /* boder effect*/
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    padding: 1em 1em 2em 2em;
}

/* Styling of PDN-articles */
div.article {
  margin-top: 2ex;
  text-align: justify;
}
div.article p.reader_q {
  font-size: 105%;
  font-style: italic;
  background-color: #eee;
  padding: 2ex;
  border-radius: 12px;
}

div.article > div.article {
  margin-left: 2ex;
  margin-right: 2ex;
}
div.references {
  font-size: 90%;
}
.qa-a {
  color: #DA4453;
  font-weight: bold;
}
.qa-q {
  font-weight: bold;
}
div.qa_q {
  font-style: italic;
  background-color: #eee;
  padding: 2ex;
  margin-top: 1em;
  border-radius: 12px;
  text-align: justify;
  clear: both;
}

div.qa_a {
  padding: 2ex;
  text-align: justify;
  clear: both;
}

div.qa_h {
  font-size: 80%;
  padding: 1em 0;
}

div.qa_hl {
  width: 50%;
  float: left;
}
div.qa_hr {
  float: right;	
}

div.booktext {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.7;
  font-size: 18px;
  text-align: justify;
  clear: both;
}
div.booktext h1,div.booktext h2,div.booktext h3,div.booktext h4 {
	text-align: center;
	font-size: 20px;
}
div.booktext h1 {
	font-size: 26px;
}
div.booktext h3 {
	font-style: italic;
}
div.booktext h4 {
	padding-top: 1em;
	color: #000;
	text-align: left;
	font-weight: bold;
	font-size: 18px;
}
div.booktext h5 {
	color: #777;
	font-weight: normal;
	font-style: italic;
	text-align: right;
	font-size: 16px;
}
div.bookquote, p.bookquote {
  font-family: 'Open Sans', sans-serif;
  font-style: italic;
  line-height: 1.7;
  font-size: 18px;
  text-align: justify;
  margin: 0.5ex 2em 0.5em 2em;
  clear: both;
}
div.booktext small {
  font-size: 80%;
  width: 78ex;
}

p.q {
  font-style: italic;
}
/*
 * WooCommerce
 * because of new crappy gallery on single product page
*/
.woocommerce-page ul.products li.product h3 { 
    height: 5em !important; 
}

.woocommerce .main-content-inner {
  border-radius: 15px;
  padding: 2ex 3ex;
}
td.product-total {
  vertical-align: top !important;
}
p.ppbutton {
  position: absolute;
  padding-top: 20px;
  bottom: 0;
}
.wc-horizontal-product {
  width: 100%;
  padding: 14px;
  margin: 0 0 1em 0;
  font-size: 80%;

  /* shadow effect*/
  -moz-box-shadow: 0px 0px 8px #888;
  -webkit-box-shadow: 0px 0px 8px #888;
  box-shadow: 0px 0px 8px #888;

  /* border effect*/
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  border-radius: 12px;
}
.wc-horizontal-product h3 {
  font-size: 120%;
  margin: 0;
  padding: 0;
}
.wc-horizontal-product .add_to_cart_button {
    padding: 2px 5px;
    font-size: 10px;
}

/*
 * Archivist
*/
.archivist_wrapper li {
	line-height: 150%;
}
.archivist_wrapper {
  font: 110% verdana, sans-serif;
}
.archivist_wrapper p {
  text-align: justify;
}
.archivist_wrapper a.permalink {
	padding-top: 1em;
	font-weight: bold;
    font-size: 120%;
}

/* Archive page with alphabetically sorted post titles */
.cat_index a {
  white-space: nowrap;
}
.cat_index li {
  display: inline;
  padding-right: 1em;
}
.cat_index ul {
  padding-left: 0;
}

/* Related posts */
.related {
  background-color: #eee;
  border: 1px solid #ccc;
    padding: 4px 5px;
    font-size: 80%;
	border-radius: 7px;
}
.related h3 {
	margin: 0;
	padding: 0;
	font-size: 14px;
}
.related ul {
list-style-type: none;
margin: 0; padding: 0;
}
.related ul li {
	margin: 0;
	padding: 0;
}
.label {
    font-size: 100%;
    color: #000;
}
span.mention-nice-name {
  display: none !important;
}

 /* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.modal.is-open {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Modal Content/Box */
.modal-content {
  background-color: #f2f2f2;
  margin: 2.5rem auto;
  padding: 0px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 900px;
  height: 90vh;
  border-radius: 14px;
  position: relative;
}
/* loading overlay */
.modal-content.is-loading::after {
  content: "Loading…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #555;
  background: rgba(242,242,242,0.85);
  border-radius: 14px;
  z-index: 2;
}

.modal-close {
  color: #DA4453;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
  color: #cbd5e1;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  background-color: #193568; /* site header color */
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-radius: 14px 14px 0 0;
}

#stripe-frame {
  width: 100%;
  height: calc(90vh - 52px); /* header height */
  border: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}
#stripe-frame.is-ready {
  opacity: 1;
  visibility: visible;
}
