/****** Configuration ******/

:root {
	--main-bg-color: #241e19;
	--main-bg-color2: #313131;
	--main-fg-color: #ffffffcc;
	--main-fg-color-light: #fff;
	--main-shadow-color: #5f5c41c9;
	--main-highlight-bg-color: #ffffff12;

	--main-font-size: 20px;

	--z-index-menu: 100;
	--z-index-menubutton: 101;
}

/****** TODO ******/

/* Mobile */
@media (hover: none) {
	html {
		font-size: 16px;
	}
}

/* Desktop */
@media not (hover: none) {

}


/****** Fonts ******/

@font-face {
	font-family: "Charm";
	src: url(/font/Charm-Regular.ttf);
}

@font-face {
	font-family: "Almendra";
	src: url(/font/Almendra-Regular.ttf);
}


/****** Main ******/

html {
	font-family: "Charm", sans-serif;
	font-size: var(--main-font-size);
	background: linear-gradient(to bottom, var(--main-bg-color) 0%, var(--main-bg-color2) 100%);
	min-height: 100%;
	color: var(--main-fg-color);
	box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
	text-shadow: var(--main-shadow-color) 1px 1px 3px;
}

a, a:visited {
	color: var(--main-fg-color-light);
}


/*** Main Layout ***/

#container {
	height: 100vh;
	display: grid;
	grid-template-areas: 
		"header header"
		"navig content"
		"footer footer";
	grid-template-columns: 8em auto;
	grid-template-rows: auto 1fr auto;

	& > header {
		grid-area: header;
	}

	& #navigation {
		grid-area: navig;
	}

	& #content {
		grid-area: content;
		overflow: auto;
	}

	& footer {
		grid-area: footer;
	}
}


#container > header {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0.5em 1em;
}


#navigation {
	font-size: 1.25em;

	& ul {
		list-style: none;
		padding: 0;
		margin: 0;

		& li {
			display: block;
			padding: 0.5em;

			cursor: pointer;

			&:hover {
				background: var(--main-highlight-bg-color);
			}

			&.active {
				background: var(--main-highlight-bg-color);
			}
		}
	}

	& a {
		text-decoration: none;
	}
}

#container > footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	font-size: 0.65em;
	padding: 0.5em 1em;

}

/****** Box ******/

.box {
	border: 4px ridge #976;
	padding: 0.5em 1em;
	margin: 0 0 1em 0;
	line-height: 1.5em;
	list-style-image: radial-gradient(circle at center, #976, transparent 70%);
	width: max-content;

	& > ul {
		padding-left: 0;
	}
}

.downloads {
	display: flex;
	justify-content: center;
	padding-top: 2em;

	& .navitem {
		cursor: pointer;
		display: flex;
		align-items: center;
		gap: 0.25em;
		margin-bottom: 0.5em;
	}
}

/****** Chroniken ******/

#content.chroniken {
	font-family: "Charm";
	display: flex;
	justify-content: center;

    h1, h2, h3, h4, h5, h6 {
        font-family: "Almendra";
    }

    h1 {
		display: flex;
		justify-content: center;
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.5rem;
    }

    .chronicles-container {
        color: #213;
        text-shadow: none;
        max-width: 40rem;
	    background-color: #fff5eecc;
    	box-shadow: 5px 5px 10px black, 0 0 40px #8a4d0f inset;
		/* filter: url(#wavy2) blur(0.2px); */
		height: max-content;
		margin-bottom: 2em;
		padding: 0 1em 1em 1em;
    }

    #chronicles-container > h1 {
		position: relative;
        margin: 2rem 0 2rem 0;
		display: flex;
		justify-content: center;
    }

	#chronicles-container > section {
		position: relative;
		margin: 2rem 2rem 4rem 2rem;
	}

    #chronicles-container > section > h2 {
        margin-bottom: 0 0 1rem 0;
    }

	svg {
		height: 0px;
		width: 0px;
	}
}


/****** Secret video gallery ******/

.videogallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	padding: 1em;
	gap: 1em;

	& img {
		width: 150px;
	}
}

/****** Normalization ******/

/*** Mine ***/

figure {
    margin: 0;
}

/*** Other ***/

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

a, a:visited {
    color: inherit;
    text-decoration: underline;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}


b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}


img {
    border-style: none;
}


button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}


button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}


legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}



[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}


[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}


::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

details {
    display: block;
}

summary {
    display: list-item;
}
