
:root {
	--bg-color: #DAD3C1; /*#E8E8E8;*/
/*	--bg-light: #f7ebcb;
	--bg-dark: #978b6b; */
	--bg-dark: #d1bb9b;
	--bg-light: #fdf1d1;
	--bg-light: #fff3d3;
	--text-color: #111;
	--section-color: #ffffff;
	--footer-color: #3B4F51;
	--accent-color: #cccccc;

	--navbar-bg-color: #fff;
	--navbar-text-color: #111;
	--navbar-accent-color: #855;
	--navbar-height: 3.5rem;
	/*--toc-width: max(12rem, 20%);*/
	--toc-width: 12rem;
	--header-scroll-margin: 5rem;
	--header-scroll-margin: calc(var(--navbar-height) + 1rem);

	interpolate-size: allow-keywords;
	--soft-corner: 0.3rem;
}

* {
	margin: 0;
	padding: 0;
} 

html {
	font-size: clamp(14px, 1.1rem, 2rem);
	font-family: Bookinsanity, sans-serif;
	scrollbar-gutter: stable;
}

body {
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: var(--bg-light);	
	background-image: linear-gradient(var(--bg-dark) 10%, var(--bg-light));
	/*
	background-image: linear-gradient(black 10%, orchid);
	*/
        background-repeat: no-repeat; 
	background-attachment: fixed;
	/*
	background-image: url("images/parchbg4.png");
	background-blend-mode: normal;
	background-position: center; 
        background-repeat: no-repeat; 
        background-size: cover; 
	*/
}

hr {
	max-width: 70%;
	margin-top: 2rem;
	margin-bottom: 2rem;
	border-width: 0;
	border-bottom-width: 3px;
	border-style: solid;
	border-image: linear-gradient(to left, rgba(255, 0, 0, 0) 20%, rgba(255, 0, 0, 100)) 1;
}


h1,h2,h3,h4,h5,h6 {
	font-family: Mr Eaves Small Caps, sans-serif;
	/*scroll-margin-top: 30px;*/
	scroll-margin-top: var(--header-scroll-margin);
}

h1 {
	max-width: 30rem;
	margin-bottom: 2rem;
	border-width: 0;
	border-bottom-width: 3px;
	border-style: solid;
	border-image: linear-gradient(to left, rgba(255, 0, 0, 0) 20%, rgba(255, 0, 0, 100)) 1;
}

h2 {
	max-width: 30rem;
	margin-bottom: 1.2rem;
	border-width: 0;
	border-bottom-width: 2px;
	border-style: solid;
	border-image: linear-gradient(to left, rgba(255, 0, 0, 0) 20%, rgba(255, 0, 0, 100)) 1;
}

p { 
	/* top | right | bottom | left */
	margin: 1rem 0	1rem 0;
}

a {
	font-family: Mr Eaves Small Caps, sans-serif;
	text-decoration: none;
	color: var(--navbar-text-color);
}

a:hover {
	color: var(--navbar-accent-color);
}

table {
	border-collapse: separate;
	border-spacing: 3px;
}
th {
	background-color: #CA605B;
	padding-left: 15px;
	padding-right: 15px;
}
tr {
	height: 1.6rem;
	background-color: #F8E9DE;
}
tr:nth-child(even) {
	background-color: #F4DAC3;
}

td {
	text-align: center;
	padding: 4px;
}

code {
	display: block;
	white-space: pre-wrap;
	background-color: #FDF1DC;
}

section {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	width: clamp(300px, 90vw, 1600px);
	flex-grow: 1;
	position: relative;
	z-index: 1;
}
section > * {
	/* top | right | bottom | left */
	margin: 0 1.5rem 1.5rem 1.5rem;
}

.anchor {
	display: block;
	position: relative;
	top: calc(-1*var(--navbar-height));
	visibility: hidden;
	max-height: 0;
}

.logo_bak {
	position: absolute; 
	left: 50%;
	top: 30px;
	transform: translate(-50%, -50%);
	width: 50%;
	z-index: 12;
}

.biglogo {
	margin-top: 70px;
	display: flex;
	justify-content: center;
}
.rune {
	font-weight: bold;
	font-size: 1.5rem;
}

/*
#intro {
	padding-top: 1.5rem;
}

#contact {
	background-color: #777;
	color: var(--text-color);
}
*/

nav {
	display: flex;
	width: 100vw;
	height: var(--navbar-height);
	background-color: var(--navbar-bg-color);
	justify-content: center;
	align-items: end; 
	position: sticky;
	top: 0;
	z-index: 10;
	box-shadow: 0 5px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
}

nav a {

	display: flex;
	align-items: center;
	text-decoration: none;
	color: var(--navbar-text-color);
	font-size: 0.8rem; 
	letter-spacing: .1rem;
	white-space: nowrap;
	box-sizing: border-box;
	height: auto;
	padding: 0.1rem;
	margin-left: 0.4rem;
	width: min-content;
	margin-left: 0.4rem;
	margin-bottom: 0.4rem;
	left: 0;

}

nav  a:hover {
	color: var(--navbar-accent-color);
}

nav .home-link {
	margin-right: auto;
}

nav svg {
	fill: var(--text-color);
	height: calc(var(--navbar-height)/2);
}

ol {
	list-style-position: outside;
	margin-left: 1rem;
}

ul {
	list-style-position: outside;
	/*list-style-type: "\16A6"; */
	list-style-type: "\16F0";
	margin-left: 1rem;
}

ul > li {
	padding-left: 0.5rem;
}

#maincont {
	margin-top: 1rem;
	margin-left: calc(var(--toc-width) + 12px);
	min-width: 15rem;
	/*top right bottom left*/
	padding: 20px;
	border-radius: var(--soft-corner);
	background-color: var(--section-color);	
}

.links-container {

	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	position: fixed;
	top: 0;
	left: 0%;
	z-index: 10;
	width: var(--toc-width);
	box-shadow: -5px 0 5px rgba(0, 0, 0, 0.2);
	transition: 0.25s ease-out;

	background-color: #fff;
	display: flex;
	margin-top: calc(var(--navbar-height) + 1rem);
	margin-left: 2rem;
	margin-right: 2rem;
	padding: 0.5rem;
	padding-right: 0;
	border-radius: var(--soft-corner);

	/*
	padding: 0 3rem;
	width: 100%;
	flex-direction: row;
	align-items: center;
	padding-top: var(--navbar-height);
	*/
	
}

.links-container h2 {
	border-width: 0;
}

.links-container  h2 {
	font-size: 1.05rem;
	margin: 0;
	margin-top: 0.1rem;
}

#toc-container {
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 10;
	width: 10rem;
	background-color: var(--navbar-bg-color);
	box-shadow: -5px 0 5px rgba(0, 0, 0, 0.2);
	transition: 0.75s ease-out;
	padding: 0;

}


#sidebar-active {
	display: none;
}

.open-sidebar-button, .close-sidebar-button {
	display: none;
}

input[type='radio']{
	display: none;
}


summary {
	&::marker {
		content: "";
	}
}

details {
	cursor: pointer;
}

details::details-content {
	block-size: 0;
	overflow: hidden;
	transition: block-size 0.3s, content-visibility 0.3s;
	transition-behavior: allow-discrete;
}

details:open::details-content {
	block-size: auto;
}



@media(max-width: 575px) {
	.links-container {
		left: -100%;
		margin-top: 0;
		margin-left: 0;

	}

	#maincont {
		margin-left: 0;
	}

	.logo {
		display: none;	
	} 
	
	.open-sidebar-button, .close-sidebar-button {
		display: flex;
		margin-right: auto;
		padding: 20px;
		margin-top: -10px;
	}
	
	#sidebar-active:checked ~ .links-container {
		left: 0;
	}
	
	#sidebar-active:checked ~ #sidebar-overlay {
		height: 100%;
		width: 100%;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 9;
	}


}


