/*
Theme Name:     Donna Grant
Theme URI:      https://donnagrant.com/
Template:       kadence
Author:         Carrie Loves Design Studio
Author URI:     https://www.carrieloves.com
Description:    A custom Kadence child theme for Donna Grant
Version:        1.0.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:    kadence-child
*/

/* Customizations
---------------------------------------------------------------------------- */

::-moz-selection {
    background-color: #920403;
    color: #ffffff;
}

::selection {
    background-color: #920403;
    color: #ffffff;
}

em {
	font-family: 'Playfair Display';
	font-size: 1em;
	letter-spacing: .025em;
}

/* Books Page
---------------------------------------------------------------------------- */

#allbookscontainer,
#allaudiobookscontainer { 
	display: block; 
	position: relative; 
	width: 100%; 
}

#bookgrid {
    display: block;
    position: relative;
    margin-bottom: 5px;
    width: 100%;
	text-align: center;
}

h2.seriestitle {
	margin-bottom: 44px;
}

#bookentry {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 21%;
    margin-right: 1.5%;
	margin-left: 1.5%;
    margin-bottom: 40px;
}

#allaudiobookscontainer #bookentry {
	position: relative;
    display: inline-block;
    vertical-align: top;
    width: 29%;
    margin-right: 1.5%;
	margin-left: 1.5%;
    margin-bottom: 40px;
}

#bookentry img,
#allaudiobookscontainer #bookentry img { 
	width: 100%; 
	height: auto; 
	margin-bottom: 10px;
}

@media only screen and (max-width: 1230px) {
	#bookgrid {
	    margin-bottom: 10px;
	}
	
	#bookentry,
	#allaudiobookscontainer #bookentry {
	    margin-bottom: 35px;
	}
}

@media only screen and (max-width: 1040px) {
	#bookgrid {
	    margin-bottom: 20px;
	}
	
	#bookentry,
	#allaudiobookscontainer #bookentry {
	    margin-bottom: 26px;
	}
}

@media only screen and (max-width: 800px) {
	#bookentry,
	#allaudiobookscontainer #bookentry { 
	    width: 43%;
	    margin-right: 3.25%;
		margin-left: 3.25%;
		margin-bottom: 16px;
	}
	
	#bookgrid {
	    margin-bottom: 19px;
    }
    
    h2.seriestitle {
	    margin-bottom: 28px;
	}
	
	#bookgrid.upcomingreleases #bookentry {
	    margin-bottom: 35px;
	}
	
	#mobilebookscontent.entry-content-wrap #bookgrid.upcomingreleases #bookentry {
	    margin-bottom: 27px;
	}
}
 
@media only screen and (max-width: 680px) {
	#bookentry,
	#allaudiobookscontainer #bookentry { 
		margin-bottom: 14px;
	}
	
	#bookgrid {
	    margin-bottom: 19px;
    }
}

@media only screen and (max-width: 590px) {
	#bookentry, 
	#allaudiobookscontainer #bookentry { 
	    width: 100%;
	    margin-right: 0%;
		margin-left: 0%;
		margin-bottom: 16px;
	}
	
	#bookgrid {
        width: 100%;
	}
	
	h2.seriestitle {
    font-size: 1.5em;
}
}

@media only screen and (max-width: 500px) {
    #allaudiobookscontainer #bookentry { 
	    width: 93%;
	    margin-right: 3.25%;
		margin-left: 3.25%;
		margin-bottom: 16px;
	}
}


/* Book Detail Pages
---------------------------------------------------------------------------- */

#bookpageleft, #bookpageright {
	display: inline-block; 
	position: relative;
	vertical-align: top;
}

#bookpageleft {	
	width: 35%;
	padding-right: 5%;
	margin-right: 0px;
}

#bookpageright {	
	width: calc(65% - 5%);
}

img#bookcover {
	display: block;
	position: relative;
	width: 100%;
	height: auto;
	margin-bottom: -3px;
}

h4.booksheader,
h4.linksheader {
	margin-top: 20px;
	margin-bottom: 0px;
	font-size: 30px;
}

#bookotherbooks h4 {
	margin-bottom: 10px;
	text-transform: none;
}

#ebooklinks,
#audiolinks,
#printlinks,
#purchaselinks {
	margin-top: 20px;
	margin-bottom: 20px;
	text-align: center;
}

#ebooklinks h4,
#audiolinks h4,
#printlinks h4,
#purchaselinks h4 {
	margin-bottom: 10px;
}

#ebooklinks a.button,
#audiolinks a.button,
#printlinks a.button,
#purchaselinks a.button {
    text-align: center;
    margin-bottom: 0px;
    padding: 12px 24px;
}

.flexbox-container {
	display: flex;
  flex-wrap: wrap;
	justify-content: space-between;
	flex-direction: row;
	gap: 7px;
}

.flexbox-container .button {
	flex: 1 1 auto;
}

.flexbox-container > .button:first-child {
  flex: 1 0 97%;
}

@media only screen and (max-width: 800px) {
.flexbox-container > .button:first-child {
  flex: 1 0 97% !important;
}
}

@media screen and (max-width: 500px) {
.flexbox-container > .button:first-child {
		flex: 0 1 calc(100%);
}
	
.flexbox-container .button {
    flex: 0 1 calc(100%);
  }
}

#ebooksection,
#audiosection,
#printsection {
	display: block;
	position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
	text-align: center;
}

#narratedby {
	font-size: 14px;
}

.bookmatterinfo {
	font-family: p22-typewriter, sans-serif;
	text-transform: uppercase;
	font-size: 1rem;
}

.bookgenre,
.bookseries {
	display: block;
}

.bookgenre ul,
.bookseries ul {
	display: inline;
	list-style-type: none;
	margin: 0px;	
}

.bookgenre li:marker,
.bookseries li::marker {
	display: none;
}

span.releasedate {
	margin-bottom: 20px;
}

#synopsissection {
	margin: 0px auto 30px;
	border: 0px solid #c6ac8f;
}

#bookotherbooks {
	margin-top: 25px;
    width: 100%;
    margin-bottom: 5px; 
	text-align: center;
}

#bookotherbooks.standalones,
#bookotherbooks.free-books {	
	display: none;
}

#bookotherbooks img {
	display: inline-block;
	position: relative;
	vertical-align: top;
	width: 18%;
	height: auto;
	margin-right: .75%;
	margin-left: .75%;
	margin-bottom: 11px;	 
}

span.bookseries li,
span.bookgenre li,
span.booktrope li {
	display: inline;	
}

span.bookgenre li:after,
span.bookseries li:after {
	content: ', ';
}

span.bookgenre li:last-child:after,
span.booktrope li:last-child:after,
span.bookseries li:last-child:after {
	content: '';
}

#bookpageright span#standalones.bookseries {	
	display: none;
}

@media only screen and (max-width: 1040px) {
	#bookotherbooks img {
	    margin-bottom: 9px;
	}
	
	#bookotherbooks {
    	margin-bottom: 15px; 
	}
}

@media only screen and (max-width: 991px) {
	#bookotherbooks img {
	    width: 31.3%;
	    margin-right: .8%;
		margin-left: .8%;
	}

	#bookotherbooks {
	    width: 106.5%;
	}
}

@media only screen and (max-width: 780px) {
	#bookotherbooks img {
	    margin-bottom: 7px;
	}
}

@media only screen and (max-width: 767px) {
	#bookpageleft, 
	#bookpageright {
		display: block;
		width: 100%;
		padding-right: 0px;
	    margin-right: 0px;	
	}

	#bookpageleft {
		margin-bottom: 20px;
	}

	#bookotherbooks {
	    margin-bottom: 35px;
		width: 100%;
	}

	body.single-books .entry-content-wrap{
	    padding: 8px;
	}
	
	#allbookscontainer {
	    width: 100%;
	    margin-left: 0%;
	}
	
	#bookotherbooks img {
	    width: 31.3%;
	    margin-right: 1.7%;
	    margin-bottom: 11px;
	}
}

@media only screen and (max-width: 500px) {
	#bookotherbooks {
   	 	width: 100%;
	}
	
	#bookotherbooks img {
	    width: 46%;
	    margin-right: 2%;
		margin-left: 2%;
	    margin-bottom: 16px;
	}
	
	h4.booksheader,
	h4.linksheader {
		font-size: 30px;
	}
}	

@media only screen and (max-width: 420px) {
	#bookotherbooks img {
	    margin-bottom: 13px;
	}
}	

@media only screen and (max-width: 380px) {
	#bookotherbooks img {
	    margin-bottom: 12px;
	}
}		


/* Upcoming Releases Page
---------------------------------------------------------------------------- */

#bookgrid.upcomingreleases { 
	margin-bottom: 0px; 
	margin-top: 2em;
	text-align: center;
}

#bookgrid.upcomingreleases #bookentry {
	text-align: center;
}

#bookgrid.upcomingreleases #bookentry img {
	margin-bottom: 10px;
}


/* Translations Books Page
---------------------------------------------------------------------------- */

#countriesgrid {
	display: block; 
	position: relative;	
	margin-bottom: 0px;
	margin-top: 30px;
	width: 1200px;
	max-width: 100%;
	text-align: center;
}

#country {
	display: inline-block; 
	position: relative;
	vertical-align: top;
	width: 22%;
	margin-left: 1.5%;
	margin-right: 1.5%;
}

#country img {
	width: 100%;
	height: auto;
}

@media only screen and (max-width: 800px) {
	#country {
		width: 44%;
	}
}
@media only screen and (max-width: 500px) {
	#country {
		width: 100%;
		margin: 0 auto;
		padding: 20px 10px;
	}
}

/* Individual Country Pages
---------------------------------------------------------------------------- */

body.tax-country .archive-description::before {
	background-color: transparent;
}

body.tax-country .archive-description h1 {
	text-align: center;
    -webkit-font-smoothing: antialiased;
    text-transform: none;
}

#bookgrid.countryarchive { 
	padding-top: 20px; 
	margin-bottom: 0px; 
}

#bookgrid.countryarchive #bookentry {
	margin-bottom: 20px;
}

#bookgrid.countryarchive #bookentry img {
	margin-bottom: 0px;
}

/* Books by Trope
---------------------------------------------------------------------------- */

.single-content ul#filters {
	padding-left: 0px;
}

#filters {
    list-style: none;
    text-align: center; 
    margin-top: 30px;
    margin-bottom: 30px;
}

#filters li {
    display: inline-block;
    vertical-align: top;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 15px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

#filters li a {
	color: #333;
	padding: 5px;
}

#filters li a:hover {
	color: #333;
	text-decoration-line: underline;
	text-decoration-thickness: 5px;
	text-decoration-color: #F2D7D6;
	padding: 5px;
}

.bookbytrope { 
	display:inline-block; 
	vertical-align: top;  
	width: 21%;
    margin-left: 2%;
    margin-right: 2%;  
	margin-bottom: 49px; 
	padding: 0px;   
}

.bookbytrope img { 
	width: 100%;
	background-size:100% 100%!important; 
}

@media only screen and (max-width: 590px) {
	.bookbytrope { 
	display:inline-block; 
	vertical-align: top;  
	width: 46%;
    margin-left: 2%;
    margin-right: 2%;  
	margin-bottom: 49px; 
	padding: 0px;   
}
}


/* Bonus Content
---------------------------------------------------------------------------- */

#bookbonuscontent p {
	background: #FFF2C5;
	padding: 5px 5px 5px 10px;
	border-left: 5px solid #258AEA;
}


/* Book Specific CSS
---------------------------------------------------------------------------- */

h1#singlebooktitle,
h1#pagetitle,
body.tax-country .archive-description h1 {
	text-align: center;
    -webkit-font-smoothing: antialiased;
    text-transform: none;
	font-size: 60px;
}

#booksoundcloud h4,
#bookyoutube h4,
#bookspotify h4,
#foreign-editions h4,
#eserial-editions h4,
#computer-wallpapers h4,
#storelinks h4 {
    margin: 10px auto;
}

#storelinks {
	margin-top: 20px;
	margin-bottom: 20px;
	text-align: center;
}

#eserialedition,
#foreignedition {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 21%;
    margin-right: 1.5%;
	  margin-left: 1.5%;
    margin-bottom: 1.5%;
}

#computerwallpaper {
	position: relative;
    display: inline-block;
    vertical-align: top;
    width: 29%;
    margin-right: 1.5%;
	  margin-left: 1.5%;
    margin-bottom: 1.5%;
}

#countryname,
#booknumber, 
#eserialpart {
	font-size: .85rem;
	text-align: center;
	margin: 0 auto;
}

@media only screen and (max-width: 800px) {
	#computerwallpaper,
	#foreignedition,
	#eserialedition { 
    width: 43%;
    margin-right: 3.25%;
		margin-left: 3.25%;
		margin-bottom: 3.25%;
	}
}

@media only screen and (max-width: 590px) {
	#computerwallpaper,
	#foreignedition,
	#eserialedition { 
	  width: 100%;
	  margin-right: 0%;
		margin-left: 0%;
		margin-bottom: 5%;
	}
}

#bookgrid.seriesarchive {
	padding: 30px 0;
}

#bookgrid.seriesarchive #bookentry,
#allbookscontainer #bookentry,
#bookotherbooks img {
	  position: relative;
    display: inline-block;
    vertical-align: top;
    width: 13%;
    margin-right: 1.5%;
	  margin-left: 1.5%;
    margin-bottom: 40px;
}

@media only screen and (max-width: 800px) {
	#bookgrid.seriesarchive #bookentry,
	#allbookscontainer #bookentry,
	#bookotherbooks img { 
	  width: 26%;
	  margin-right: 3.25%;
		margin-left: 3.25%;
		margin-bottom: 16px;
	}
}

@media only screen and (max-width: 590px) {
	#bookgrid.seriesarchive #bookentry,
	#allbookscontainer #bookentry,
	#bookotherbooks img { 
	  width: 42%;
	  margin-right: 3.25%;
		margin-left: 3.25%;
		margin-bottom: 16px;
	}
}

#upcomingtitle {
	font-size: 2em;
}

h4#upcomingtitle {
	margin: 5px auto;
}

ul#upcomingseries {
	padding-left: 0;
}

.readingordertitle {
	text-align: center;
}

div.seriesdescription {
	text-align: center;
	margin: 0 auto;
}

.footer-widget-area .kb-form .kadence-blocks-form-field.kb-submit-field {
	margin-bottom: 16px;
}

h1#singlebooktitle,
h1#pagetitle,
body.tax-country .archive-description h1 {
	text-align: center;
    -webkit-font-smoothing: antialiased;
    text-transform: none;
	font-size: 60px;
}

.discreetsection {
	display: flex;
	flex-wrap: wrap;
	padding: 2rem;
	background: #f7f7f7;
}

.discreetsection > * {
    width: 100%;
    padding: 1rem;
}

img.discreetcover {
	display: inline-block;
	width: 100%;
	height: inherit;
	margin-bottom: 10px;
	box-shadow: 4px 2px 14px 0px rgba(0, 0, 0, 0.2);
}

/* tablet breakpoint */
@media (min-width:768px) {
    .discreetsection > * {
        width:calc(100% / 3);
    }
}