:root {
	--text-color: hsl(222, 56%, 4%);
	--hylyt-color: hsl(219, 100%, 42%);
	--bkgnd-color: hsl(240, 100%, 99%);
	--mask-color: hsl(240, 100%, 99%);
}

* {
	font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
	color: var(--text-color);
}

*:focus {
	outline: 2px dotted var(--hylyt-color);
}

html {
	scroll-behavior: smooth;
}

body {
	max-width: 1300px;
	margin: 0 auto;
	background: var(--bkgnd-color);
}

header {
	position: fixed;
	margin: 0 auto;
	font-size: clamp(1rem, 0.5vw + 0.25rem, 3rem);
}

a {
	color: var(--hylyt-color);
	text-decoration: none;
}

a:focus {
	transition: 0.25s all;
}

a:active {
	color: rgb(223, 35, 145);
}

/* SITE LOGO */
/* Intro animation */
@keyframes logoanim {
	0% {
		transform: rotate(0deg);
		clip-path: circle(30%);
		opacity: 0;
	}

	100% {
		transform: rotate(-180deg);
		clip-path: circle(52.5%);
		opacity: 1;
	}
}

.sitelogo svg {
	animation: 2s ease-out 0s 1 logoanim;
	transition: all 3s ease-in-out;
}

.sitelogo:hover svg {
	transform: rotate(30deg);
}

.sitelogo:hover svg path {
	fill: var(--hylyt-color);
	transition: all 0.5s ease-in-out;
}

.sitelogo:hover svg polygon {
	fill: var(--hylyt-color);
	transition: all 0.25s ease-in-out;
}

/* -- SKIP NAV -- */

.skip-nav-link {
	position: absolute;
	transform: translateY(-200%);
	margin-right: 70%;
}

.skip-nav-link:focus {
	transform: translateY(0);
	background-color: var(--hylyt-color);
	color: var(--bkgnd-color);
}

/* -- */
#folder li {
	list-style-position: outside;
	padding-left: 10px;
	line-height: 2rem;
	cursor: default;
	/* this prevents unlinked parents from changing the cursor */
}

#folder ul li:hover {
	color: var(--hylyt-color);
}

#folder ul li:active {
	color: rgb(223, 35, 145) !important;
}

#folder li:has(ul)::marker {
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' class='bi bi-folder' viewBox='0 0 16 16'%3E%3Cpath d='M.54 3.87.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3h3.982a2 2 0 0 1 1.992 2.181l-.637 7A2 2 0 0 1 13.174 14H2.826a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31zM2.19 4a1 1 0 0 0-.996 1.09l.637 7a1 1 0 0 0 .995.91h10.348a1 1 0 0 0 .995-.91l.637-7A1 1 0 0 0 13.81 4H2.19zm4.69-1.707A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139C1.72 3.042 1.95 3 2.19 3h5.396l-.707-.707z'/%3E%3C/svg%3E ");
}

#folder li:has(ul):hover::marker {
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' class='bi bi-folder-fill' viewBox='0 0 16 16'%3E%3Cpath d='M9.828 3h3.982a2 2 0 0 1 1.992 2.181l-.637 7A2 2 0 0 1 13.174 14H2.825a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31L.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3zm-8.322.12C1.72 3.042 1.95 3 2.19 3h5.396l-.707-.707A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139z'/%3E%3C/svg%3E ");
}

#folder li:not(:has(ul))::marker {
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='16px' height='16px'%3E%3Cpath d='M 6 3 L 6 29 L 26 29 L 26 9.59375 L 25.71875 9.28125 L 19.71875 3.28125 L 19.40625 3 Z M 8 5 L 18 5 L 18 11 L 24 11 L 24 27 L 8 27 Z M 20 6.4375 L 22.5625 9 L 20 9 Z'/%3E%3C/svg%3E");
}

#folder li:not(:has(ul)):hover::marker {
	content: url("data:image/svg+xml,%3C%3Fxml version='1.0'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' width='16px' height='16px'%3E%3Cpath d='M24.707,8.793l-6.5-6.5C18.019,2.105,17.765,2,17.5,2H7C5.895,2,5,2.895,5,4v22c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2 V9.5C25,9.235,24.895,8.981,24.707,8.793z M18,10c-0.552,0-1-0.448-1-1V3.904L23.096,10H18z'/%3E%3C/svg%3E");
}

@-moz-document url-prefix() {
	#folder ul>li>ul>li::marker {
		content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='16px' height='16px'%3E%3Cpath d='M 6 3 L 6 29 L 26 29 L 26 9.59375 L 25.71875 9.28125 L 19.71875 3.28125 L 19.40625 3 Z M 8 5 L 18 5 L 18 11 L 24 11 L 24 27 L 8 27 Z M 20 6.4375 L 22.5625 9 L 20 9 Z'/%3E%3C/svg%3E");
	}

	#folder ul>li>ul>li:hover::marker {
		content: url("data:image/svg+xml,%3C%3Fxml version='1.0'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' width='16px' height='16px'%3E%3Cpath d='M24.707,8.793l-6.5-6.5C18.019,2.105,17.765,2,17.5,2H7C5.895,2,5,2.895,5,4v22c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2 V9.5C25,9.235,24.895,8.981,24.707,8.793z M18,10c-0.552,0-1-0.448-1-1V3.904L23.096,10H18z'/%3E%3C/svg%3E");
	}

	#folder li::marker {
		content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' class='bi bi-folder' viewBox='0 0 16 16'%3E%3Cpath d='M.54 3.87.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3h3.982a2 2 0 0 1 1.992 2.181l-.637 7A2 2 0 0 1 13.174 14H2.826a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31zM2.19 4a1 1 0 0 0-.996 1.09l.637 7a1 1 0 0 0 .995.91h10.348a1 1 0 0 0 .995-.91l.637-7A1 1 0 0 0 13.81 4H2.19zm4.69-1.707A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139C1.72 3.042 1.95 3 2.19 3h5.396l-.707-.707z'/%3E%3C/svg%3E ");
	}

	#folder li:hover::marker {
		content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' class='bi bi-folder-fill' viewBox='0 0 16 16'%3E%3Cpath d='M9.828 3h3.982a2 2 0 0 1 1.992 2.181l-.637 7A2 2 0 0 1 13.174 14H2.825a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31L.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3zm-8.322.12C1.72 3.042 1.95 3 2.19 3h5.396l-.707-.707A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139z'/%3E%3C/svg%3E ");
	}
}

svg {
	margin: 0.15rem;
}

nav a {
	color: var(--text-color);
	text-decoration: none;
	display: inline-block;
}

nav a:hover {
	color: var(--hylyt-color);
	background: none;
	transition: 0.5s all;
	text-decoration: underline;
}

path {
	fill: var(--text-color);
}

polygon {
	fill: var(--text-color);
}

main a {
	font-weight: 600;
}

main a:hover {
	background: var(--hylyt-color);
	color: var(--bkgnd-color);
	transition: 0.5s all;
	margin: 0 0.15rem;
}

mark {
	display: block;
	background-color: var(--hylyt-color);
	color: var(--bkgnd-color);
	font-size: 2rem;
	margin-top: 24vh;
	padding: 0.25rem;
}

section {
	gap: 1rem;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

section>* {
	flex: 1 1;
}

section>img {
	width: min(500px, 100%);
	min-width: 400px;
	height: fit-content;
}

section p:only-child {
	width: 100%;
	font-size: 1.75rem;
}

section p {
	margin-top: 10px;
}

section.image-collage {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 10px;
	position: inherit;
	background-color: var(--bkgnd-color);
}

section.image-collage .image-container {
	position: relative;
}

.image-container:has(a)::after {
	content: "↗";
	display: block;
}

section.image-collage .caption {
	position: absolute;
	top: 0;
	left: 4px;
	right: 4px;
	margin-top: 10%;
	background-color: var(--bkgnd-color);
	text-align: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	padding-top: 8px;
	padding-bottom: 8px;
	width: 98%;
}

section.image-collage .image-container:hover .caption {
	opacity: 1;
}

section.image-collage .image-container:focus-within .caption {
	opacity: 1;
}

section.image-collage img {
	width: 100%;
	height: auto;
	max-width: 100%;
	border: 1px solid var(--text-color);
}

section.image-collage img:hover {
	width: 98%;
	max-width: 98%;
	border: 4px solid var(--hylyt-color);
}

#themedGIF {
	display: block;
}

#back-to-top {
	display: none;
}

footer {
	position: fixed;
	bottom: 0;
	font-size: clamp(0.75rem, 0.5vw + 0.25rem, 2rem);
	min-width: 256px;
	z-index: 99;
}

footer a {
	font-weight: 500;
}

@media only screen and (max-width: 1179px) {

	body {
		max-width: 1300px;
		min-height: 70vh;
		min-height: 70dvh;
	}

	header {
		position: fixed;
		z-index: 1;
		bottom: 0;
		background: var(--mask-color);
		width: 100%;
		border-top: 2px solid var(--hylyt-color);
		display: -webkit-box;
		display: -moz-box;
		display: -ms-flexbox;
		display: -webkit-flex;
		display: flex;
		align-items: end;
	}

	.skip-nav-link {
		transform: translateX(-200%);
		margin-right: 70%;
	}

	.skip-nav-link:focus {
		transform: translateX(0);
		transition: 0.5s all;
	}

	.nav-toggle {
		display: none;
	}

	.nav-button {
		cursor: pointer;
		margin-bottom: 2.75rem;
		padding: 0.25rem;
		outline: 1px solid var(--text-color);
	}

	.nav-button::after {
		content: " ☰";
	}

	#folder {
		display: none;
	}

	.nav-toggle:checked+.nav-button+#folder {
		display: block;
		margin-bottom: 1.5rem;
	}

	.nav-toggle:checked+.nav-button {
		background-color: var(--hylyt-color);
		color: var(--bkgnd-color);
		transition: 0.5s all;
	}

	.nav-toggle:checked+.nav-button::after {
		content: " ⨯";
	}

	main {
		padding-top: 2rem;
		padding-bottom: 10rem;
		width: 90%;
		margin: auto;
	}

	article {
		padding-top: 2rem;
	}

	section {
		padding-bottom: 10px;
	}

	section p {
		min-width: 12em;
	}

	footer {
		text-align: right;
		right: 1rem;
	}
}

@media only screen and (max-width: 576px) {
	.sitelogo {
		display: none;
	}

	.nav-button {
		margin-top: 10px;
		margin-left: 10px;
	}

	#back-to-top {
		display: block;
	}
}

@media only screen and (min-width: 1180px) {

	.nav-toggle,
	.nav-button {
		display: none;
	}

	header {
		min-width: 250px;
		margin-top: 0;
		opacity: 60%;
	}

	header:hover {
		opacity: 100%;
		transition: 1s all;
	}

	main {
		margin-left: 28%;
	}

	mark {
		max-width: 38vw;
	}

	article {
		display: none;
		transition: 0.4s;
		position: absolute;
		background-color: var(--bkgnd-color);
		padding: 0 1rem 20rem 1rem;
		min-width: 60vh;
	}

	article:target {
		display: block;
		z-index: 9;
	}

	article div {
		position: fixed;
		background-color: var(--bkgnd-color);
		width: 100%;
	}

	main>p:first-child {
		position: absolute;
		pointer-events: none;
		padding: 0 1rem 20rem 1rem;
	}

	article section:first-of-type {
		padding-top: 6rem;
	}

	section {
		padding-top: 1rem;
		max-width: 1000px;
		z-index: -99;
	}

	section p {
		max-width: 80em;
	}

	section img {
		max-width: 80em;
	}

}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
	}
}

@media (prefers-contrast: high) {
	:root {
		--text-color: hsl(0, 0%, 0%);
		--hylyt-color: hsl(219, 100%, 42%);
		--bkgnd-color: hsl(0, 0%, 100%);
		--mask-color: hsl(0, 0%, 100%);
	}
}

@media (prefers-contrast: low) {
	:root {
		--text-color: hsl(0, 0%, 32%);
		--hylyt-color: hsl(219, 100%, 42%);
		--bkgnd-color: hsl(0, 0%, 100%);
		--mask-color: hsl(0, 0%, 100%);
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--text-color: hsl(0deg 0% 93.3%);
		--hylyt-color: hsl(36, 100%, 50%);
		--bkgnd-color: hsl(222, 56%, 4%);
		--mask-color: hsl(222, 56%, 4%);
	}

	#folder li:has(ul)::marker {
		content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' class='bi bi-folder' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M.54 3.87.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3h3.982a2 2 0 0 1 1.992 2.181l-.637 7A2 2 0 0 1 13.174 14H2.826a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31zM2.19 4a1 1 0 0 0-.996 1.09l.637 7a1 1 0 0 0 .995.91h10.348a1 1 0 0 0 .995-.91l.637-7A1 1 0 0 0 13.81 4H2.19zm4.69-1.707A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139C1.72 3.042 1.95 3 2.19 3h5.396l-.707-.707z'/%3E%3C/svg%3E ");
	}

	#folder li:has(ul):hover::marker {
		content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' class='bi bi-folder-fill' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M9.828 3h3.982a2 2 0 0 1 1.992 2.181l-.637 7A2 2 0 0 1 13.174 14H2.825a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31L.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3zm-8.322.12C1.72 3.042 1.95 3 2.19 3h5.396l-.707-.707A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139z'/%3E%3C/svg%3E ");
	}

	#folder li:not(:has(ul))::marker {
		content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='white' width='16px' height='16px'%3E%3Cpath d='M 6 3 L 6 29 L 26 29 L 26 9.59375 L 25.71875 9.28125 L 19.71875 3.28125 L 19.40625 3 Z M 8 5 L 18 5 L 18 11 L 24 11 L 24 27 L 8 27 Z M 20 6.4375 L 22.5625 9 L 20 9 Z'/%3E%3C/svg%3E");
	}

	#folder li:not(:has(ul)):hover::marker {
		content: url("data:image/svg+xml,%3C%3Fxml version='1.0'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='white' width='16px' height='16px'%3E%3Cpath d='M24.707,8.793l-6.5-6.5C18.019,2.105,17.765,2,17.5,2H7C5.895,2,5,2.895,5,4v22c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2 V9.5C25,9.235,24.895,8.981,24.707,8.793z M18,10c-0.552,0-1-0.448-1-1V3.904L23.096,10H18z'/%3E%3C/svg%3E");
	}

	@-moz-document url-prefix() {
		#folder ul>li>ul>li::marker {
			content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='white' width='16px' height='16px'%3E%3Cpath d='M 6 3 L 6 29 L 26 29 L 26 9.59375 L 25.71875 9.28125 L 19.71875 3.28125 L 19.40625 3 Z M 8 5 L 18 5 L 18 11 L 24 11 L 24 27 L 8 27 Z M 20 6.4375 L 22.5625 9 L 20 9 Z'/%3E%3C/svg%3E");
		}

		#folder ul>li>ul>li:hover::marker {
			content: url("data:image/svg+xml,%3C%3Fxml version='1.0'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='white' width='16px' height='16px'%3E%3Cpath d='M24.707,8.793l-6.5-6.5C18.019,2.105,17.765,2,17.5,2H7C5.895,2,5,2.895,5,4v22c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2 V9.5C25,9.235,24.895,8.981,24.707,8.793z M18,10c-0.552,0-1-0.448-1-1V3.904L23.096,10H18z'/%3E%3C/svg%3E");
		}

		#folder li::marker {
			content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-folder' viewBox='0 0 16 16'%3E%3Cpath d='M.54 3.87.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3h3.982a2 2 0 0 1 1.992 2.181l-.637 7A2 2 0 0 1 13.174 14H2.826a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31zM2.19 4a1 1 0 0 0-.996 1.09l.637 7a1 1 0 0 0 .995.91h10.348a1 1 0 0 0 .995-.91l.637-7A1 1 0 0 0 13.81 4H2.19zm4.69-1.707A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139C1.72 3.042 1.95 3 2.19 3h5.396l-.707-.707z'/%3E%3C/svg%3E ");
		}

		#folder li:hover::marker {
			content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-folder-fill' viewBox='0 0 16 16'%3E%3Cpath d='M9.828 3h3.982a2 2 0 0 1 1.992 2.181l-.637 7A2 2 0 0 1 13.174 14H2.825a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31L.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3zm-8.322.12C1.72 3.042 1.95 3 2.19 3h5.396l-.707-.707A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139z'/%3E%3C/svg%3E ");
		}
	}

	#themedGIF {
		content: url('images/ansys-topo-fluid-dark.gif');
	}

	#themedfavIcon {
		content: url('images/uniyal-suryachakra-logo-favicon-dark.png');
	}

	@media (prefers-contrast: high) {
		:root {
			--text-color: hsl(0, 0%, 100%);
			--hylyt-color: hsl(36, 100%, 50%);
			--bkgnd-color: hsl(0, 0%, 0%);
			--mask-color: hsl(0, 0%, 0%);
		}
	}

	@media (prefers-contrast: low) {
		:root {
			--text-color: hsl(0, 0%, 100%);
			--hylyt-color: hsl(36, 100%, 50%);
			--bkgnd-color: hsl(0, 0%, 32%);
			--mask-color: hsl(0, 0%, 32%);
		}
	}
}