/* STENTOR.CSS v1.0 */
/* HTML/CSS layout template from https://ribo.zone/free/layouts/ */
/* last updated: august 11, 2023 */

:root {
	--text: #292929;
	--line: #1E0F08;
	--accent: #757575;
	--bg: #452B1B;
	--fill: #B0B0B0;
}

body { 
	color: var(--text);
	font-family: verdana, sans-serif; 
}

* { 
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	scrollbar-color: var(--text) var(--line);
}

*::-webkit-scrollbar { 
  width: 20px;
}
*::-webkit-scrollbar-track { background: var(--line); }
*::-webkit-scrollbar-thumb { background-color: var(--text); border: transparent; }

img { max-width: 100% }

nav {
	float: left;
	width: 15%;
	height: 100%;
	position: fixed;
	background: url(images/forest.jpg) no-repeat ;
	background-size: 130%;
}

nav div {
	height: fit-content;
	width: fit-content;
	position: absolute;
	top: 50%;
	right: -1vw;
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);

	text-align: right;
}

nav div img {
  width:100%;
  position: relative;
  left: 1vw;
	right: -.5vw;
}

.nav {
	display: block;
	margin: 10px 0;
	padding: 0;
	font-size: 2rem;
	text-decoration: none;
	color:var(--fill);
	filter: drop-shadow(1px 1px 0 var(--text)) 
			drop-shadow(-1px 1px 0 var(--text)) 
			drop-shadow(0 -1px 0 var(--text)) 
			drop-shadow(1px 0 var(--text));
}

.mini{
  display: block;
	margin: 10px 0;
	padding: 0;
  font-size:.75rem;
  color:var(--text);
 filter: drop-shadow(1px 1px 0 var(--fill));

}

nav a:hover, nav a:focus {
	color: var(--accent);
}

.stripe {
	float: right;
	position:fixed;
	width: 15%;
	height: 100vh;
	background-color: var(--line);
}

main {
	float:right;
	width: 85%;
	max-height: 100%;
  padding:.5rem .5rem .5rem 2.5rem;
	background-color: var(--bg);
	background-image: url(images/x2.png);
}

.container { 
  max-width: 1500px;
  
}

.header {
  height: 11rem;
  text-align: center;
  background: var(--fill);
  background-size: 130%;
}

section {
  margin:.5rem ;
	padding: 1rem 2rem;
	background-color: var(--fill);
}

.sidebar{
  width:24%;
  float:right;
  max-height:40em;
  overflow-y: scroll;
}

.prime{  
  max-height:50em;
  width:72%;
  float:left;
}

.prime-a{
  padding-bottom:.5rem;
  max-height:38em;
  width:65%;
  overflow-y:scroll;
}


hr {
	border: none;
	border-top: 5px solid var(--line);
}


h2, h3, h4, h5, h6, p, table, details, cite, blockquote, img {
	margin: 1rem 0;
	color: #3D4125;
}

ul, ol, dl {
	margin: 1rem 0 1rem 2rem;
}

ul ul, ol ol { 
	margin: 0 0 0 2rem;
}

p, table,  ul, ol, dl {
	font-size: 1rem;
}

a { 
	color: var(--accent);
	padding: 2px;
}

p a:hover { 
	color: var(--fill);
	background-color: var(--accent);
}

h6 { font-size: 1rem; }
h5 { font-size: 1.25em; }
h4 { font-size: 1.5rem; }
h3 { font-size: 1.75rem; }
h2 { font-size: 2rem;
	text-align: center;
	background-color: var(--accent);
	padding: 5px;
}

blockquote {
	background-color: var(--accent);
	color: var(--fill);
	padding: 1rem;
}

blockquote a, blockquote code {
	color: var(--text);
}

cite { 
	display: block;
	text-align: right;
}

code, details, pre {
	background-color: var(--bg);
}

code { 
	font-family: 'Courier New', monospace; 
	padding: 2px;
}

details, pre {
	padding: 1rem;
}

pre { overflow-x: auto; }

details p { margin: 1rem 0 1rem 2rem; }

table {	border: 5px solid var(--line); }
tr, td, th { border: 2px solid var(--line); }
td, th { padding: 3px }

figcaption { 
	text-align: center;
	margin: -0.5em 1rem 1rem 1rem;
}

footer { 
	font-size: 1rem;
	text-align: center;
	background-color: var(--accent); 
	margin-top: 2rem;
	padding: 5px;
}

footer a { color: var(--text); }

.flex-box {
    display:flex;
    flex-wrap:wrap;
    margin: -1rem;
	align-items: flex-start;
}

.flex-box section {
	margin: 1rem;
	}

.full { flex: 1 1 100%;}
.half { flex: 1 1 calc(50% - 2rem); }
.third { flex: 1 1 calc(33% - 2rem); }
.twothird { flex: 1 1 calc(66% - 2rem); }
.quarter { flex: 1 1 calc(25% - 2rem); }
.threequarter { flex: 1 1 calc(75% - 2rem); }

@media screen and (max-width: 800px){

	nav, main, .stripe {
		float: none;
		width: 100%;
		height: fit-content;
	}
	
	nav { padding: 2vw }
	
	nav div {
		height: fit-content;
		width: 100%;
		position: static;
		-ms-transform: translateY(0);
		transform: translateY(0);
		text-align: right;
	}
	
	nav img {
		z-index: -1;
		position: absolute;
		left:0;
		max-height: 100%;
	}
	
	nav p a {
		display: inline-block;
		margin: 5px;
	}
	
	nav a::after { content: " ↗"; }
	
	main { 
		overflow: auto;
		padding: 1rem 1rem;
}
	
	header { 
		text-align: center;
		font-size: 1.5rem;
	}
	
	section { padding: 0 .5rem; }
	
	.stripe { height: 30px; }
	
	*::-webkit-scrollbar { width: 10px; }
	
}