/*Static Reusable Fields*/
:root{
	--backgroundColor: #121212;
	--fontColor: #8b8b8b;
	--headerBackgroundColor: #15191d;
	--captionFontColor: #717171;
}

/*Phone*/
*{
	margin: 0;
}

body{
	background-color: var(--backgroundColor);
	color: var(--fontColor);
	
	transition: all 0.7s ease-out; 
	
	font-size: 24px;
	
	padding-top: 3em;
	padding-bottom: 3em;
	
	font-family: 'Atkinson Hyperlegible', sans-serif;
}
a{
	color: #5D688A;
}
a:hover{
	cursor: pointer;
	color: #0881a3;
}

h1,h2,h3,h4,h5{
	margin-top: 50px;
	text-align: left;
	margin-left: 5%;
}

hr{
	width: 30%;
	margin-left: 5%; 
}



details.toc a:hover{
	cursor: pointer;
	color: #0881a3;
}

.date{
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
	font-style: italic;
	margin-left: 5%;
}


p{
	margin-left: 5%;
	margin-right: 5%;
	margin-bottom: 10px;
	margin-top: 10px;
	text-indent: 30px;
}
ol{
	margin-left: 5%;
	margin-right: 5%;
}
ul{
	margin-left: 5%;
	margin-right: 5%;
}
input{
	margin-left: 5%;
	margin-right: 5%;
	background-color: #3f3f3f;
	color: white;
	font-size: 1rem;
}
textarea{
	margin-left: 5%;
	margin-right: 5%;
	background-color: #3f3f3f;
	color: white;
}

button{
	border: 1px solid black;
	
	background-color: #3f3f3f;
	color: white;
	
	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);
	
	touch-action: manipulation;
	
	font-family: 'Roboto', sans-serif;

}
button:hover{
	cursor: pointer;

	border: 1px solid yellow;
	transition-duration: 0.7s;
	
	background: #fff;
	color: #3D3D3D;
}
button:focus {
  box-shadow: 0px 0.5px 1px rgba(0, 0, 0, 0.1), 0px 0px 0px 3.5px rgba(58, 108, 217, 0.5);
  outline: 0;
}

header{
	position: fixed;
	padding-left: 30%;
	padding-right: 30%;
	
	width: 100%;
	height: 3em;
	font-size: 1.5em;
	
	background-color: #15191d;
	color: #bfbfbf;
	
	left: 0;
	top: 0;
	
	z-index: 800;
	
}

footer{
	position: fixed;
	display: block;

	width: 100%;
	
	background-color: #15191d;
	color: #bfbfbf;
	
	left: 0;
	bottom: 0;
}
footer p{
	margin-left: 1rem;
	background-color: #15191d;
	color: #bfbfbf;
	text-align: left;
}

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

.codeBlock{
	margin-top: 1em;
	margin-bottom: 1em;
	margin-left: 5%;
	margin-right: 5%;
}


/*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: auto;
	margin-top: 1em;
	margin-bottom: 1em;
	
	width: 50%;
	display: block;
}
figure{
	margin-left: 5%;
	margin-right: 5%;
	margin-top: 2rem;
	margin-bottom: 2rem;
	padding: 0.5rem;
	
	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;
}
.eq{
	border: 1px gray solid;
	background-color: #3f3f3f;
	color: #d3d3d3;
	font-size: 1rem;
}
.eq p{
	margin: 1em;
}
.eq figcaption{
	border-bottom: 1px gray solid;
}

.calc{
	margin-left: 5%;
	margin-right: 5%;
	margin-top: 2rem;
	margin-bottom: 2rem;
	
	border-collapse: seperate;
	border: solid #bae8e8 1px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	
	background-color: #506197;
	color: #cdcdcd;
}
.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 p{
	margin: 1em;
}
.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;
}

/*Table of Contents and Similar Tables*/
details.toc{
	margin-left: 5%;
	margin-right: 5%;
	margin-top: 1em;
	margin-bottom: 1em;
	
	transition: all 0.7s ease-in-out;
}
details[open].toc{
	background-color: #3f3f3f;
	
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	
	padding-bottom: 1em;
}
.toc summary{
	text-align: center;
	background-color: #3f3f3f;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}
.toc summary:hover{
	cursor: pointer;
	color: #0881a3;
}
details.toc a:hover{
	cursor: pointer;
	color: #0881a3;
}
details.toc table{
	margin-top: 1em;
	margin-bottom: 1em;
	margin-right: auto;
	margin-left: 1em;
	width: 90%;
	padding-bottom: 1em;
}

/*Navigation Styles*/
.siteNav{
	width: 100%;
	margin-bottom: 1.5em;
	position: fixed;
	top: 1.5em;
	color: var(--navBarFontColor);
	z-index: 9999;
}
.siteNav ul{
	top: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
	background-color: var(--headerBackgroundColor);
	padding-bottom: 1em;
}
.siteNav li{
	display: block;
	margin: auto;
	text-align: center;
	margin-bottom: 0.5em;
	margin-top: 0.5em;
}
.siteNav li a{
	font-size: 1.3em;
	text-decoration: none;
	color: var(--navBarFontColor);
	font-style: bold;
	align-items: center;
}
.siteNav li a:hover{
	color: white;
	cursor: pointer;
}

nav{
	transform: scale(1,0);
	transform-origin: top;
	transition: transform 0.25s ease-in-out 0.15s;
}

.nav-toggle{
	display: none;
}
.nav-toggle:checked ~ nav{
	transform: scale(1,1);
	transition: transform 0.25s ease-in-out;
}
.nav-toggle ~ nav a{
	opacity: 0;
	transition: opacity 0.15s ease-in-out;
}
.nav-toggle:checked ~ nav a{
	opacity: 1;
	transition: opacity 0.7s ease-in-out 0.3s;
}

.nav-toggle-label{
	position: fixed;
	top: 0;
	width: 1em;
	height: 1.5em;
	text-align: center;
	background-color: var(--headerBackgroundColor);
	font-size: 1.5em;
	margin-left: 10%;
	z-index: 801;
}
.nav-toggle-label:hover{
	cursor: pointer;
	color: white;
}
details.nav{
	border: solid #bae8e8 1px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	
	transition: all 0.7s ease-in-out;
}
details.nav summary{
	font-size: 1.3em;
	text-decoration: none;
	color: var(--navBarFontColor);
	font-style: bold;
	align-items: center;
	width: auto;
	padding-left: 1em;
	
	background-color: var(--headerBackgroundColor);
	
	border: solid #bae8e8 1px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}
details.nav summary:hover{
	cursor: pointer;
	color: white;
}
details[open].nav{
	background-color: black;
	
}
details[open].nav summary{
	background-color: var(--headerBackgroundColor);
}
details.nav table{
	margin-top: 1em;
	margin-bottom: 1em;
	margin-right: auto;
	margin-left: 1em;
	width: 90%;
	background-color: var(--headerBackgroundColor);
}
details.nav td{
	padding: 1em;
	
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}
details.nav tr:nth-of-type(2n){
	background-color: black;
}
details.nav a{
	font-size: 1em;
}

/*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;
		margin-left: 3%;
		margin-right: 3%;
}

/*Address Tool for Vector Tables and Registers*/
.adressTool{
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr 1fr;
	margin-left: 5%;
	margin-right: 5%;
	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);
}




/*Tablet*/
@media only screen and (min-width: 901px){
	
	body{
		padding-top: 3em;
		padding-bottom: 3em;
	}
	h1,h2,h3,h4,h5{
		margin-left: 10%;
		margin-right: 10%;
	}
	p{
		margin-left: 10%;
		margin-right: 10%;
	}
	ol{
		margin-left: 10%;
		margin-right: 10%;
	}
	ul{
		margin-left: 10%;
		margin-right: 10%;
	}
	
	header{
		padding-left: 20%;
		padding-right: 10%;
		font-size = '6px';
	}
	
	hr{
		width: 30%;
		margin-left: 10%; 
	}
	.date{
		font-style: italic;
		margin-left: 10%;
	}
	
	.codeBlock{
		margin-top: 1em;
		margin-bottom: 1em;
		margin-left: 5%;
		margin-right: 5%;
	}
	
	.calc{
		margin-top: 1em;
		margin-bottom: 1em;
		margin-left: 5%;
		margin-right: 5%;
	}
	
	table{
		margin-left: 10%;
		margin-right: 10%;
		
		min-width: 80%;
		max-width: 80%;
	}
	
	figure{
		margin-left: 10%;
		margin-right: 10%;
	}
	input{
	margin-left: 10%;
	margin-right: 10%;
	}
	textarea{
	margin-left: 10%;
	margin-right: 10%;
	}
	
	details.toc{
		margin-left: 10%;
		margin-right: 10%;
	}
	
	.siteNav{
		width: 100%;
		margin-bottom: 1.5em;
		position: fixed;
		top: 1.5em;
		color: var(--navBarFontColor);
		z-index: 9999;
	}
	
	.adressTool{
		margin-left: 10%;
		margin-right: 10%;
	}
	pre{
	margin-left: 10%;
	margin-right: 10%;
	}
}

/*Desktop*/
@media only screen and (min-width: 1200px){
	body{
		padding-top: 3em;
		padding-bottom: 3em;
		font-size: 24px;
	}
	h1,h2,h3,h4,h5{
		margin-left: 20%;
		margin-right: 20%;
	}
	hr{
		margin-left: 20%; 
	}
	p{
		margin-left: 20%;
		margin-right: 20%;
	}
	ol{
		margin-left: 20%;
		margin-right: 20%;
	}
	ul{
		margin-left: 20%;
		margin-right: 20%;
	}
	
	header{
		padding-left: 5px;
		padding-right: 5px;
		text-align: center;
		height:  1.5em;
		font-size: '6px';
	}
	
	.date{
		margin-left: 20%;
	}
	
	.codeBlock{
		margin-top: 1rem;
		margin-bottom: 1rem;
		margin-left: 20%;
		margin-right: 20%;
	}
	
	table{
		overflow-x: auto;
		table-layout: fixed;
		
		margin: 4rem auto 4rem auto;
	}
	
	input{
	margin-left: 20%;
	margin-right: 20%;
	}
	textarea{
	margin-left: 20%;
	margin-right: 20%;
	}
	
	.graph{
		min-height: 20em;
		display: block;
		margin-left: 20%;
		margin-right: 20%;
	}
	
	figure{
		margin-left: 20%;
		margin-right: 20%;
	}
	
	details.toc{
		margin-left: 20%;
		margin-right: 20%;
	}
	pre{
	margin-left: 20%;
	margin-right: 20%;
	}
	
	.calc{
		margin-left: 20%;
		margin-right: 20%;
	}
	
	/*Nav Bar*/
	.siteNav{
		height: 100%;
		width: 25%;
		margin-bottom: 1.5em;	
		position: fixed;
		top: 2em;
		color: var(--navBarFontColor);
		background-color: var(--headerBackgroundColor);
		z-index: 9999;
	}
	.siteNav li{
		display: block;
		margin: auto;
		text-align: left;
		margin-bottom: 0.5em;
		margin-top: 0.5em;
		margin-left: 1em;
		margin-right: 1em;
	}
	nav{
		transform: scale(0,1);
		transform-origin: left;
		transition: transform 0.25s ease-in-out 0.15s;
		padding-top: 1em;
	}
	
	.nav-toggle{
		display: none;
	}
	.nav-toggle:checked ~ nav{
		transform: scale(1,1);
		transition: transform 0.25s ease-in-out;
	}
	.nav-toggle ~ nav a{
		opacity: 0;
		transition: opacity 0.15s ease-in-out;
	}
	.nav-toggle:checked ~ nav a{
		opacity: 1;
		transition: opacity 0.7s ease-in-out 0.3s;
	}
	
	.nav-toggle-label{
		position: fixed;
		top: 0;
		width: 1em;
		height: 1.5em;
		text-align: center;
		background-color: var(--headerBackgroundColor);
		font-size: 1.5em;
		margin-left: 10%;
		z-index: 801;
	}
	.nav-toggle-label:hover{
		cursor: pointer;
		color: white;
	}
	
	.adressTool{
		margin-left: 20%;
		margin-right: 20%;
	}
	
	.eq{
		font-size: 1.5rem;
	}
}