/*Static Reusable Fields*/
:root{
	--backgroundColor: #121212;
	--fontColor: #8b8b8b;
	--headerBackgroundColor: #15191d;
	--captionFontColor: #717171;
	
	--borderThemeColor_inactive: rgba(0,102,153,0.5);
	--fillThemeColor_active: rgba(0,102,153,0.5);
	--borderThemeColor_active: var(--backgroundColor);
	--contrastTextColor: rgba(242,183,5,1);
	
	--infoBoxBorderColor: rgba(0,123,167,0.5);
	--infoBoxFillColor: var(--backgroundColor);
	--infoBoxTextColor: var(--fontColor);
	--infoBoxHeaderColor: rgba(255,255,255,0.1);
	
	--noteBoxBorderColor: #E6E6FA;
	--noteBoxFillColor: var(--backgroundColor);
	--noteBoxTextColor: var(--fontColor);
	--noteBoxHeaderColor: rgba(255,255,255,0.1);
	
	--warnBoxBorderColor: rgba(255,121,0,1);
	--warnBoxFillColor: var(--backgroundColor);
	--warnBoxTextColor: var(--fontColor);
	--warnBoxHeaderColor: rgba(255,255,255,0.1);
	
	--tipBoxBorderColor: #7853A8;
	--tipBoxFillColor: var(--backgroundColor);
	--tipBoxTextColor: var(--fontColor);
	--tipBoxHeaderColor: rgba(255,255,255,0.1);
	
	--importantBoxBorderColor: rgba(180,40,65,1);
	--importantBoxFillColor: var(--backgroundColor);
	--importantBoxTextColor: var(--fontColor);
	--importantBoxHeaderColor: rgba(255,255,255,0.1);
	
	--buttonFillColor: black;
	--buttonInactiveBorderColor: var(--borderThemeColor_inactive);
	--buttonFillColor_hover: var(--borderThemeColor_active);
	--buttonTextColor: var(--fontColor);
	--buttonTextColor_hover: var(--contrastTextColor);
	--buttonBorderColor_hover: var(--borderThemeColor_active);
	--buttonFillColor_focus: 0px 0.5px 1px rgba(0, 0, 0, 0.1), 0px 0px 0px 3.5px rgba(58, 108, 217, 0.5);
	--calcButtonFillColor: 0px 0.5px 1px rgba(0, 0, 0, 0.1), 0px 0px 0px 3.5px rgba(255, 255, 255, 0.4);
}


/*____Phone_____*/

/*Nav*/
nav{
	background: rgba(0,0,0,0.4);
	border-bottom: 2px solid gray;
	color: gray;
	margin: 0;
	width: 100%;
}
.navList{
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 0;
	padding: 0;
	padding-top: 1em;
	list-style: none;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
}
.navList li{
	width: max-content;
}
.navList a{
	color: #EDEFF2;
	text-decoration: none;
	padding: 0.5em;
}
.navList a:hover{
	color: white;
}
.navList img{
	padding-left: 1em;
	max-height: 5em;
}
.linkGroup li{
	display: inline-block;
}

/*Header*/
header{	
	background-color: #15191d;
	color: #bfbfbf;
	padding: 1em;
	text-align: center;
}
header img{
	margin: auto;
	max-width: 60%;
}

body{
	background-color: var(--backgroundColor);
	color: var(--fontColor);
}

main{
	font-size: 32px;
	margin: auto;
	max-width: 60ch;
	font-family: "Times New Roman", Times, serif;
}

/*Footer*/
footer{
	position: fixed;
	display: block;

	width: 100%;
	
	background-color: #15191d;
	color: var(--fontColor);
	
	left: 0;
	bottom: 0;
}
footer p{
	margin: 0.25em;
	text-align: left;
}

/*Slides*/
.slide{
	min-height: 600px;
	padding: 0.5em;
	margin-top: 1em;
	margin-bottom: 1em;
	
	
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	
	border: solid 1px gray;
	border-bottom: solid gray 2px;
}
.slide:nth-of-type(5n){
	background-color: #1B1412;
}
.slide:nth-of-type(5n+1){
	background-color: #0F1F1A;
}
.slide:nth-of-type(5n+2){
	background-color: #0F172A;
}
.slide:nth-of-type(5n+3){
	background-color: #1A1220;
}
.slide:nth-of-type(5n+4){
	background-color: #1E0F14;
}
.slide:nth-of-type(5n+4){
	background-color: #0C1F22;
}
.slide p{
	font-size: 32px;
}
.slide .ref{
	font-size: 16px;
	font-style: italic;
}
.slide h2,h3,h4,h5,h6{
	border-bottom: 2px solid gray;
	font-weight: bold;
	padding: 0.5em;
	background-image: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
	color: lightgray;
	
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}
.slide img{
	opacity: 0.5;
	object-fit: cover;
}

p{
	margin-bottom: 1.4em;
	margin-top: 1.4em;
	font-size: 20px;
}

a{
	color: #5D688A;
}
a:hover{
	cursor: pointer;
	color: #0881a3;
}


hr{
	width: 30%;
}

.date{
	margin-top: 0.5em;
	margin-bottom: 3em;
	font-style: italic;
}

/*Details*/
details{
	border: solid #bae8e8 1px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	
	margin-top: 1em;
	margin-bottom: 1em;
	
	&[open] > summary::after {
		animation: rotate180 0.7s;
		transform: rotate(180deg);
	}

	&::details-content{
		font-size: 1.125em;
		overflow: hidden;
		
	}
	&[open]::details-content{
		block-size: auto;
		animation: details-show 0.7s ease-in-out;
	}
	
	& a{
		color: #646464;
	}
	& hr{
		width: 100%;
	}
	& a:hover{
		cursor: pointer;
		color: #0881a3;
	}
	
}
summary{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-right: 1rem;
	padding-left: 1rem;
	list-style-position: outside;
	
	&::after {
		content: "";
		border-block-start: 0.4em solid var(--fontColor);
		border-inline: 0.25em solid transparent;
	}
	&::-webkit-details-marker {
		/* For Safari browser */
		display: none;
	}
	
	&:hover {
		cursor: pointer;
		color: white;
		background-color: rgba(00,00,00,0.3);
		
		transition: all 0.7s;
		-webkit-transition: all 0.7s;
		-moz-transition: all 0.7s;
	}
}


@keyframes details-show{
	from{
		opacity: 0;
		transform: var(--details-translate, translateY(-2rem));
	}
}
@keyframes rotate180{
	from{
		transform: rotate(0deg);
	}
	to{
		transform: rotate(180deg);
	}
}

input{
	background-color: #3f3f3f;
	color: white;
	font-size: 1rem;
}

textarea{
	background-color: #3f3f3f;
	color: white;
}

/*Button*/
button{
	border: none;
	border-bottom: solid var(--buttonInactiveBorderColor) 1px;
	
	background-color: var(--buttonFillColor);
	color: var(--buttonTextColor);
	
	align-items: center;
	padding: 6px 14px;
		
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 6px;
	
	box-shadow: 0px 0.5px 1px rgba(0, 0, 0, 0.1);
	
	touch-action: manipulation;
	
	font-family: 'Roboto', sans-serif;

}
button:hover{
	cursor: pointer;
	border: none;
	border-bottom: solid var(--borderThemeColor_active) 1px;
	transition-duration: 0.7s;
	
	background-color: var(--fillThemeColor_active);
	color: var(--buttonTextColor_hover);
}
button:focus {
  box-shadow: var(--buttonFillColor_focus);
  outline: 0;
}





dfn{
	color: #ea4200;
	font-weight: 700;
}

.codeBlock{
	margin-top: 1em;
	margin-bottom: 1em;
}
/*******************/

/*Tables*/
table{
	
	margin: 2rem auto 2rem auto;
	
	table-layout: block;
	
	min-width: 90%;
	max-width: 90%;

	background-color: #282828;
	
	border-collapse: seperate;
	border: solid #bae8e8 1px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	
}
caption{
	color: var(--captionFontColor);
	font-size: 1.3em;
	font-weight: 700;
}
th{
	background-color: #BAE8E8;
	font-style: bold;
	color: black;
	position: sticky;
	top: 0;
}
td{
	padding: 1em;
	
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}
tr:nth-of-type(2n){
	background-color: #3f3f3f;
}
/*******************/

/*Tables: special care for tables on phones*/
@media (max-width: 900px)
{
	td{
		display: block;
		padding: 0.5rem 1rem;
	}
	th{
		display: none;
	}
	td::before{
		content: attr(data-cell) ": ";
		font-weight: 700;
		text-transform: capitalize;
		padding: 0.5rem 1rem;
	}
}
/*******************/

/*Images and Figures*/
img{
	margin-top: 1em;
	margin-bottom: 1em;
	max-width: 100%;
	display: block;
}
figure{
	margin-top: 2em;
	margin-bottom: 2em;
	padding: 0.5em;
	
	border-collapse: seperate;
	border: solid #bae8e8 1px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}
figcaption{
	font-weight: 700;
	text-align: center;
}
/*******************/

/* Equations*/
.eq{
	border: 1px gray solid;
	background-color: #3f3f3f;
	border-collapse: seperate;
	color: #d3d3d3;
	font-size: 1em;
	overflow-x: auto;
	padding: 1em;
}
.eq figcaption{
	border-bottom: 1px gray solid;
}
/*******************/

/*Calculator section for getting user input*/
.calc{
	
	max-width: 60ch;
	
	border-collapse: seperate;
	border: solid #bae8e8 1px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	
	background-color: #506197;
	color: #cdcdcd;
}
.calc figcaption{
	border-bottom: 1px gray solid;
}
.calc .title{
	font-size: 1.7rem;
	color:  #d3d3d3;
	text-align: center;
	font-weight: bold;
	margin-top: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #bae8e8;
}
.calc .red{
	background-color: #451717;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}
.calc input{
	margin: 1rem;
}
.calc .blue2{
	background-color: #475ca0;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}
.calc input:invalid{
	border: red solid 3px;
}
.calc input:valid{
	border: green solid 3px;
}
.calc .valBox{
	color: white;
	background-color: rgba(0,255,0,0.3);
	
	border: white solid 2px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	
	padding: 0.5em;
	
	animation-duration: 0.3s;
	animation-name: ding_pop;
	
}
@keyframes ding_pop{
	0%{
		color: rgba(0,255,0,0.01);
		box-shadow: 0 0 10px 2px rgba(0,255,0,0.95);
	}
	100% {
		color: rgba(255,255,255,0.95);
		box-shadow: 0 0 60px 50px rgba(255,255,255,0.01);
	}
}
.calc .invalBox{
	color: white;
	background-color: rgba(255,0,0,0.3);
	
	border: white solid 2px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	
	padding: 0.1em;
	
	animation-duration: 0.7s;
	animation-name: redAlert;
	animation-iteration-count: 3;
}
@keyframes redAlert{
	0% {
		background-color: rgba(0,0,0,0.8);
		color: rgba(255,0,0,0.6);
		text-shadow: 0 0 10px 2px rgba(255,0,0,0.95);
	}
	50%{
		background-color: rgba(255,0,0,0.3);
		color: rgba(255,255,255,1);
	}
	100% {
		background-color: rgba(0,0,0,0.8);
		color: rgba(255,0,0,0.6);
		text-shadow: 0 0 40px 20px rgba(255,255,255,0.01);
	}
}
.calc .valBtn{
	background-color: rgba(0,255,0,0.3);
	
	animation-duration: 0.5s;
	animation-name: ding_pop;
}
.calc input{
	font-size: 1.3rem;
	height: 2rem;
	margin: 1rem;
}
.calc button:focus{
  box-shadow: var(--calcButtonFillColor);
  outline: 0;
}
/*******************/

/*Table of Contents and Similar Tables*/

#toc ul{
	text-decoration: none;
	display: grid;
	grid-template-columns: auto max-content;
	align-items: end;
}
#toc a:hover{
	cursor: pointer;
	color: #0881a3;
}
#toc{
	display: block;
	width: 100%;
}

.contents{
	border: solid var(--fontColor) 1px;
	padding: 1em;
	padding-top: 0;
	padding-bottom: 2em;
	
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}
.contents p{
	text-indent: 0;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	font-size: 0.7em;
}
div .contents a{
	width: 100%;
	height: 100%;
	display: block;
}
div .contents p:hover{
	background-color: rgba(00,00,00,0.3);
}

/*Content Controls*/
.slider{
	-webkit-appearance: none;
	appearance: none;
	width: 100px;
	height: 2px;
	background: gray;
	outline: none;
	transition: opacity 0.7s;
}
.slider:hover{
	background: white;
}
.slider::-webkit-slider-thumb{
	width: 2px;
	height: 10px;
	background: white;
	cursor: pointer;
}
.slider::-moz-range-thumb{
	width: 2px;
	height: 10px;
	background: white;
	cursor: pointer;
}
.slider::-webkit-slider-thumb:hover{
	height: 15px;
	background: green;
}
.slider::-moz-range-thumb:hover{
	height: 15px;
	background: green;
}

.graph{
		min-height: 20em;
		display: block;
		width: 100%;
}

/*Address Tool for Vector Tables and Registers*/
.adressTool{
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr 1fr;
	width: 100%;
	margin-top: 2rem;
	margin-bottom: 2rem;
	
	border: 1px black solid;
	
	background: #282828;
	
	align-items: center;
	padding: 6px 14px;
		
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border: none;
	border-radius: 6px;
	
	box-shadow: 0px 0.5px 1px rgba(0, 0, 0, 0.1);
}


/*Terms Pages*/
.term{
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border: none;
	border-radius: 6px;
	
	box-shadow: 0px 0.5px 1px rgba(0, 0, 0, 0.1);
	
	border: 1px var(--fontColor) solid;
	
	margin-top: 1rem;
	margin-bottom: 1rem;
	margin-right: 1rem;
	margin-left: 1rem;
}
.term p{
	margin-right: 1rem;
	margin-left: 1rem;
	
	text-indent: 0;
}

/*References Section*/
.references{
	margin: 0.5em;
	box-shadow: 0px 0.5px 1px rgba(0, 0, 0, 0.1);
	border-top: 1px var(--fontColor) solid;
	border-bottom: 1px var(--fontColor) solid;
	font-size: 0.9em;
}
.references p{
	
	border-bottom: 1px var(--fontColor) dashed;
	
	margin-bottom: 1.5em;
	margin-top: 1em;
	
	padding: 1em;
}

/*Info Box*/
.info{
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 6px;
	padding: 1rem;
	border: 3px var(--infoBoxBorderColor) solid;
	background-color: var(--infoBoxFillColor);
	color: var(--infoBoxTextColor);
	text-indent: 0;
	font-size: 0.7em;
}  
.info:before{
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 6px;
	
	white-space: pre-wrap;
	content: "\24D8  Information \00000a ";
	font-weight: bold;
	display: block;
	margin-bottom: 0.5rem;
	border-bottom: 2px solid var(--infoBoxBorderColor);
	padding: 0.5rem;
	background-color: var(--infoBoxHeaderColor);
}

/*Note Box*/
.note{
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 6px;
	
	padding: 1rem;
	border: 3px var(--noteBoxBorderColor) solid;
	background-color: var(--noteBoxFillColor);
	color: var(--noteBoxTextColor);
	text-indent: 0;
	font-size: 0.7em;
}  
.note:before{
	content: "\270E  Note \00000a ";
	white-space: pre-wrap;
	font-weight: bold;
	display: block;
	margin-bottom: 0.5rem;
	border-bottom: 2px solid var(--noteBoxBorderColor);
	padding: 0.5rem;
	background-color: var(--noteBoxHeaderColor);
	text-shadow: 0 3px 5px black;
	
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 6px;
}

/*Warning Box*/
.warn{
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 6px;
	
	padding: 1rem;
	border: 3px var(--warnBoxBorderColor) solid;
	background-color: var(--warnBoxFillColor);
	color: var(--warnBoxTextColor);
	text-indent: 0;
	font-size: 0.7em;
}  
.warn:before{
	content: "\26A0  Warning! \00000a ";
	white-space: pre-wrap;
	font-weight: bold;
	display: block;
	margin-bottom: 0.5rem;
	border-bottom: 2px solid var(--warnBoxBorderColor);
	padding: 0.5rem;
	background-color: var(--warnBoxHeaderColor);
	text-shadow: 0 3px 5px black;
	
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 6px;
}

/*Tip Box*/
.tip{
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 6px;
	
	padding: 1rem;
	border: 3px var(--tipBoxBorderColor) solid;
	background-color: var(--tipBoxFillColor);
	color: var(--tipBoxTextColor);
	text-indent: 0;
	font-size: 0.7em;
}  
.tip:before{
	content: "\2714  Tip \00000a ";
	white-space: pre-wrap;
	font-weight: bold;
	display: block;
	margin-bottom: 0.5rem;
	border-bottom: 2px solid var(--tipBoxBorderColor);
	padding: 0.5rem;
	background-color: var(--tipBoxHeaderColor);
	
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 6px;
}

/*Important Box*/
.important{
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 6px;
	
	padding: 1rem;
	border: 3px var(--importantBoxBorderColor) solid;
	background-color: var(--importantBoxFillColor);
	color: var(--importantBoxTextColor);
	text-indent: 0;
	font-size: 0.7em;
}  
.important:before{
	content: "!  Important! \00000a ";
	white-space: pre-wrap;
	font-weight: bold;
	display: block;
	margin-bottom: 0.5rem;
	border-bottom: 2px solid var(--importantBoxBorderColor);
	padding: 0.5rem;
	background-color: var(--importantBoxHeaderColor);
	
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 6px;
}

/*Page types*/
.page_8_5x11{
	
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	
	border: var(--borderThemeColor_inactive) solid 1px;
	height: 11in;
	width: 8.5in;
	
	margin-bottom: 2em;
	
	padding-top: 2em;
	padding-bottom: 2em;
	
	overflow: scroll;
	
	box-shadow: rgba(0, 0, 0, 1) 5px 15px 10px;
}
.page_8_5x11 p{
	border: none;
	text-indent: 30px;
}


/*Tablet*/
@media only screen and (min-width: 901px){
	main{
		margin: auto;
	}
	.navList{
		flex-direction: row;
		justify-content: space-between;
		padding-left: 3em;
		padding-right: 3em;
	}
	.linkGroup li{
		display: inline;
	}
}

/*Desktop*/
@media only screen and (min-width: 1200px){
	main{
		margin: auto;
	}
	.navList{
		flex-direction: row;
		justify-content: space-between;
		padding-left: 3em;
		padding-right: 3em;
	}
	.linkGroup li{
		display: inline;
	}
}

/*Printer-friendly*/
@media print{
	body{
		background-color:#FFFFFF;
		background-image:none;
		color:#000000;
		padding: 0;
		margin: 0;
		overflow: hide;
		font-size: 12px;
	}
	p{
		border: 0px solid white;
		font-size: 12px;
		text-indent: 30px;
	}
	
	/*Open all details*/
	details{
		margin-top: 1em;
		margin-bottom: 1em;
		border-collapse: seperate;
		border: solid #bae8e8 1px;
		border-radius: 5px;
		-webkit-border-radius: 5px;
		-moz-border-radius: 5px;
	}
	::details-content{
		content-visibility: visible;
	}
	
	button{
		visibility: hidden;
		display: none;
		margin: 0;
	}
	
	.info{
		border: 3px var(--infoBoxBorderColor) solid;
		background-color: var(--infoBoxFillColor);
		color: var(--infoBoxTextColor);
	}
	.note{
		border: 3px var(--noteBoxBorderColor) solid;
		background-color: var(--noteBoxFillColor);
		color: var(--noteBoxTextColor);
	}
	.warn{
		border: 3px var(--warnBoxBorderColor) solid;
		background-color: var(--warnBoxFillColor);
		color: var(--warnBoxTextColor);
	}
	.important{
		border: 3px var(--importantBoxBorderColor) solid;
		background-color: var(--importantBoxFillColor);
		color: var(--importantBoxTextColor);
	}
	.tip{
		border: 3px var(--tipBoxBorderColor) solid;
		background-color: var(--tipBoxFillColor);
		color: var(--tipBoxTextColor);
	}
	
	.page_8_5x11{
		border: 0px white solid;
		box-shadow: rgba(255, 255, 255, 0) 0px 0px 0px;
		font-size: 12px;
	}
	
	.warn:before{
		text-shadow: none;
		font-size: 16px;
	}
	
	.note:before{
		text-shadow: none;
		font-size: 14px;
	}
	
	.info:before{
		text-shadow: none;
		font-size: 14px;
	}
	
	.important:before{
		text-shadow: none;
		font-size: 14px;
	}
	
	.tip:before{
		text-shadow: none;
		font-size: 14px;
	}
	
}