/*
 Theme Name:   DEL
 Author:       Creative Bay Marcin Bogus
 Template:     fstl
 Version:      1.0
 Text Domain:  del
*/

@font-face {
    font-family: 'century-schoolbook';
    src: url('assets/fonts/cs/centuryschoolbook-webfont.woff2') format('woff2'),
         url('assets/fonts/cs/centuryschoolbook-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

body {
	border-top: none;
	overflow-x: hidden;
}
body,
html {
	background-color: #ededef;	
}
h4 {
	color: #e01e26;
	font-weight: bold;
}
.header-wrap {
	position: relative;
	z-index: 5;
}
.header-wrap::before,
.header-wrap::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	z-index: -1;
}
.header-wrap::before {
	right: 100%;
}
.header-wrap::after {
	left: 100%;
}
.header .logo {
	display: block;
	max-width: none;
	margin: 0;
	margin-right: -22px;
	align-self: start;
}
.header .order-circle {
	margin-top: 25px;
}
.home .main {
    background-color: transparent;
  	padding: 0;
  	min-height: auto;
}
.wp-block-table th, .wp-block-table td {
	padding: 0 15px;
}
.wp-block-table .primary {
	display: block;
	text-align: center;
	padding-top: 18px;
	padding-bottom: 18px;
}
.table-border-red {
	max-width: 100%;
	border-collapse: collapse;
}
.table-border-red th, .table-border-red td {
	padding: 7px 15px;
}
.table-border-red th {
	font-weight: bold;
	text-align: left;
}
.table-border-red td {
	border: 1px solid #e31c23;
}
.homepage-boxes .box .headline {
	color: white;
	font-family: DinBold, sans-serif;
	font-size: 17px;
}
.homepage-boxes .box.box-border {
	border: 1px solid #344868;
}
.homepage-boxes .box .img-video {
	padding: 0 20px 20px 20px;
}
.homepage-boxes .box .img-video > .img {
	float: left;
	max-width: 25%;
	margin-right: 10px;
}
.homepage-boxes .box .img-video > .img + a {
	overflow: hidden;
}
.homepage-boxes .box .img-video.flex {
	display: flex;
}
.homepage-boxes .box .img-video.flex > .img {
	float: none;
	width: auto;
}
.homepage-boxes .box .img-video.flex > .img + a {
	overflow: visible;
}
.homepage-boxes .box .img-video.flex > .img,
.homepage-boxes .box .img-video.flex > .img + a {
	align-self: center;
}
.main {
	min-height: 0;
}
.entry-content p {
	margin-bottom: 15px;
}
.entry-content ul {
	margin-bottom: 20px;
}
.entry-content li {
	margin-bottom: 0;
}
.entry-content small {
	font-size: 85%;
}
.primary,
.header-wrap,
.header-wrap::before,
.header-wrap::after,
.main-navigation .menu,
.sidebar .widget_subpages a,
.content-box .header,
.homepage-boxes .box .headline {
	background-color: #344868;
}
.home .sidebar {
	background-color: #bcbec0;
}
.footer .footer-links,
.copyright {
	text-align: left;
}
.copyright > p > a {
	float: left;
	margin-right: 10px;
}
/* Chapter pages styles */
.parent-pageid-9 .entry-content h1, h3 {	
	color: #030000;
}
.parent-pageid-9 .entry-content h1 {
	font-size: 23px;
	margin-bottom: 35px;
}
.parent-pageid-9 .entry-content h3 { 
	font-size: 17px;
	padding-bottom: 3px;
	border-bottom: 3px solid #e01e26;
}
.parent-pageid-9 .entry-content h3::before {
	content: '';
	display: block;
	background: #030000;
	width: 14%;
	height: 8px;	
	margin-bottom: 5px;
}
.parent-pageid-9 .entry-content p + h3 {
	margin-top: 5em;
}
.parent-pageid-9 .entry-content p,
.parent-pageid-9 .entry-content ul,
.parent-pageid-9 .entry-content h4 {
	margin-left: 14%;
}
.parent-pageid-9 .entry-content p,
.parent-pageid-9 .entry-content ul {
	font-family: 'century-schoolbook', sans-serif;
}

 .book-products .item {
	 background: #fff;
	 border-radius: 20px;
	 overflow: hidden;
	 margin-bottom: 30px;
 }
 .book-products .item.has-image {
	 position: relative;
 }
 .book-products .item.has-image .img {
	 position: absolute;
	 top: 10px;
	 bottom: 10px;
	 left: 30px;
	 display: none;
 }
 .book-products .item.has-image .img img {
	 max-height: 100%;
 }
 .book-products .headline {
	 background-color: #344868;
 }
 .book-products .headline h3 {
	 color: #fff;	 
	 margin: 0;
	 font-size: 36px;
	 padding-top: 10px;
	 padding-bottom: 10px;

 }
 .book-products .sub-title {
	 display: block;
	 font-size: 25px;
 }
 .book-products .headline,
 .book-products .details {
	 padding-left: 30px;
	 padding-right: 30px;
 }
 .book-products .details {
	 font-size: 30px;
	 padding-top: 40px;
	 padding-bottom: 40px;
 }
 .book-products .details p {
	 margin-bottom: 0.9em;
 }
 .book-products .primary {
	 display: inline-block;
	 font-size: 42px;
	 margin-top: 1em;
	 padding: 0.25em 1.2em;
 }
 /* Don't display main content section for Buy Now page */
 .page-id-17 .main {
	 display: none;
 }

@media only screen and (min-width: 600px) {
	.header {
		margin-bottom: 20px;
	}
}

@media only screen and (min-width: 768px) {
	.book-products .item.has-image .img {
		display: block;
	}
	.book-products .has-image .headline,
	.book-products .has-image .details {
		padding-left: 38%
	}
}