
	/* Kollidle_epub.css: файл стилей для конвертирования книг из .fb2 в .epub */
	/* Редактор: mergen3107 на форумах the-ebook.org, mobileread.com */
	/* Целевое устройство: Nook Glowlight Plus */
	/* Конвертер на момент написания: fb2mobi_64, v3.6.22 (http://www.the-ebook.org/forum/viewtopic.php?t=30380) */
	/* Благодарности за конвертер: rupor, dnk_dz */
	/* Источники вдохновения для css: */
	/* 1) Online Documentation: https://www.w3schools.com/css/ */
	/* 2) Calibri - testing tool; */
	/* 2) Useful tips for epub/epub3/Kindle conversion: https://friendsofepub.github.io/eBookTricks/ */
	/* 3) User-developer forum: https://stackoverflow.com/documentation/css/topics */
	
/* Control HTML5 elements in older Reader Mobile SDK */
/* article, aside, figure, figcaption, footer, header, main, nav, section { display: block; } */

/* Размеры заголовков */
h0 { /* font-size: 100%; Название книги, автор */}
h1 { /* font-size: 130%; Заголовок-1	(Часть)	{Книга} [Глава] */}
h2 { /* font-size: 120%; Заголовок-2 	(Книга) {Глава}	[-] 	*/}
h3 { /* font-size: 110%; Заголовок-3	(Глава) {-}		[-] 	*/}
h4, h5, h6 {font-size: 100%; /* Уровени еще ниже*/}

h1, h2, h3, h4, h5, h6, .title, .title1, .title2, .title3, .title4, .title5, .subtitle {
	font-weight: bold;
	text-align: center;
	margin-top: 0;
	margin-bottom: 0;
	page-break-before:avoid;
	page-break-after:avoid;
/* Остальное оформление всех заголовков */}

.titleblock, .titleblock_nobreak {
	margin-top: 0;
	margin-bottom: 0;
	text-align: center;
	page-break-before: always;
/*Эти два блока объединены: все главы и подглавы начинаются с новой страницы*/ }

.titlenotes {
	text-indent: 0;
	text-align: center;
	font-size: 100%;
	font-weight: bold;
	font-style: italic;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

.titlenotes p { text-indent: 0; text-align: center; }

.indent0, indent1, indent2, indent3, indent4, indent5, indent6 { text-align: left; }
.indent0 { margin-left:		  0; }
.indent1 { margin-left: 	 5%; }
.indent2 { margin-left: 	10%; }
.indent3 { margin-left: 	15%; }
.indent4, .indent5, .indent6  { margin-left: 20%; }

sup, .anchor, .linkanchor, .inlineanchor, .blockanchor {
	font-size: 0.5rem;
	vertical-align: 50%;
	line-height: 1.2em;
}

.anchor sup, .linkanchor sup, .inlineanchor sup, .blockanchor sup {
	vertical-align: baseline !important;
	font-size: 0.5rem !important;
}

sub {
	font-size: 0.5rem;
	vertical-align: -40%;
	line-height: 1.2em;
}

.emphasis  { font-style: italic; }
.emptyline { margin-top: 0.5em; }
.strong    { font-weight: bold; }
.strike    { text-decoration: line-through; }

.epigraph {
	text-align: right;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	margin-left: 10%;
	margin-right: 0;
	font-style: italic;
	display: inline-block;
}

.text-author { text-align: right; font-weight: bold; }
p.subtitle { text-indent: 0em; }

.subtitle {
	page-break-after: avoid;
	text-align: center;
	font-weight: bold;
	margin-top: 0;
	margin-bottom: 0;
}

p { margin-top: 0; margin-bottom: 0; text-align: justify; /* Обыкновенный абзац */ }

p.title {
	text-indent: 0;
	text-align: center;
	margin-top: 0;
	margin-bottom: 0;
/* p.title - это если тэг называется <p class="title" ...> */}

p.floatnote {
	text-indent: 0;
	text-align: justify;
	margin-bottom: 0.5em;
	margin-left: 2.35em;
/* p.floatnote - это если тэг называется <p class="floatnote" ...> */}

.cite, .ul, .ol { text-indent: 0; margin-top: 0.5em; margin-bottom: 0.5em; }
/* margin-left: 2.35em; .ul and .ol are unordered and ordered lists respectively*/ 
cite { font-style: italic; margin-left: 2.35em;}

.cite p, .ul p, .ol p { text-indent: 0; text-align: justify; margin-left: 0; /* .cite p - это если <div class="cite" ...> содержит <p> */}
.image { text-indent: 0; text-align: center; }
.image img { text-align: center; }
img { text-align: center; }

.poem {
	text-align: left;
	text-indent: 0;
	margin-top: 0.5em;
	margin-bottom: 0;
	margin-right: 0;
	/* margin-left: 2.35em; */
	font-style: italic;
}

.stanza { margin-bottom: 0.5em; }

.poem p {
	text-align: left;
	text-indent: 0;
	margin-top: 0;
	margin-bottom: 0;
	margin-right: 0;
	margin-left: 0;
/* .poem p - это если <div class="poem" ...> содержит <p>*/}

.table { width: 100%; border-collapse: collapse; }
.table, .table th, .table td { border: 1px solid black; }

.code { 
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	margin-right: 0;
	margin-left: 2.35em; 
}

.inlineimage {}

.inlinenote { /* Примечание в тексте */
	font-size: 80%;
	vertical-align: 10%;
	/* Чтобы отцентрировать: 2*vertical-align(%) + font-size(%) = 100(%) */}

.blocknote {
	font-size: 80%;
	vertical-align: 10%;
	border-radius: 4px;
	padding: 2.5%;
	border: 1px solid;
}

.notenum {
	font-weight: bold;
	font-size: 0.5rem;
	vertical-align: 25%;	
}

.inlinenote::before { content: "{"; } 
.inlinenote::after { content: "}"; }
.annotation { margin-left: 1em; margin-right: 1em; font-size: 110%; }

span.dropcaps {/* Буквица */
	/* font-size: 260%; */
	/* float: left; */
	/* margin-top: -0.175em; */
	/* margin-bottom: -0.5em; */
	/* padding-right: 0.15em; */
	display: inline-block;
	font-weight: bold;
	/* margin-top: 0; */
	/* margin-bottom: -2em; */
	margin-left: -1em;
	margin-right:0;
	font-size: 2em;
	line-height: 1rem;
	/* span.dropcaps - это если тэг называется <span class="dropcaps" ...> */}
	/* font-size*margin-left = -(text-indent) абзаца с буквицей (p.dropcaps ниже),
	тогда красная строка, которая в абзаце без буквицы или с ней, будет одинаковая. */

p.dropcaps {
	text-indent: 2em;
	text-align: justify;
	/* Абзац с буквицей, если есть; p.dropcaps - это если тэг называется <p class="dropcaps" ...> */}

.vignette_title_before, .vignette_title_after, .vignette_chapter_end {
	text-indent: 0;
	text-align: center;
	margin-top: 1em;
	margin-bottom: 1em;
}

.chapter_end {
    page-break-before: avoid;
    page-break-inside: avoid;
    page-break-after: avoid;
	display: none;
}