@charset "utf-8";
/* CSS Document */

		:root {
			--text: black;
			--backdrop: white;
			--accent: #EA5200;
			--accent-bright: #FF9D00;
			--accent-brighter: #FFDC00;
			--inactive: #808080;
			--contrast: #A13203;
			--contrast-faded: #7D3313;
			--red-dark: #730800;
			--red-light: #AB1600;
			--gradient-end: #CC3D00;
			--help-Ukraine: #730800;
			--help-Ukraine-bright: red;
			--animation-play-state: running;
		}
		
		* {margin: 0; padding: 0; box-sizing: border-box;}

		html {font-size: 13pt; width: 100%; scroll-behavior: smooth;}

header, footer {
	width: 100%;
	display: flex;
	font-family: 'Alegreya', serif;
	font-size: 11pt;
}

#mobile-header {display: none;}

nav {
	position: fixed;
	top: 1em;
	display: flex;
	left: 50%;
	transform: translateX(-50%);
	gap: 0.5em;
	justify-content: center;
	z-index: 25;
	transition: none;
		}
		
		nav.displayed {
			left: 0;
		}

.desktop-hidden {display: none !important;}

nav ul {background-color: white;}

nav picture {
	filter: drop-shadow(0.1rem 0.1rem 0.1rem hsla(0, 0%, 0%, 0.5));
	height: 1em;
	width: auto;
}

nav picture source, nav picture img {/*display: block;*/ height: 1em; width: auto; position: relative; top: 0.1em;}

nav ul {display: flex; list-style-type: none;}

nav li {position: relative; white-space: nowrap;}

nav li:hover > ul {display: block; z-index: 30;}

nav a:hover abbr {text-decoration: none;}
#secondaryNavOptions a {cursor: pointer;}

/*LEVEL 1*/

nav > ul {
	padding: 0 0.2em;
	box-shadow: 0.1rem 0.1rem 0.25rem 0.1rem hsla(0, 20%, 20%, 0.25);
}

nav > ul > li {padding: 0 0.2em; position: relative;}
nav > ul > li:not(:last-child):after {
	content: "";
	position: absolute;
	right: 0;
	top: 5%;
	height: 90%;
	border-right: 1px solid var(--inactive);
}

/*LEVEL 2*/

nav > ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	box-shadow: 0.125rem 0.15rem 0.25rem 0.1rem hsla(0, 20%, 20%, 0.25);
}

nav > ul > li > ul li {padding: 0 0.4em 0 0.25em;}
nav > ul > li > ul li:first-child {padding-top: 0.1em;}
nav > ul > li > ul li:last-child {padding-bottom: 0.15em;}

nav > ul > li li.has-dropdown::after {
			content: "\2767";
			padding-left: 0.5em;
		}

.indexpage {font-style: italic;}

/*SUBSEQUENT LEVELS*/

nav > ul > li > ul ul {
	top: 0;
	left: 100%;
}

/*LINK COLORS*/

nav li {color: var(--inactive); cursor: default;}
.has-dropdown {color: var(--text);}

@media only screen and (min-width: 620px) {
	.has-dropdown {
		display: flex;
		justify-content: space-between;
	}
}
/* .has-dropdown:hover::after {color: var(--accent-bright);} */
.no-active-children {color: var(--inactive);}
.featured {color: var(--text);}

nav a {color: var(--text); text-decoration: none;}

nav a:hover {color: var(--accent-bright); text-decoration: underline;}
nav a:active {color: var(--accent-brighter);}



.helpUkraine {color: var(--help-Ukraine); font-weight: 600;}
.helpUkraine:hover {color: var(--help-Ukraine-bright);}

.current-section, .current-section > a, .current-page {color: var(--accent);}

/*FOOTER*/

footer {
	background-color: white;
	box-shadow: 0.1rem 0.1rem 0.25rem 0.1rem hsla(0, 20%, 20%, 0.25);
	width: 40.25rem; /*697.66 px ~= 697.13 px (header)*/
	padding: 0 0.2em;
	display: flex;
	margin: 1rem auto;
}

footer p {padding: 0 0.2em; position: relative;}
footer p:not(:last-child, :nth-last-child(2)):after {
	content: "";
	position: absolute;
	right: 0;
	top: 5%;
	height: 90%;
	border-right: 1px solid var(--inactive);
}

footer p:last-child {margin-left: auto; font-style: italic;}

.popout {
	background-color: white;
	box-shadow: 0.1rem 0.1rem 0.25rem 0.1rem hsla(0, 20%, 20%, 0.25);
	font-size: 11pt;
	padding: 0.75rem 0.5rem 0.5rem;
	position: absolute;
	left: 0;
	bottom: 1.15rem;
	display: none;
}

#rss {
	flex-direction: row;
	align-items: baseline;
	gap: 0.2rem;
}

		#pagelink {
			font-family: 'Alegreya', serif;
			border: 1px solid var(--inactive);
			border-radius: 0.2rem;
			padding: 0.1rem 0.2rem;
		}
		
		#copylink {
			border: none;
			font-family: 'Alegreya', serif;
			white-space: nowrap;
			display: block;
			color: white;
			background-color: var(--red-dark);
			border-radius: 0.2rem;
			padding: 0.1rem 0.2rem;
			text-align: center;
			width: fit-content;
			margin-bottom: 0.2rem;
			text-decoration: none;
		}

#contacts {
	flex-direction: column;
	align-items: center;	
}

		#contacts a:not(:last-child) {
			display: block;
			color: white;
			background-color: var(--red-dark);
			border-radius: 0.2rem;
			padding: 0.1rem 0.2rem;
			text-align: center;
			width: fit-content;
			margin-bottom: 0.2rem;
			text-decoration: none;
			cursor: pointer;
		}

		#contacts a:not(:last-child):hover {
			background: radial-gradient(circle at 50% 100%, var(--gradient-end) 10%, var(--red-light) 60%);
			text-decoration: underline;
		}
		
		#contacts a:last-child {color: var(--accent); white-space: nowrap;}
		#contacts a:last-child:hover {color: var(--accent-bright);}
		#contacts a:last-child:active {color: var(--accent-brighter);}

footer > p > a {color: var(--accent); text-decoration: underline; cursor: pointer;}
footer > p > a:hover {color: var(--accent-bright);}
footer > p > a:active {color: var(--accent-brighter);}

/*= MOBILE =*/

@media (max-width: 875px) {
	nav {
		flex-wrap: wrap;
		justify-content: flex-end;
	}
}

@media (max-width: 620px) {
	
	.mobile-hidden {display: none !important;}
	.desktop-hidden {display: initial !important;}
	
	#mobile-header {
		display: block;
		position: fixed;
		background-color: white;
		box-shadow: 0.1rem 0.1rem 0.25rem 0.1rem hsla(0, 20%, 20%, 0.25);
		top: 0;
		left: 0;
		right: 0;
		display: flex;
		padding: 0.25rem 0.4rem;
		font-size: 10pt;
		gap: 0.25rem;
		z-index: 30;
	}
	
	#mobile-header > button {
		border: 1px solid var(--red-dark);
		border-radius: 0.2em;
		padding: 0.1em 0.5em 0;
		color: var(--red-dark);
		background-color: white;
		font-family: 'Alegreya', serif;
		font-size: 10pt;
		cursor: pointer;
	}
	
	#mobile-header > button:hover {
		background-image: linear-gradient(to bottom, var(--red-dark), var(--red-light));
		color: white;
		text-decoration: underline;
	}
	
	#mobile-header > #mobile-open-nav {padding: 0 0.2em;}
	
	#mobile-open-nav:not(:hover) > img { /*https://codepen.io/sosuke/pen/Pjoqqp*/
		filter: brightness(0) saturate(100%) invert(12%) sepia(49%) saturate(4045%) hue-rotate(355deg) brightness(95%) contrast(115%);
	}
	
	#mobile-open-nav > img {
		height: 0.7rem;
		width: auto;
		position: relative;
		top: 0.2em;
	}
	
	#mobile-running-head {
		display: flex;
		flex: 1 1 auto;
		align-items: flex-end;
		justify-content: flex-end;
		gap: 0.25rem;
		overflow: scroll;
		white-space: nowrap;
		-ms-overflow-style: none;
		scrollbar-width: none;
		scroll-snap-align: end;
	}
	
	#mobile-running-head::-webkit-scrollbar {
		display: none;
	}
	
	nav {
		/*display: block;*/
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		position: fixed;
		top: 0;
		bottom: 0;
		left: -200vw;
		max-width: 100vw;
		max-height: 100dvh;
		transform: none;
		background-color: white;
		box-shadow: 0.1rem 0.1rem 0.25rem 0.1rem hsla(0, 20%, 20%, 0.25);
		padding: 2rem 1rem 1.5rem;
		/*overflow-y: scroll;*/
		transition: left 0.75s;
	}
	
	/*nav picture, nav ul + ul {flex: 0 0 auto;}*/
	
	nav picture source, nav picture img {
		height: auto;
		width: 100%;
	}
	
	nav picture {
		filter: none;
		flex: 0 0 auto;
		width: 100%;
		height: auto;
	}
	
	nav ul {
		display: block !important;
		background-color: transparent !important;
		box-shadow: none !important;
		position: relative !important;
		inset: 0 0 0 0 !important;
		padding: 0 !important;
		margin-left: 1.5rem;
	}
	
	nav > ul {margin-top: 0.5rem;}
	
	nav > ul:first-of-type {
		overflow-y: scroll;
		/*flex: 0 1 auto;*/
		box-shadow: inset 0 0.1rem 0.25rem 0.1rem hsla(0, 20%, 20%, 0.25) !important;
	}
	
	nav > ul:first-of-type > li {
		position: relative;
		list-style-position: inside;
	}
	
	nav > ul:first-of-type > li:not(:last-child):after {
		content: '';
		display: block;
		position: absolute;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		height: 1px;
		background-image: linear-gradient(to right, transparent 10%, var(--inactive) 20%, var(--inactive) 50%, transparent 80%);
	}
	
	#secondaryNavOptions {
		display: flex !important;
		flex-direction: row;
		justify-content: flex-end;
		gap: 0.75rem;
		flex-wrap: wrap;
	}
	
	#secondaryNavOptions li::marker {content: none;}
	
	#secondaryNavOptions a {
		border: 1px solid var(--red-dark);
		padding: 0.1em 0.2em 0;
		border-radius: 0.2em;
		color: var(--red-dark);
	}
	
	#secondaryNavOptions a:hover {
		background-image: linear-gradient(to bottom, var(--red-dark), var(--red-light));
		color: white;
	}
	
	nav ul ul {margin-left: 1.5rem;}
	
	nav li {
		padding: 0 !important;
		white-space: normal;
	}
	
	nav li.desktop-hidden {display: list-item !important;}
	nav li::marker {font-size: 10pt; content: "\2767\2003"; color: transparent;}
	nav li:has(> a)::marker {color: black;}
	nav li:has(> .helpUkraine)::marker {color: var(--help-Ukraine);}
	nav li:has(> .helpUkraine:hover)::marker {color: var(--help-Ukraine-bright);}
	.current-section::marker {color: var(--accent);}
	nav li:has(> .current-page)::marker {color: var(--accent);}
	
	nav li.indexpage::marker {font-style: normal;}
	
	nav li:has(> a:hover)::marker {color: var(--accent-bright);}
	nav li:has(> a:active)::marker {color: var(--accent-brighter);}
	
	nav li::after {border-right: none !important;}
	
	li.has-dropdown::after {display: none;}
	
	#contents {
		z-index: 25;
		width: 100%;
		height: 100%;
		right: 0 !important;
		overflow-y: scroll;
	}
	
	main {min-height: 100dvh;}
	
	footer {
		width: 100%;
		margin: 1rem 0 1rem;
		padding: 0 0.3rem 0.2rem;
	}
}

@media (max-width: 575px) {
	footer {flex-wrap: wrap;}
	
	footer > p:last-child {flex: 1 0 100%; text-align: right;}
}

/*= ADDITIONAL =*/

		.openPopout {
			display: flex;
			position: absolute;
		}
		
		#contents {
			position: fixed;
			top: -200%;
			right: 15vw;
			font-family: 'Alegreya', serif;
			font-size: 13pt;
			background-color: white;
			box-shadow: 0.1rem 0.1rem 0.25rem 0.1rem hsla(0, 20%, 20%, 0.25);
			padding: 2.5rem 2rem 1.5rem 1rem;
			transition: top 0.75s;
		}
		
		#contents.displayed {
			top: 0;
		}
		
		.close {
			display: block;
			width: 1rem;
			height: 1rem;
			border: 1px solid var(--red-dark);
			border-radius: 0.1rem;
			color: var(--red-dark);
			background-color: white;
			font-size: 12pt;
			cursor: pointer;
		}
		
		.close:hover {
			background-image:linear-gradient(to bottom, var(--red-dark), var(--red-light));
			color: white;
		}
		
		#contents .close, nav .close {
			position: absolute;
			top: 3rem;
			right: 1rem;
		}
		
		#contents h2 {
			font-size: 18pt;
			/*background-clip: text;
			text-fill-color: transparent;
			-webkit-background-clip: text;
    		-moz-background-clip: text;
   			-webkit-text-fill-color: transparent; 
    		-moz-text-fill-color: transparent;
			background-image: linear-gradient(to bottom, var(--red-dark), var(--red-light));*/
		}
		
		#contents ul {list-style-position: inside !important;}
		
		#contents > ul > li::marker {
			font-size: 10pt;
			content: "";
		}
		
		#contents li > ul li {
			font-size: 11pt;
		}
		
		#contents > ul > li:last-child {font-size: 11pt !important;}
		
		#contents li > ul li::marker {font-size: 10pt; content: "\2767\2003" !important;}

		#contents a {color: var(--accent);}
		#contents a:hover, #contents li:has(a:hover)::marker {color: var(--accent-bright);}
		#contents a:active, #contents li:has(a:active)::marker {color: var(--accent-brighter);}
		
		#tobottom {font-style: italic;}
		li:has(#tobottom)::marker, li:has(#tobottom:active)::marker {color: transparent !important;}
		
		#discord {
			position: fixed;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
			padding: 0.75rem 1rem 1rem;
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			justify-content: center;
			gap: 0.5rem;
			color: white;
			font-size: 13pt;
			z-index: 50;
			display: none;
			width: fit-content;
		}
		
		#discord span {text-align: center; display: block; width: 1rem; flex: 0 0 100%;}
		
		#discord button {
			color: white;
			background-color: transparent;
			border: 1px solid white;
			font-family: 'Alegreya', serif;
			padding: 0 0.4rem;
			border-radius: 0.15rem;
			cursor: pointer;
		}
		
		#discord button:hover {
			background-color: white;
			color: var(--red-dark);
			text-decoration: underline;
		}
		
		#discord:after {
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			z-index: -1;
			background-color: var(--red-dark);
			height: 100%;
			width: 100%;
			border-radius: 0.25rem;
			mix-blend-mode: multiply;
		}