/* CSS Document */

@font-face {
	font-family: "Bree Serif";
	src: url(/publications/fonts/Bree_serif/BreeSerif-Regular.ttf);
}

@font-face {
	font-family: "Cormorant Garamond";
	src: url(/publications/fonts/Cormorant_Garamond/CormorantGaramond-Italic-VariableFont_wght.ttf);
	src: url(/publications/fonts/Cormorant_Garamond/CormorantGaramond-VariableFont_wght.ttf);
}

@font-face {
	font-family: "DM Serif Text";
	src: url(/publications/fonts/DM_Serif_Text/DMSerifText-Italic.ttf);
	src: url(/publications/fonts/DM_Serif_Text/DMSerifText-Regular.ttf);
}

@font-face {
	font-family: "Lavishly Yours";
	src: url(/publications/fonts/Lavishly_Yours/LavishlyYours-Regular.ttf);
}

@font-face {
	font-family: Tangerine;
	src: url(/publications/fonts/Tangerine/Tangerine-Bold.ttf);
	src: url(/publications/fonts/Tangerine/Tangerine-Regular.ttf);
}

@font-face {
	font-family: Kristi;
	src: url(/publications/fonts/Kristi-Regular.ttf);
}

@font-face {
	font-family: Lateef;
	src: url(/publications/fonts/arabic/Lateef/Lateef-Regular.ttf);
	src: url(/publications/fonts/arabic/Lateef/Lateef-Bold.ttf);
    src: url(/publications/fonts/arabic/Lateef/Lateef-Light.ttf);
}

@font-face {
	font-family: "Bona Nova SC";
	src: url(/publications/fonts/hebrew/Bona_Nova_SC/BonaNovaSC-Regular.ttf);
	src: url(/publications/fonts/hebrew/Bona_Nova_SC/BonaNovaSC-Bold.ttf);
	src: url(/publications/fonts/hebrew/Bona_Nova_SC/BonaNovaSC-Italic.ttf);
}

@font-face {
	font-family: "Libertinus Math";
	src: url(/publications/fonts/russian/LibertinusMath-Regular.ttf);
}

@font-face {
	font-family: "Sanskrit2003";
	src: url(/publications/fonts/sanskrit2003.ttf);
}

@font-face {
	font-family: Corinthia;
	src: url(/publications/fonts/Corinthia/Corinthia-Regular.ttf);
	src: url(/publications/fonts/Corinthia/Corinthia-Bold.ttf);
}

body {
	font-size:22px;
	line-height: 32px;
	margin: 0;
	padding: 0;
	word-wrap:break-word !important;
	/* font-family: 'Open Sans', sans-serif; */
	font-family: "Cormorant Garamond", serif;
	}

h1 {
	font-size: 60px;
	text-align: center;
	/** color: #FFF; **/
}	

h3 {
	font-size: 30px;
	line-height: 34px;
	text-align: center;
	color: #FFF;
}

h3 a {
	color: #FFF;
}

a {
	color: #FFF;
}

h1 {
	margin-top: 100px;
	text-align:center;
	font-size:60px;
	line-height: 70px;
	font-family: 'Bree Serif', 'serif';
	}

#container {
	margin: 0 auto;
	/* max-width: 890px; */
	max-width: 950px;
}

p {
	text-align: center;
}

.toggle,
[id^=drop] {
	display: none;
}

/* Giving a background-color to the nav container. */
nav { 
	margin:0;
	padding: 0;
	background-color: #254441;
	font-weight: bold; /* Added */
	text-transform: uppercase; /* Added */
}

#logo {
	display: block;
	padding: 0 30px;
	float: left;
	font-size:20px;
	line-height: 60px;
}

/* Since we'll have the "ul li" "float:left"
 * we need to add a clear after the container. */

nav:after {
	content:"";
	display:table;
	clear:both;
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
nav ul {
	float: left;
	padding:0;
	margin:0;
	list-style: none;
	position: relative;
	}
	
/* Positioning the navigation items inline */
nav ul li {
	margin: 0px;
	display:inline-block;
	float: left;
	background-color: #254441;
	}

/* Styling the links */
nav a {
	display:block;
	padding:14px 20px;	
	color:#FFF;
	/* font-size:17px; */
	font-size: 0.7em;
	text-decoration:none;
}


nav ul li ul li:hover { background: #000000; }

/* Background color change on Hover */
nav a:hover { 
	background-color: #000000; 
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav ul ul {
	display: none;
	position: absolute; 
	/* has to be the same number as the "line-height" of "nav a" */
	top: 60px; 
}
	
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display:inherit;
}
	
/* Fisrt Tier Dropdown */
nav ul ul li {
	width:170px;
	float:none;
	display:list-item;
	position: relative;
	/* background-color: rgb(191 191 191 / 100%); */
}

/* Second, Third and more Tiers	
 * We move the 2nd and 3rd etc tier dropdowns to the left
 * by the amount of the width of the first tier.
*/
nav ul ul ul li {
	position: relative;
	top:-60px;
	/* has to be the same number as the "width" of "nav ul ul li" */ 
	left:170px; 
}
	
/* Change ' +' in order to change the Dropdown symbol */
/* li > a:after { content:  ' +'; } */
/* li > a:only-child:after { content: ''; } */

/* Change ' ▾' in order to change the Dropdown symbol */
 nav li > a:after { content:  ' ▾'; } /* nav added */
 nav li > a:only-child:after { content: ''; } /* nav added */

/* Media Queries
--------------------------------------------- */

/** @media all and (max-width : 768px) { **/
@media all and (max-width : 950px) { /* from 950px */

	#logo {
		display: block;
		padding: 0;
		width: 100%;
		text-align: center;
		float: none;
	}

	nav {
		margin: 0;
	}

	/* Hide the navigation menu by default */
	/* Also hide the  */
	.toggle + a,
	.menu {
		display: none;
	}

	/* Stylinf the toggle label */
	.toggle {
		display: block;
		background-color: #254441;
		padding:14px 20px;	
		color:#FFF;
		font-size:17px;
		text-decoration:none;
		border:none;
	}

	.toggle:hover {
		background-color: #000000;
	}

	/* Display Dropdown when clicked on Parent Lable */
	[id^=drop]:checked + ul {
		display: block;
	}

	/* Change menu item's width to 100% */
	nav ul li {
		display: block;
		width: 100%;
		}

	nav ul ul .toggle,
	nav ul ul a {
		padding: 0 40px;
	}

	nav ul ul ul a {
		padding: 0 80px;
	}

	nav a:hover,
 	nav ul ul ul a {
		background-color: #000000;
	}
  
	nav ul li ul li .toggle,
	nav ul ul a,
  nav ul ul ul a{
		padding:14px 20px;	
		color:#FFF;
		font-size:17px; 
	}
  
  
	nav ul li ul li .toggle,
	nav ul ul a {
		background-color: #212121;
	}

	/* Hide Dropdowns by Default */
	nav ul ul {
		float: none;
		position:static;
		color: #ffffff;
		/* has to be the same number as the "line-height" of "nav a" */
	}
		
	/* Hide menus on hover */
	nav ul ul li:hover > ul,
	nav ul li:hover > ul {
		display: none;
	}
		
	/* Fisrt Tier Dropdown */
	nav ul ul li {
		display: block;
		width: 100%;
	}

	nav ul ul ul li {
		position: static;
		/* has to be the same number as the "width" of "nav ul ul li" */ 
	}

}

/** @media all and (max-width : 700px) { **/
@media all and (max-width : 330px) {
	
	nav ul li {
		display:block;
		width: 94%;
	}

}

header#main_site {
   margin: 0 auto;
   /* max-width: 890px; */
   max-width: 950px;
   background-color: rgb(220, 220, 220);
}

header#main_site h1 {
	font-family: "Lavishly Yours";
	/** font-size: 100px; **/
	font-size: 3em;
	line-height: 200%;
	margin: 0px;
}

header#main_site h1 a {
	color: black;
	text-decoration: none;
}

header#main_site h1 a:hover {
	color: red;
}

header#main_site p.motto {
	padding-left: 30px;
	text-align: left;
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: bold;
}

.motto_highlight {
	background-color: white;
	color: blue;
	padding: 4px 8px;
	text-align: center;
	border-radius: 5px;
}

header#main_site p.quote {
   margin-bottom: 0px;
   margin-top: 0px;
   padding-bottom: 20px;
   padding-right: 50px;
   font-family: Tangerine;
   font-size: 1.6em;
   text-align: right;
}

.quote_badge {
  font-family: "DM Seif Text";
  font-size: 0.4em;
  background-color: red;
  color: white;
  padding: 4px 8px;
  text-align: center;
  border-radius: 5px;
}

/* Section */

section {
	/* border-bottom-style: solid; */
	margin: 0 auto;
	/* max-width: 890px; */
	max-width: 950px;
}

section > h2 {
   padding-left: 20px;
   padding-right: 20px;
   margin-bottom: 2px;
   font-family: "DM Serif Text";
   border-bottom-style: solid;
}

section > article > h3, .flex-container h3 {
	padding-left: 20px;
	padding-right: 20px;
	font-family:  "DM Serif Text";
	color: black;
	text-align: left;
}

section > p {
	text-align: initial;
	padding-left: 20px;
	padding-right: 20px;
}

section > article > p > a {
	color: black;
	text-decoration: none;
	background-color: rgb(180 180 180 / 80%);
	/* color: white; */
	padding: 4px 8px;
	text-align: center;
	border-radius: 5px;
}

section > article > p > a:hover {
	background-color: rgb(0 253 255);
}

section > article > p, section > article > ul {
  padding-left: 20px;
  padding-right: 20px;
  text-align: left;
  font-family: "Cormorant Garamond";
}

/* Languages */

.roman {
	font-family: "Cormorant Garamond";
}

.hebrew, h2.hebrew, h3.hebrew, .hebrew > p, .hebrew > ul > li > a {
	text-align: unset;
	direction: rtl;
	font-family: "Bona Nova SC";
}

.arabic, h2.arabic, h3.arabic, .arabic > p, .arabic > ul > li > a {
	text-align: unset;
	direction: rtl;
	font-family: Lateef;
	font-size: 1.4em;
	line-height: 1.4em;
}

.russian, h2.russian, h3.russian, .russian > p, .russian > ul > li > a, .russian > ol > li {
	font-family: "Libertinus Math";
}

.greek, h2.greek, h3.greek, .greek > p, .greek > ul > li > a {
	font-family: "Libertinus Math";
}

.sanskrit, h2.sanskrit, h3.sanskrit, .sanskrit > p, .sanskrit > ul > li > a {
	font-family: Sanskrit2003;
}

.wolof, h2.wolof, h3.wolof, .wolof > p, .wolof > ul > li > a {
	font-family: "Cormorant Garamond";
}

.long-verses {
	font-size: 0.8em;
}

/* DIV formatting */

section > article > div > ul {
	padding-inline-end: 40px;
}

section > article > div > ul.image_list > li  {
	list-style-type: none;
}

/* Back or Up button */

section p.move_up_button, section p.back_button  {
	padding-left: 20px;
	padding-right: 20px;
	text-align: right;
	margin-top: 2px;
}

section p.move_up_button a, section p.back_button a  {
	color: black;
	font-weight: bold;
	text-decoration: none;
}

section p.move_up_button a:hover, section p.back_button a:hover {
	background-color: gray;
	color: white;
	padding: 4px 8px;
	text-align: center;
	border-radius: 5px;
}

section p.move_up_button_rtl, section p.back_button_rtl  { /* See priyapatni for back button */
	padding-left: 20px;
	padding-right: 20px;
	text-align: left;
	margin-top: 2px;
}

section p.move_up_button_rtl a, section p.back_button_rtl a  {
	color: black;
	font-weight: bold;
	text-decoration: none;
}

section p.move_up_button_rtl a:hover, section p.back_button_rtl a:hover {
	background-color: gray;
	color: white;
	padding: 4px 8px;
	text-align: center;
	border-radius: 5px;
}

/* Prose or poetry */

section > article > p.prose, section > article.prose > p, section > article.prose > blockquote > ol > li, section > article.prose > ul > li {
	text-align: justify;
	text-justify: none;
	hyphens: auto;
}

section > article > p.poetry {
	text-align: initial;
}

section > article > aside > p, section > article > aside > h3, section > article > aside > i  {
	text-align: left;
	padding-left: 60px;
	font-style: italic;
}

/* Aside */

section > article > aside {
	padding-left: 20px;
	padding-right: 20px;
}

section > article > aside > h3 {
	color: black;
}

section > article > aside > i {
	font-family: Tangerine;
	font-size: 1.2em;
}

/* Quotes */

section > article > blockquote { /** removed: , section > article > blockquote > p **/
	border-left: solid thin rgb(220, 200, 220);
}

section > article > blockquote.hachiko {
	padding-right: 20px;
	margin-left: 65px;
	font-style: italic;
}

section > article > blockquote > p {
	padding-left: 10px;
	padding-right: 10px;
	text-align: left;
}

/* Poem line indentation */

p.indentation-before {
	margin-bottom: 0px;
	padding-bottom: 0px;
}

p.indentation {
	font-style: italic;
	margin-left: 40px;
	margin-top: 0px;
	margin-bottom: 0px;
	padding-top: 0px;
	padding-bottom: 0px;
}

p.indentation-after {
	margin-top: 0px;
	padding-top: 0px;
}

/* Listings */

#poem_listing, #language_listing {
	font-family: serif;
}

/** #poem_listing > article > ul, #language_listing > article > ul, #translation_listing > article > ul, #poem_listing > article > ol > li { **/
#language_listing > article > ul, #highlights > article > ul {
	margin-left: 20px;	
}

#poem_listing > article > ul > li, #language_listing > article > ul > li, #translation_listing > article > ul > li, #translation_listing > article > ol > li, #poem_listing > article > ol > li {
    padding-bottom: 5px;
	color: black;
	text-decoration: none;	
}

#highlights > article > ul > li {
	padding-bottom: 10px;
	color: black;
	text-decoration: none;
	line-height: 2em;
}

#poem_listing > article > ul > li > a, #language_listing > article > ul > li > a, #translation_listing > article > ul > li > a, #translation_listing > article > ol > li > a, #highlights > article > ul > li > a, #poem_listing > article > ol > li > a {
	color: black;
	text-decoration: none;
}

#poem_listing > article > ul > li > a:hover, #language_listing > article > ul > li > a:hover, #translation_listing > article > ul > li > a:hover, #translation_listing > article > ol > li > a:hover, #highlights > article > ul > li > a:hover, #poem_listing > article > ol > li a:hover {
	background-color: gray;
	color: white;
	padding: 4px 8px;
	text-align: center;
	border-radius: 5px;
}

section > article > ol {
	margin-left: 20px;
}

span.list-item-name {
	font-weight: bold;
}

/* Date and signature */

#date_signature {
	padding-left: 20px;
	padding-right: 20px;
	text-align: right;
	font-family: serif;
	font-style: italic;
	font-size: 0.8em;
}

#date_signature_rtl {
	padding-left: 20px;
	padding-right: 20px;
	text-align: left;
	font-family: serif;
	font-style: italic;
	font-size: 0.8em;
}

span#signature {
	font-family: Kristi;
	font-size: 1.2em;
	letter-spacing: 4px;
	font-stretch: expanded;
	color: rgb(90 90 90 / 50%)
}

/* Footer */

footer.universal {
	margin: 0 auto;
	/* max-width: 890px; */
	max-width: 950px;
	border-top: solid;
	border-top-color: gray; 
}

footer.universal p {
	padding-left: 20px;
	font-family: serif;
	font-size: 0.8em;
	font-style: italic;
	text-align: left;
}

/* Animation */

img.imenigma {
	max-width: 100%;
	height: auto;
}
.imenigma {
	opacity: 0.05;
	transition: opacity 2s ease-in;
}

.imenigma:hover {
	opacity: 1;
}

/* Flex responsive - Text and pictures aligned */

.multi-column * {
  box-sizing: border-box;
  text-align: initial;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
}

.flex-item-left {
  padding: 20px;
  flex: 50%;
}

.flex-item-right {
  padding: 20px;
  flex: 50%;
}

/* Responsive layout - makes a one column-layout instead of a two-column layout */
@media (max-width: 650px) { /** Was 850px **/
  .flex-item-right, .flex-item-left {
	flex: 100%;
  }
}

/* Responsive image */

.flex-container > div > img {
   max-width: 100%;
   height: auto;
}

/* Home introduction */

#manifesto > p {
	background-color: #e6e6e6;
	font-family: "Times New Roman";
	font-size: 0.8em;
	font-style: regular;
	border: double gray;
	border-radius: 5px;
	margin-top: 0px;
	padding: 10px;
}

#welcome p {
	font-size: 0.9em;
	padding-top:0px;
	padding-left:10px;
	padding-right: 10px;
}

#welcome > h3 {
	font-family: Tangerine;
	font-size: 1.5em;
	color: gray;
	margin-top: 0px;
	margin-bottom: 20px;
	padding-left: 10px;
	padding-right: 10px;
	border-bottom: solid thin gray;
}
