/*Fonts*/
@font-face {
	font-family: CormorantGaramond;
	src: url(../fonts/Cormorant_Garamond/CormorantGaramond-Regular.ttf);
}

@font-face {
	font-family: CormorantGaramond;
	src: url(../fonts/Cormorant_Garamond/CormorantGaramond-SemiBold.ttf);
	font-weight: 600;
}

@font-face {
	font-family: CormorantGaramond;
	src: url(../fonts/Cormorant_Garamond/CormorantGaramond-Bold.ttf);
	font-weight: 700;
}

@font-face {
	font-family: Catamaran;
	src: url(../fonts/Catamaran/Catamaran-VariableFont_wght.ttf);
}

/*Variables*/
:root {
	/*Colors*/
	--sand: #DDC9B1;
	--ochre: #9D6436;
	--earth: #918C71;
	--ink: #000000;
	--white: #ffffff;
	--white25: rgba(255, 255, 255, .25);

	/*Additional Sand Shades for the "Bands of Time"*/
	--sand2: #C8B6A0;
	--sand3: #B1A28E;
	--sand4: #9B8D7C;

	/*Fonts*/
	--primaryFont: CormorantGaramond;
	--secondaryFont: Catamaran;
	--secondaryFont-spacing: 1.5px;
}


/*Foundation*/
body {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 0;
	line-height: 1.25;
	font-family: var(--primaryFont);
	font-size: 18px;
	color: var(--ink);
	background-color: var(--sand);
}

.bg-texture {
	height: 100%;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background-image: url(../img/texture.jpeg);
	background-size: cover;
	background-position: center;
	mix-blend-mode: lighten;
	opacity: .1;
}

p {
	margin-bottom: 10px;
}

a {
	color: var(--ink);
}

button {
	color: var(--ink);
}

h1,
h3 {
	font-weight: 600;
}

h1 {
	text-transform: uppercase;
	font-size: 3em;
	letter-spacing: 2px;
	line-height: 1;
}

h2 {
	font-size: 1.35em;
	font-weight: 400;
	margin-bottom: 25px;
}

h3 {
	font-size: 1.6em;
	letter-spacing: 1px;
}

h6 {
	margin-bottom: 25px;
}

blockquote {
	padding: 25px;
}

.underline {
	text-decoration: underline;
}

/*Book Plate Page*/
#title h3 {
	font-size: 1em;
}

.bookPlatePage {
	background-image: none;
	height: auto;
	max-height: 99vh;
	width: 100%;
	min-width: 300px;
	max-width: 700px;
	margin: 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	background-color: var(--white25);
	box-shadow: inset 0 0 99px var(--sand);
	padding: 50px 75px;
	box-sizing: border-box;
}

.decorative-underline {
	height: 1px;
	width: 80%;
	border-bottom: 1px solid var(--ink);
	margin: 25px 0;
	position: relative;
}

.decorative-underline::before {
	display: block;
	margin: auto;
	content: '';
	height: 15px;
	width: 15px;
	transform: rotate(45deg);
	background-color: var(--sand);
	border: 1px solid var(--ink);
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
}

.decorative-underline::after {
	display: block;
	margin: auto;
	content: '';
	height: 10px;
	width: 10px;
	transform: rotate(45deg);
	background-color: var(--ink);
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
}

.bookPlatePage h4,
.bookPlatePage h5,
.bookPlatePage a {
	font-size: 1.1em;
}

.bookPlatePage a, .bookplatePage div {
	margin-bottom: 3px;
}

.entry-btn {
	margin: 20px 0;
	height: 245px;
	width: 245px;
	background-image: url(../img/wdce-logo-no-text.png);
	background-size: cover;
	background-position: center;
	text-transform: uppercase;
	font-family: var(--secondaryFont);
	letter-spacing: var(--secondaryFont-spacing);
	font-weight: 600;
	font-size: .7em;
	position: relative;
	transition: all .4s;
}

.entry-btn::after {
	display: block;
	content: '';
	height: 80%;
	width: 80%;
	margin: auto;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 60%);
	opacity: .5;
	transition: all 1s;
}

.entry-btn:hover {
	letter-spacing: 3px;
}

.bookPlatePage .path {
	border-top: none;
	margin: 0 0 10px 0;
	padding: 0;
}

.bookPlatePage .path a {
	margin: 0;
}

.bookPlatePage div{
	margin-top: 15px;
}

#copyright {
	position: absolute;
	right: 30px;
	bottom: 30px;
	font-family: var(--secondaryFont);
	letter-spacing: var(--secondaryFont-spacing);
	font-size: .85em;
	margin-bottom: 0;
}


/*Navigator*/
#navigator {
	box-sizing: border-box;
	margin: auto;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	background-color: rgba(221, 201, 177, .9);
	padding: 15% 0;
	overflow: auto;
	display: none;
}

#mobile-menu {
	position: fixed;
	top: 0px;
	right: 0px;
	z-index: 999;
	height: 65px;
	width: 65px;
	background-color: rgba(255, 255, 255, .25);
	transform: rotate(45deg);
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: inset 0 0 30px var(--sand);
	transition: background-color .3s linear;
}

#mobile-menu span {
	transform: rotate(-45deg);
	margin-bottom: 0;
	text-transform: uppercase;
	font-family: var(--secondaryFont);
	letter-spacing: var(--secondaryFont-spacing);
	font-weight: 600;
	opacity: .8;
}

#mobile-menu::after {
	display: block;
	content: '';
	height: 80px;
	width: 80px;
	border: 3px solid var(--earth);
	position: absolute;
	opacity: .25;
	transition: opacity .3s linear;
}

#navigator div {
	display: flex;
	flex-direction: column;
}

#navigator button {
	margin-bottom: 10px;
}

#navigator button span {
	transform: rotate(-45deg);
	margin-bottom: 0;
	text-transform: uppercase;
	font-family: var(--secondaryFont);
	letter-spacing: var(--secondaryFont-spacing);
	color: var(--ink) !important;
	font-weight: 600;
	font-size: 1.5em;
	opacity: .8;
}


@media screen and (min-width: 768px) {
	#navigator {
		display: flex !important;
		max-width: 78vw;
		width: 78vw;
		background-color: transparent;
		flex-direction: row;
		top: auto;
		bottom: 4%;
		padding: 0;
		position: relative;
		margin-top: 50px;
		margin-bottom: 25px;
		overflow: visible;
		justify-content: space-between;
		align-items: center;
	}

	#mobile-menu {
		display: none;
	}

	#navigator div {
		flex-direction: row;
	}

	#navigator button {
		height: 75px;
		width: 75px;
		background-color: rgba(255, 255, 255, .25);
		transform: rotate(45deg);
		display: flex;
		justify-content: center;
		align-items: center;
		box-shadow: inset 0 0 30px var(--sand);
		position: relative;
		transition: background-color .3s linear;
		margin-bottom: 0;
	}

	#navigator button span {
		transform: rotate(-45deg);
		margin-bottom: 0;
		text-transform: uppercase;
		font-family: var(--secondaryFont);
		letter-spacing: var(--secondaryFont-spacing);
		font-weight: 600;
		opacity: .8;
		font-size: 1em;
	}

	#navigator button::after {
		display: block;
		content: '';
		height: 90px;
		width: 90px;
		border: 3px solid var(--earth);
		position: absolute;
		opacity: 0;
		transition: opacity .3s linear;
	}

	#navigator button:hover {
		background-color: rgba(255, 255, 255, .5);
	}

	#navigator button:hover::after {
		opacity: .25;
	}

	#navigator .decorative-diamond {
		position: relative;
		height: 50px;
		width: 50px;
		border: 3px solid var(--earth);
		z-index: 1;
		transform: rotate(45deg);
		margin: auto;
		opacity: .05;
		pointer-events: none;
	}

	#navigator .decorative-vert {
		position: relative;
		height: auto;
		width: 25%;
		border: 1.5px solid var(--earth);
		z-index: 1;
		margin: auto;
		opacity: .15;
	}
}

@media screen and (min-width: 1025px) {
	#navigator {
		width: auto;
		margin: auto;
		flex-direction: column;
		left: auto;
		right: 4%;
		top: 0;
		bottom: 0;
		position: fixed;
		min-height: 600px;
		max-height: 690px;
	}

	#navigator div {
		flex-direction: column;
	}

	#navigator .decorative-diamond {
		opacity: .15;
	}

	#navigator .decorative-vert {
		height: 25%;
		width: auto
	}
}

@media screen and (min-width: 1425px) {
	#navigator {
		height: 40vw;
	}
}


/*Lexia*/
article {
	box-sizing: border-box;
	width: 90vw;
	height: 75vh;
	padding: 30px;
	display: flex;
	flex-direction: column;
	position: relative;
	background-image: url(../img/frame.png);
	background-size: 100% 100%;
}

@media screen and (min-width: 768px) {
	article {
		width: 80vw;
		height: 60vw;
	}
}

@media screen and (min-width: 1025px) {
	article {
		width: 60vw;
		height: 50vw;
		max-width: 890px;
		max-height: 690px;
	}
}

@media screen and (min-width: 1400px) {
	article {
		width: 50vw;
		height: 40vw;
		max-width: 890px;
		max-height: 690px;
	}
}

article a:link,
#output a:link, .modal-toggle {
	color: var(--ochre);
	font-weight: 700;
	cursor: pointer;
}

article a:visited,
#output a:visited, .modal-toggle {
	color: var(--earth);
}

article header {
	padding: 0 0 40px 0;
	width: auto;
	justify-self: flex-start;
	align-self: flex-start;
}

article header h1 {
	text-transform: uppercase;
	position: relative;
	font-size: 1.6em;
	letter-spacing: 1px;
}

article header h1::after {
	content: '';
	display: block;
	border-top: 1px solid black;
	position: absolute;
	bottom: -20px;
	left: 0;
	width: 100%;
	height: 2px;
}

article .container,
article section {
	flex: 1;
	overflow-y: auto;
	padding-right: 10px;
	padding-bottom: 25px;
}

article .inscription {
	-webkit-perspective: 1;
	-webkit-column-width: 15em;
	-moz-column-width: 15em;
	-ms-column-width: 15em;
	column-width: 15em;
	-webkit-column-fill: auto;
	-moz-column-fill: auto;
	-ms-column-fill: auto;
	column-fill: auto;
	-webkit-column-gap: 2em;
	-moz-column-gap: 2em;
	-ms-column-gap: 2em;
	column-gap: 2em;
}

article :target {
	-webkit-animation: crosslink 4.25s ease;
	-moz-animation: crosslink 4.25s ease;
	-ms-animation: crosslink 4.25s ease;
	animation: crosslink 4.25s ease;
}

@-webkit-keyframes crosslink {
	0% {
		background: #cc9;
	}

	100% {
		background: transparent;
	}
}

@-moz-keyframes crosslink {
	0% {
		background: #cc9;
	}

	100% {
		background: transparent;
	}
}

@-ms-keyframes crosslink {
	0% {
		background: #cc9;
	}

	100% {
		background: transparent;
	}
}

@-keyframes crosslink {
	0% {
		background: #cc9;
	}

	100% {
		background: transparent;
	}
}

article .path {
	box-sizing: border-box;
	justify-self: flex-end;
	display: flex;
	flex-direction: row;
	justify-content: center;
	border-top: 1px solid black;
	padding: 20px 0 0 0;
	margin-top: 20px;
	text-align: center;
	font-family: var(--secondaryFont);
	letter-spacing: var(--secondaryFont-spacing);
}

article .path span {
	margin: 0 10px;
}

article .path a {
	text-transform: uppercase;
	color: var(--ink);
	font-size: .8em;
	font-weight: 600;
	line-height: 1.5;
}

h1 span {
	display: block;
	font-size: 18px;
	text-transform: none;
	letter-spacing: 0;
	margin-bottom: 5px;
}

/*Scrollbar*/
/* Width */
::-webkit-scrollbar {
	width: 5px;
	height: 5px;
}

/* Track */
::-webkit-scrollbar-track {
	box-shadow: inset 0 0 5px rgba(0, 0, 0, .25);
	border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, .25);
	border-radius: 10px;
}


/* Scrollbar Firefox */
body {
	scrollbar-width: 10px;
	scrollbar-color: rgba(0, 0, 0, .25) rgba(0, 0, 0, .05);
	border-radius: 10px;
  }
  body:-webkit-scrollbar {
	width: 10px;
	border-radius: 10px;
  }
  body:-webkit-scrollbar-track {
	background:  rgba(0, 0, 0, .25);
	border-radius: 10px;
  }
  body:-webkit-scrollbar-thumb {
	background-color: rgba(0, 0, 0, .25);
	border-radius: 10px;
  }


/* Modals */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	width: 100vw;
	box-sizing: border-box;
	transition: opacity .4s;
}

.modal article {
	background: none;
	padding: 0;
	width: auto;
	height: auto;
	max-height: 75vh;
}

.modal .modal-container {
	z-index: 999;
	padding: 20px;
	width: 100%;
	max-width: 750px;
	background-color: rgba(255, 255, 255, .35);
	box-shadow: inset 0 0 99px var(--sand);
	max-height: 95vh;
	margin: 20px;
	box-sizing: border-box;
}

@media screen and (min-width: 768px) {
	.modal .modal-container {
		padding: 40px;
		margin: 50px;
	}
}

.modal::before {
	display: block;
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100vh;
	width: 100vw;
	background-color: rgba(221, 201, 177, .85);
	z-index: 1;
}

.modal::after {
	display: block;
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	background-image: url(../img/texture.jpeg);
	background-size: cover;
	height: 100vh;
	width: 100vw;
	mix-blend-mode: lighten;
	opacity: .075;
	z-index: 1;
}

.close-modal {
	z-index: 999;
	position: absolute;
	top: 23px;
	right: 27px;
	text-transform: uppercase;
	font-weight: 600;
	font-family: var(--secondaryFont);
	letter-spacing: var(--secondaryFont-spacing);
}


/* Search Modal */
#search-modal article {
	padding-bottom: 50px;
}

#search-modal form {
	width: 100%;
	box-sizing: border-box;
}

#search-modal form input {
	width: 100%;
	height: 35px;
	padding-left: 10px;
	border: 0;
	background-color: rgba(255, 255, 255, .4);
	box-sizing: border-box;
	font-family: var(--primaryFont);
	font-size: 1em;
}

#search-modal form button {
	display: block;
	padding: 10px 0 0 0;
	margin: 0;
	margin-left: auto;
	text-transform: uppercase;
	font-weight: 600;
	font-family: var(--secondaryFont);
	letter-spacing: var(--secondaryFont-spacing);
}

#search-modal #output {
	background-color: transparent;
	box-shadow: none;
	padding: 0;
	margin: 0;
	margin-top: 30px;
	width: 100%;
	max-height: 50vh;
	overflow: auto;
}

#search-modal #output h3 {
	font-size: 1.05em;
	letter-spacing: normal;
}

#search-modal #output p {
	margin-bottom: 30px;
}

.search-highlight {
	background-color: #cc9;
}



/*please, if you have any mercy, you will change and move these search styles*/
#output-result-count {
	display: none;
}

#output-result-count.search-active {
	display: block;
}

#output-result-count span {
	color: red;
}

.modal-closed {
	opacity: 0;
	pointer-events: none;
}

.modal article.hidden {
	max-height: 0;
	transform: scale(0);
	opacity: 0;
	animation: none;
}

.modal article {
	transition: all 1s;
	animation: show 2s forwards;
	animation-delay: .2s;
	opacity: 0;
	transform-origin: center;
}

@keyframes show {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}


/* Stream Modal */
#stream-modal .stream-tabs {
	font-family: var(--secondaryFont);
	font-weight: 400;
	letter-spacing: var(--secondaryFont-spacing);
	margin: auto auto 25px auto;
}

#stream-modal .stream-tabs ul {
	z-index: 1;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
}

#stream-modal .stream-tabs ul li {
	margin-bottom: 10px;
}

#stream-modal .stream-tabs span {
	display: none;
	margin: 0 5px;
}

@media screen and (min-width: 768px) {
	#stream-modal .stream-tabs ul {
		flex-direction: row;
	}

	#stream-modal .stream-tabs span {
		display: inline-block;
	}

	#stream-modal .stream-tabs ul li {
		margin-bottom: 0px;
		margin: 0 10px;
	}
}

#stream-modal .stream-tabs button {
	font-family: var(--secondaryFont);
	font-weight: 600;
	letter-spacing: var(--secondaryFont-spacing);
	position: relative;
}

#stream-modal .stream-tabs button.selected::after {
	position: absolute;
	left: 0;
	bottom: -3px;
	content: '';
	width: 100%;
	height: 1px;
	border-bottom: 1.5px solid var(--ink);
}

#stream-modal header {
	width: 100%;
}

#stream-modal .subTitle {
	font-size: 1.05em;
	font-weight: normal;
	width: 100%;
	text-align: center;
}

#stream-modal .stream-container,
#stream-modal .inventory-container {
	text-align: center;
}

#stream-modal .outline-container h4 {
	font-size: 1.1em;
	margin-bottom: 15px;
	position: relative;
}

#stream-modal .outline-container h4::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -5px;
	height: 1px;
	width: 20%;
	border-bottom: 1px solid var(--ink);
}

#stream-modal .outline-container ul ul {
	list-style: square inside;
	margin-left: 25px;
	margin-bottom: 15px;
}

#stream-modal .outline-container ul ul ul {
	list-style: circle inside;
	margin-left: 25px;
}

#metastream-modal {
	z-index: 1000;
}

.metastream-container, .metastream-container > * {
	text-align: center;
}

.metastream-container header {
	width: 100%;
}

.metastream-container .subTitle {
	font-size: 1em;
}

.current-stream-page a {
	position: relative;
}

.current-stream-page a:last-of-type::before {
	margin: auto;
	content: '';
	height: 1px;
	width: 15px;
	border-bottom: 2px solid var(--earth);
	position: absolute;
	bottom: 0;
	top: 0;
	left: -20px;
	opacity: .5;
}

.current-stream-page a:last-of-type::after {
	margin: auto;
	content: '';
	height: 1px;
	width: 15px;
	border-bottom: 2px solid var(--earth);
	position: absolute;
	bottom: 0;
	top: 0;
	right: -20px;
	opacity: .5;
}

#stream .catalog li {
	list-style: none;
}


/* Legomena & Scholia Modals */
.legomena-cont, .scholia-cont {
	text-align: left;
}

.scholia-cont a:first-of-type {
	margin-left: 25px;
}

.catalog h3, .catalog h4 {
	font-size: 1.1em;
	margin-top: 30px;
	margin-bottom: 5px;
}

.catalog h3:first-of-type, .catalog h4:first-of-type {
	margin-top: 0;
}

.catalog p {
	margin-left: 20px;
	margin-bottom: 5px;
}
