body
{
	margin: 0;
	font-family: serif;
}
h1
{
	font-family: SegoeUILight;
	text-align: center;
	font-weight: normal;
}

/*** simple css ***/
main.simple, #simpleCopy
{
	margin: 0 auto;
	max-width: 8.5in;
	/*max-height: 11in;*/
}
main.simple .rich, .simple .deadspace
{
	display: none;
}
.simple .fas
{
	display: none;
}

.simple h1, .simple h2, .simple h3
{
	margin: 0;
}

.simple .tech-stats .lang
{
	content: '';
}

main.rich .simple
{
	display: none;
}

body.segue
{
	pointer-events: none;
	overflow: hidden;
	transition: all 0.3s ease-out 0s;
}
.explode
{
	transition: all 1.5s ease-out 1s;
}
.simple span.explode
{
	display: inline-block;
	position: relative;
}
.simple #resContent a span.explode
{
	text-decoration: underline;
}

#simpleReturn
{
	position: absolute;
	top: 5px;
	left: 5px;
}

/******************/

.exp-title, .tech-stats
{
	font-style: italic;
}
.exp-title
{
	margin-left: 1em;
	text-align: start;
}
.tech-stats 
{
	margin-right: 1em;
	text-align: end;
}

.tech-stats .lang
{
	width: 32px;
	height: 32px;
	vertical-align: top;
}

/******************/

#download
{
	position: absolute;
	right: 10px;
	top: 0px;
	z-index: 99;
	filter: drop-shadow(0 0 5px var(--basicshadow));
	font-size: 14px;
}

#download a
{
	display: block;
	color: var(--maintxt);
	position: relative;
	top: 2.5em;
	
	transition: color 0.3s ease 0s;
}
#download a:hover
{
	border-bottom: none;
}

#download .fa-download
{
	color: var(--mainbg);
}
#download::before
{
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	
	border-top: 7.5em solid var(--maintxt);
	border-bottom: 1em solid transparent;
	border-left: 2.35em solid var(--maintxt);
	border-right: 2.35em solid var(--maintxt);
	
	z-index: -9;
	transition: border-color 0.3s ease 0s;
}
#download::after
{
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	
	border-top: 7.25em solid var(--mainbg);
	border-bottom: 1em solid transparent;
	border-left: 2.25em solid var(--mainbg);
	border-right: 2.25em solid var(--mainbg);
	
	z-index: -9;
	transition: border-color 0.3s ease 0s;
}

#download:hover::before
{
	border-top-color: var(--downloadTxt);
	border-left-color: var(--downloadTxt);
	border-right-color: var(--downloadTxt);
}
#download:hover a
{
	color: var(--downloadTxt);
}

/******************/

body.mainTheme
{
	background: var(--mainbg) url("../img/grain.png");
}

.graphBg
{
	background-image:
		linear-gradient(090deg, transparent 95%, #474747 100%),
		linear-gradient(180deg, transparent 95%, #474747 100%),
		linear-gradient(090deg, transparent 98%, #505050 100%),
		linear-gradient(180deg, transparent 98%, #505050 100%);
	background-size: 20px 20px, 20px 20px, 80px 80px, 80px 80px;
	background-attachment: local;
	background-repeat: repeat;
	background-position: 20px 20px;
}

.rich .hideBottom { transform: translateY(100vh); }
.rich .hideTop    { transform: translateY(-20vh); }
.rich .hideLeft   { transform: translateX(-50vw); }
.rich .hideRight  { transform: translateX(50vw); }

main.rich section > h2
{
	display: none;
}

main.rich section, #download, #menu, h1
{
	transition: 0.3s ease-in-out 0s;
}

.resFlex
{
	display: flex;
	gap: 1em;
	max-width: 100%;
}
main.rich
{
	color: var(--maintxt);
	font-size: 18pt;
	text-shadow: 1px 1px var(--basicshadow);
}
.rich header
{
	font-size: 18pt;
}

.rich a
{
	transition: 0.3s ease 0s;
	text-decoration: none;
	border-bottom: 1px dashed transparent;
	color: var(--secAccent);
}
main.rich a:hover
{
	color: var(--linkHover);
	border-bottom-color: var(--linkHover);
}

/******************/

#menu
{
	position: sticky;
	top: 10px;
	height: max-content;
	width: 3em;
}
#menu.expanded, #menu:hover
{
	width: 11em;
}
#menu button
{
	display: block;
	padding: 5px 10px;
	
	text-align: start;
	width: 100%;
	white-space: nowrap;
	
	font-family: monospace;
	font-variant: small-caps;
	font-size: 1.25em;
	
	color: var(--headertxt);
	background: var(--mainbg);
	
	border: none;
	border-top: 1px solid var(--lightShine);
	border-bottom: 1px solid var(--heavyShade);
	border-right: 15px solid var(--mainbg);
	
	cursor: pointer;
	overflow: hidden;
}
#menu button:first-child { border-top: none; }
#menu button:last-child  { border-bottom: none; }
#menu button:hover, #menu button.active
{
	color: var(--headerHighlight);
	background: var(--secbg);
	border-right-color: var(--secAccent);
}
#menu button:hover .fas, #menu button.active .fas
{
	color: var(--secAccent);
}
#menu button, #menu button .fas
{
	transition: 0.3s ease 0s;
}
#menu.expanded button.lockCol .fa-plus-square { display: none; }
#menu:not(.expanded) button.lockCol .fa-minus-square { display: none; }


/******************/

#mainName
{
	text-align: center;
	font-family: SegoeUILight;
	font-weight: normal;
	font-variant: small-caps;
}
.rich #mainName
{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0 10px;
}
.rich #mainName a
{
	font-size: 1.5em;
	color: var(--headertxt);
	text-shadow: 2px 2px var(--basicshadow);
	position: relative;
	
	transition: all 0.3s ease 0s;
}
.rich #mainName a:hover
{
	color: var(--headerHighlight);
	border-bottom-color: var(--headerHighlight);
}
.rich #mainName:before, .rich #mainName:after
{
	content: '';
	position: relative;
	height: 3px;
	width: 0%;
	/* display: inline-block; */
	top: 0.25ex;
	transition: 0.3s ease 0s;
}
.rich #mainName:before
{
	background: linear-gradient(90deg, transparent, var(--secAccent));
	/* right: 10px; */
}
.rich #mainName:after
{
	background: linear-gradient(-90deg, transparent, var(--secAccent));
	/* left: 10px; */
}
.rich #mainName.flank:before, .rich #mainName.flank:after
{
	width: auto;
	flex: 1 0 auto;
}

/******************/

main.rich #resContent
{
	margin-right: 2em;
	flex: 1 0 0;
	min-width: 0;
}

main.rich #summSec p
{
	font-style: italic;
	text-align: justify;
}

main.rich #expSec .exp-block:before
{
	content: '';
	display: block;
	height: 2px;
	width: 100%;
	background: linear-gradient(90deg, transparent, var(--secAccent), transparent);
}
main.rich #expSec .exp-block:first-child:before
{
	display: none;
}

/******************/

.creditBox, .codeBox
{
	background-color: var(--mediumShade);
	padding: 5px 15px;
	box-shadow: 0 0 5px var(--basicshadow) inset;
	border-radius: 5px;
	border: 1px solid var(--mediumBorder);
	margin: 0 auto 5px;
}
.creditAlign
{
	display: inline-block;
	vertical-align: middle;
}
.creditBox h2 ul
{
	list-style: none;
	padding: 0;
}

#contactSec li
{
	margin: 5px auto;
	font-size: 1.25em;
}

/******************/

.codeBox
{
	background-color: var(--mainbg);
	padding: 0;
	overflow: hidden;
	min-width: 800px;
}

.codeBox header
{
	cursor: pointer;
	display: flex;
	align-items: center;
	position: relative;
	padding: 5px 15px;
	height: 130px;
}
.codeBox header::before
{
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: -100%;
	background: var(--secAccent);
	opacity: 0.3;
	transition: 0.3s ease 0s;
	clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%);
}
.codeBox header:hover::before, .codeBox.expanded header::before
{
	left: 0%;
}
.codeBox header h2
{
	display: inline-block;
	flex-grow: 1;
	z-index: 9;
}
.codeBox header .langs
{
	align-self: flex-end;
	flex-grow: 0;
	z-index: 9;
}
.codeBox header .langs img
{
	display: inline-block;
	max-height: 128px;
	max-width: 128px;
}
.codeBox header .langs img:not(:first-child)
{
	margin-left: -96px;
	transition: 0.3s ease 0s;
}
.codeBox header:hover .langs img:not(:first-child), .codeBox.expanded header .langs img:not(:first-child)
{
	margin-left: 0;
}

.codeBox .collapse
{
	height: 0;
	transition: height 0.3s ease 0s;
	overflow: hidden;
	
	display: flex;
	flex-direction: column;
}
.codeBox.expanded .collapse
{
	height: 500px;
}

.codeBox article
{
	overflow: hidden;
	/*max-height: 450px;*/
	height: 100%;
}
.codeBox article .sample, .codeBox article p
{
	display: inline-block;
}
.codeBox article .sample
{
	width: 75%;
}
.codeBox article .sample, .codeBox article .sample pre:not(:empty)
{
	height: 100%;
	box-sizing: border-box;
}
.codeBox article h3
{
	padding-left: 15px;
}
.codeBox article p
{
	width: 25%;
	height: 100%;
	box-sizing: border-box;
	padding: 1%;
	margin: 0px;
	vertical-align: top;
	background: var(--tertbg);
	text-align: justify;
	overflow: auto;
}
.codeBox article .sample pre
{
	font-size: 12pt;
	margin: 0;
}
#resContent section.hideBottom .codeBox article .sample pre
{
	display: none;
}

pre.sampleScreenshot
{
	position: relative;
}
pre.sampleScreenshot img
{
	max-height: 90%;
	max-width: 90%;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
}

.codeBox hr
{
	width: 100%;
	margin: 0;
	color: var(--secAccent);
}

.codeBox footer
{
	padding: 0px 15px 5px;
}
.codeBox .langTab
{
	font-size: inherit;
	font-family: serif;
	background: var(--secAccent) linear-gradient(var(--heavyMiddle), var(--lightMiddle));
	border: 1px solid var(--secAccent);
	border-top: none;
	border-radius: 0px 0px 10px 10px;
	margin-right: 0.5em;
	transition: 0.3s ease 0s;
}
.codeBox .langTab:hover, .codeBox .langTab.active
{
	background-color: var(--linkHover);
}
.codeBox .langTab img
{
	height: 1.5em;
	vertical-align: middle;
	margin-right: 0.25em;
}

a.dl-btn
{
	color: inherit !important;
	display: inline-block;
	background: var(--secAccent);
	padding: 5px 10px;
	border-radius: 5px;
	box-shadow: 0px 2px 2px 1px var(--mediumShade), inset 0 0px 3px 1px var(--mediumShade);
	transition: 0.3s ease-in-out 0s !important;
	border: none;
}
a.dl-btn:hover
{
	background: var(--linkHover);
	box-shadow: 0px 0px 2px 3px var(--mediumShade), inset 0 0px 3px 0px var(--mediumShade);
}

/******************/

#creditSec
{
	display: flex;
	flex-wrap: wrap;
	text-align: center;
	gap: 1em;
}

#creditSec > p
{
	flex-basis: 100%;
}

.creditAlign
{
	display: inline-block;
	vertical-align: middle;
}
.creditBox ul
{
	list-style: none;
	padding: 0;
}

/******************/

body.modaled
{
	overflow: hidden !important;
}

#modal
{
	position: fixed;
	display: flex;
	top: 0;
	left: 0;
	height: 100vh;
	width: 100vw;
	overflow: hidden;
	z-index: 999;
	justify-content: center;
	align-items: center;
}
.modalTop, .modalBottom
{
	background: var(--heavyShade);
	position: absolute;
	height: 50%;
	width: 100%;
	transition: 0.3s ease 0s;
}
.modalTop { top: 0; }
#modal.closed .modalTop { top: -50vh; }
.modalBottom { bottom: 0; }
#modal.closed .modalBottom { bottom: -50vh; }

.modalContent
{
	transition: opacity 0.3s ease 0s;
	opacity: 1;
	max-width: 66vw;
	max-height: 66vh;
	height: 100%;
	width: 100%;
	flex: 1 0 auto;
	z-index: 9;
	position: relative;
}
.modalContent.faded
{
	opacity: 0;
}
.modalContent iframe
{
	height: 100%;
	width: 100%;
	border: 1px dashed var(--heavyBorder);
	border-radius: 15px;
}

.modalContent #closeBtn
{
	display: inline-block;
	position: absolute;
	right: -30px;
	top: -30px;
	width: 1.5em;
	height: 1.5em;
	border-radius: 50%;
	font-size: 1.25em;
	font-weight: bold;
	text-align: center;
	color: var(--mainbg);
	background: var(--maintxt);
	cursor: pointer;
	transition: 0.3s ease 0s;
}
.modalContent #closeBtn:hover
{
	color: var(--codeTxt);
}

#modal .loading
{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	color: var(--maintxt);
	font-size: 5em;
	height: 1em;
	width: 1em;
}

/******************/

@media (max-width: 1445px) {
	.rich #mainName a
	{
		font-size: 1.25em;
	}
}
