/* background color is grey */

body {
background-color:#efefef; /* SET AUTOMATICALLY */
}

@page {
size:5.8in 8.3in; /* Paper size for print */
}

/* size of pages: A5 */

.pagination-page {
height:8.3in; /* SET AUTOMATICALLY */
width:5.8in; /* SET AUTOMATICALLY */
}

/* height of pages when no CSS regions present: auto. Also add some padding. */

.pagination-page.pagination-simple {
padding: 1in; /* SET AUTOMATICALLY */
}

/* Every .page contains various elements (.contents, .header, .pagenumber) that together make out the page. The elements are placed with absolute coordinates in relation to the page and are, if not specified otherwise, centered. Pages have white background color */

.pagination-page {
background-color:#fff; /* SET AUTOMATICALLY */
}

/* When showing the page on the screen, put a border around the page and add a little margin beween the pages. */

@media screen{
.pagination-page {
border:solid 1px #000; /* SET AUTOMATICALLY */
margin-bottom:.2in; /* SET AUTOMATICALLY */
}
}

/* The .contents-container contains the .contents and the .footnotes */

.pagination-contents-container {
height:6.67in; /* SET AUTOMATICALLY */
width:4.03in; /* SET AUTOMATICALLY */
bottom:.8in; /* SET AUTOMATICALLY */
}



/* images should not overflow the contents box */

img {
max-height: 6.57in; /* SET AUTOMATICALLY */
max-width: 3.93in; /* SET AUTOMATICALLY */
}

.pagination-pagenumber {
margin-top:.2in; /* SET AUTOMATICALLY */
bottom:.4in; /* SET AUTOMATICALLY */
left:0; /* SET AUTOMATICALLY */
right:0; /* SET AUTOMATICALLY */
font-size:15px;
}

.pagination-header {
margin-bottom:.2in; /* SET AUTOMATICALLY */
top:.4in; /* SET AUTOMATICALLY */
left:0; /* SET AUTOMATICALLY */
right:0; /* SET AUTOMATICALLY */
font-size:13px;
}

/* Don't display section titles in the header on odd pages */
.pagination-page:nth-child(odd) .pagination-header .pagination-header-section {
display:none;
}

/* Don't display chapter titles in the header on even pages */
.pagination-page:nth-child(even) .pagination-header .pagination-header-chapter {
display:none;
}

/* Centering the page number on first pages of chapters */
.pagination-chapter .pagination-page:first-child .pagination-pagenumber {
text-align: center;
margin-left: auto;
margin-right: auto;
}


/* ELEMENTS OF THE TABLE OF CONTENTS */

/* The title text of the TOC */
#pagination-toc-title:before {
content:"Contents"; /* SET AUTOMATICALLY */
}

/* Styling of the TOC title */
#pagination-toc-title {
font-size:22px;
font-weight:700;
text-align:left;
padding-bottom:.4in;
}

/* Styling of individual toc entry */
.pagination-toc-entry {
width:4.2in;
display:block;
padding-bottom:.3in;
}

/* Page numbers of toc entries should float to the right and have normal font weight */
.pagination-toc-entry .pagination-toc-pagenumber {
font-weight:400;
display:inline-block;
vertical-align:text-bottom;
font-size:16px;
float:right; /* SET AUTOMATICALLY */
}

/* special styling for TOC entries that represent sections */
.pagination-toc-entry.section {
font-weight:700;
font-size:16px;
text-transform:uppercase;
padding-bottom:.3in;
}

/* Left and right page gutter */
.pagination-page:nth-child(odd) .pagination-contents-container {
right:.6in; /* SET AUTOMATICALLY */
}

.pagination-page:nth-child(even) .pagination-content-container {
left:.6in; /* SET AUTOMATICALLY */
}

/* Left and right page page numbers and headers */

.pagination-page:nth-child(odd) .pagination-pagenumber,.pagination-page:nth-child(odd) .pagination-header {
right:.6in; /* SET AUTOMATICALLY */
text-align:right; /* SET AUTOMATICALLY */
}

.pagination-page:nth-child(even) .pagination-pagenumber,.pagination-page:nth-child(even) .pagination-header {
left:.6in; /* SET AUTOMATICALLY */
text-align:left; /* SET AUTOMATICALLY */
}

/* No page number on section start pages and on title page */
.pagination-section .pagination-page:first-child .pagination-pagenumber,#pagination-frontmatter .pagination-page:first-child .pagination-pagenumber {
display:none;
}

/* No header on section and chapter start pages */
.pagination-section .pagination-page:first-child .pagination-header,.pagination-chapter .pagination-page:first-child .pagination-header {
display:none;
}


/* Styling of footnotes */

.pagination-footnote > * > * {
font-size: 0.7em; /* SET AUTOMATICALLY */
line-height: 1em;
margin:.25em; /* SET AUTOMATICALLY */
}

.pagination-footnote > * > *::before, .pagination-footnote::before {
position: relative; top: -0.5em; font-size: 80%; /* SET AUTOMATICALLY */
}

.pagination-footnote {
font-size:10px;
font-weight: bold;
}

/* If footnotes are present, a margin of .2in is added between .contents and .footnotes and a black line is drawn above the footnotes. */ 

.pagination-footnotes div.pagination-footnote-item:first-child {
padding-top: .5em;
border-top: 1px solid black;
}

/* Work-around to make section title pages no longer than one page */

.objavi-subsection-heading {
line-height:120px!important;
font-size:22px;
font-weight:700;
text-align:left;
display:none;
}

/* Custom CSS for elements that do not come directly out of body.html */

#booktitle {
margin-top:1.7in;
font-size:26px;
font-weight:700;
text-align:center;
}

#booksubtitle {
font-size:18px;
margin-top:.2in;
font-weight:700;
text-align:center;
}

#bookeditors {
padding-top:2in;
font-weight:700;
text-align:center;
font-size:12px;
}

/* General CSS for contents */

p {
font-size:15px;
line-height:20px;
text-align:justify;
}

h1 {
font-size:21px;
}

h2 {
font-size:19px;
}

h3 {
font-size:17px;
}
