/* Global Propertise */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

*:not(input):not(textarea) {
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: none;
  -webkit-user-select: none;
  -ms-touch-callout: none;
  -ms-user-select: none;
  -ms-text-size-adjust: none;
  -moz-touch-callout: none;
  -moz-user-select: none;
  -moz-text-size-adjust: none;
  user-select: none;
}

body {
	font-family: "Vollkorn", "Georgia", "Times New Roman", serif;
	font-size: 16px;
	text-align: justify;
	background: #3e4444;
	color: black;
}

.hide {
	display: none;
}

li {
	list-style: none;
}

h1, h2, h3 {
	font-family: "Milonga", "Georgia", "Times New Roman",  serif;
}

a {
	color: #405d27;
}



form {
	font-family: "Signika", "Helvetica", "Arial", sans-serif;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 10px 30px;
	background-color: #3e4444;
	position: fixed;
	top: 0;
	z-index: 99;
	height: 70px;
}

header ul {
	display: flex;
	justify-content: space-between;
	width: 100%;
}

header li.center {
	flex-grow: 1;
	text-align: center;
}

#home-page header .center {
	display: none;
}

#front-page header .center {
	display: none;
}

#content-page header .left,
#content-page header .right {
	display: none;
}

header a {
	color: white;
	text-decoration: none;
	letter-spacing: 0.1em;
	font-size: 1.5em;
	white-space: nowrap;
}

header a:hover {
	color: #82b74b;
}

header span {
	color: #82b74b
}


main {
	margin-top: 70px;
	background-image: url('/static/images/background.jpg');
	background-size: cover;
	background-position: bottom left;
	background-attachment: fixed;
}

#book-list {
	background-size: cover;
	background-position: top center;
}

#book-list ul {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: space-around;
	padding: 15px;
}

#book-list li {
    width: 320px;
    height: 500px;
	background-image: url('/static/images/chapter.jpg');
	background-size: cover;
	background-position: bottom right;
	border: 1px solid #3e4444;
	border-radius: 15px;
	margin: 10px;
	position: relative;
	padding-top: 60px;
	padding-bottom: 40px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	font-size: 1.5em;
}

#book-list li.inactive {
	filter: grayscale(100%);
	cursor: default;
}

#book-list li.inactive a {
	display: none;
}

#book-list li h3 {
	width: 100%;
	padding: 10px 10px;
	font-size: 1.5em;
	background: rgba(255,255,255,0.7);
	text-align: center;
	text-shadow: 0px 0px 1px white;
}
#book-list li p {
	font-size: 0.7em;
	text-shadow: 0px 0px 1px white;
	padding: 10px 15px;
	background: rgba(255,255,255,0.7);
}

#book-list li a {
	background-color: white;
	color: white;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.5s ease;
}

#book-list li:not(.inactive):hover a {
	opacity: 0.2;
}


#banner {
	position: relative;
	background-size: cover;
	background-position: top right;
	height: 600px;
}

#banner h1 {
	background: rgba(0,0,0,0.5);
	padding: 20px;
	position: absolute;
	width: 100%;
	top: 70px;
	text-align: center;
	color: white;
	text-shadow: 0px 0px 10px black;
	font-size: 3em;
	user-select: none;
}

#landing {
	background-size: cover;
	background-position: top center;
	display: flex;
	height: 600px;
	justify-content: center;
	align-items: center;
}

#landing a {
	font-size: 1.5em;
	border-radius: 10px;
	color: #e6e2d3;
	background: #405d27;
	border: 1px solid #3e4444;
	padding: 15px 20px 10px 20px;
	transition: all 0.3s ease;
	text-decoration: none;
}

#landing a:hover {
	color: #3e4444;
	background: white;
	border: 1px solid #3e4444;
}

/* Summary Page Body */

#front-page .container {
	padding: 30px;
}

#front-page .container:last-child {
	padding-bottom: 0;
}

#front-page .container h3 {
	margin-bottom: 15px;
	font-size: 1.7em;
}

#front-page .container figure {
	text-align: center;
	margin-bottom: 15px;
}

#front-page .container p {
	padding-bottom: 15px;
}

#summary {
	display: flex;
	flex-direction: column;
	color: black;
	background: #e6e2d3;
}

#summary h5 {
	padding: 15px 0;
	font-size: 1.2em;
}

#summary h5:first-letter {
	float: left;
	font-size: 2.5em;
	line-height: 0.5em;
	margin-top: 15px;
	margin-right: 10px;
	font-family: "Milonga", "Georgia", "Times New Roman",  serif;
}

#foreword {
	background: #e6e2d3;
}

#foreword figure img {
	width: 60vw;
	max-width: 300px;
	border-radius: 5%;
	border: 1px solid #3e4444;
	box-shadow: 0px 0px 5px black;
}

#foreword p {
	text-shadow: 0px 0px 1px white ;
	font-size: 1.2em;
}

#foreword br {
	display: block;
	margin-bottom: 10px;
	content: " ";
}


#author {
	padding-bottom: 15px;
}

#author figure img {
	width: 60vw;
	max-width: 300px;
	border-radius: 5%;
	border: 1px solid #3e4444;
	box-shadow: 0px 0px 5px black;
}

#author p {
	font-size: 1.2em;
}

#author br {
	display: block;
	margin-bottom: 10px;
	content: " ";
}



/* Content Page Body */

#chapter-list {
	padding: 15px;
}

#chapter-list ul {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: space-evenly;
}

#chapter-list li {
	width: 90vw;
	height: 90vw;
	background-image: url('/static/images/chapter.jpg');
	background-size: cover;
	background-position: bottom left;
	border: 1px solid #3e4444;
	border-radius: 15px;
	margin: 10px;
	padding: 30px 0;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	font-size: 1.5em;
}

#chapter-list li.inactive {
	filter: grayscale(100%);
	cursor: default;
}

#chapter-list li.inactive a {
	display: none;
}

#chapter-list li h3 {
	width: 100%;
	padding: 10px 0;
	font-size: 1em;
	background: rgba(255,255,255,0.7);
	text-align: center;
	text-shadow: 0px 0px 1px white;
}

#chapter-list li p {
	font-size: 0.8em;
	text-shadow: 0px 0px 1px white;
	padding: 10px 15px;
	background: rgba(255,255,255,0.7);
}

#chapter-list li a {
	background-color: white;
	color: white;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.3s ease;
}

#chapter-list li:not(.inactive):hover a {
	opacity: 0.2;
}

/* Chapter Page Body */

#chapter-content {
	background-image: url('/static/images/background.jpg');
	background-size: cover;
	background-position: bottom left;
	background-attachment: fixed;
}

#chapter-content article {
	margin: 0;
	padding: 30px;
	background-color: rgba(255,255,255,0.8);
}

#chapter-content h3 {
	font-size: 1.5em;
	margin-bottom: 15px;
	text-align: left;
}

#chapter-content .dropcap {
	float: left;
	width: 100px;
	margin: -5px 10px -10px -10px;
}

#chapter-content p {
	font-size: 1.2em;
	margin-top: 10px;
}

#chapter-content p:first-of-type:first-letter {
	float: left;
	font-size: 4em;
	line-height: 0.5em;
	margin-top: 25px;
	margin-right: 15px;
	font-family: "Milonga", "Georgia", "Times New Roman",  serif;
}

#chapter-content p mark {
	position: relative;
	background: none;
	white-space: nowrap;
}

#chapter-content p mark .underline{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 5px;
	border-bottom: 1px dashed #3e4444;
	opacity: 0.5;
}

#chapter-content p mark.enabled:hover {
	color: #82b74b;
	cursor: pointer;
}

#chapter-content p mark.active {
	color: #82b74b;
	cursor: pointer;
}

#chapter-content p span.highlight {
	background: lightyellow;
}

#chapter-content .quote {
	margin-left: 15px ;
	font-style: italic;
	letter-spacing: 0.5px;
}

#chapter-content ul {
	margin-top: 30px;
	display: flex;
	justify-content: space-between;
}

#chapter-content a {
	font-size: 1.2em;
	border-radius: 10px;
	color: #e6e2d3;
	background: #405d27;
	border: 1px solid #3e4444;
	padding: 10px 10px 5px 5px;
	transition: all 0.3s ease;
	text-decoration: none;
}

#chapter-content a:hover {
	color: #3e4444;
	background: white;
	border: 1px solid #3e4444;
}

#chapter-content a.prev {
	padding-left: 10px;
	padding-right: 15px;
	white-space: nowrap;
}

#chapter-content a.next {
	padding-left: 15px;
	padding-right: 10px;
	white-space: nowrap;
}

#chapter-content a.next:after {
	content: '\276F';
	margin-left: 10px;
}

#chapter-content a.prev:before {
	content: '\276E';
	margin-right: 10px;
}

#definition {
	display: none;
	position: absolute;
	color: #3e4444;
	background: #e6e2d3;
	border: solid 1px #3e4444;
	border-radius: 5px;
	padding: 8px 6px 6px 10px;
	width: 250px;
	text-align: left;
}

#definition .headword {
	color: black;
	font-weight: bold;
	white-space: nowrap;
	margin-right: 10px;
	margin-bottom: 10px;
}

#definition .spelling {
	font-family: sans-serif;
	font-size: 0.9em;
	white-space: nowrap;
}

#definition .posgram {
	font-style: italic;
	letter-spacing: 0.05em;
}

#definition .audio {
	position: absolute;
	right: 5px;
	bottom: 5px;
	opacity: 0.7;
	background-image: url('/static/images/buttons.png');
	background-repeat: no-repeat;
	background-position: -84px 0;
	height: 24px;
	width: 24px;
	z-index: 9;
	cursor: pointer;
}

#definition .audio:hover {
	opacity: 1;
}

/* Page Footer */

footer {
	background-color: #3e4444;
	color: darkgray;
	text-align: center;
	padding: 15px 0;
	text-shadow: 0px 0px 1px black;
}

footer a {
	font-family: inherit; 
	color: darkgray;
	text-decoration: none;
}

footer a:hover {
	color: #82b74b;
}

/* For widescreen browser */
@media only screen and (min-width: 750px) {

	#content-page header .left,
	#home-page header .center,
	#front-page header .center,
	#content-page header .right {
		display: inline-block;
	}

	#banner h1 {
		font-size: 4em;
		padding: 40px;
		top: 100px;
	}

	#summary h5 {
		font-size: 1.5em;
	}

	#summary h5:first-letter {
		margin-top: 20px;
	}

	#front-page .container h3 {
		margin-bottom: 15px;
		font-size: 2em;
	}

	#foreword, #author {
		font-size: 1.1em;
		overflow: auto;
	}

	#foreword figure img{
		float: right;
		margin: 0 0 15px 30px;
	}

	#author figure img{
		float: left;
		margin: 0 30px 30px 0;
	}

	#chapter-list {
		padding: 45px;
	}

	#chapter-list li {
		background-image: url('/static/images/chapter.jpg');
		width: 310px;
		height: 310px;
	}

	#chapter-content {
		padding: 10px 0px;
	}

	#chapter-content .quote {
		margin-left: 30px;
	}

	#chapter-content article {
		margin: 15px 30px;
		background-color: rgba(255,255,255,0.5);
		border-radius: 30px;
	}

}


/* For screen bigger than 1000px */

@media only screen and (min-width: 1250px) {

	#front-page .container {
		padding: 30px 160px;
	}

	#chapter-content {
		padding: 10px 160px;
	}

}

/* For screen bigger than 1250px */

@media only screen and (min-width: 1750px) {

	#front-page .container {
		padding: 30px 320px;
	}

	#chapter-content {
		padding: 10px 320px;
	}

}

@keyframes animation {
	0% {
		box-shadow: 0px 0px 1px darkorange;
		opacity: 0;
	}
	70% {
		box-shadow: 0px 0px 30px darkorange;
		opacity: 1;
	}
	90%, 100% {
		box-shadow: 0px 0px 50px darkorange;
		opacity: 0;
	}
}



