:root {
	--backround-color-accent: hsl(0, 0%, 3%);
	--background-color-main: hsl(0, 0%, 12%);
	--background-color-alt: hsl(0, 0%, 18%);
	--background-color-hover: hsl(0, 0%, 60%);
	--text-color-main: hsl(0, 0%, 94%);
	--accent-dim: hsl(210, 100%, 22%);
	--accent-main: hsl(210, 100%, 33%);
	--accent-highlight: hsl(210, 100%, 37%);
	--accent-bright: hsl(210, 100%, 45%);

	--university: hsl(220, 91%, 40%);
	--work: hsl(55, 91%, 40%);
	--personal: hsl(142, 91%, 40%);

	--ongoing: hsl(43, 56%, 55%);
	--finished: hsl(118, 38%, 47%);
	--unfinished: hsl(16, 25%, 26%);

	font-family: Barlow, sans-serif;
	font-weight: 400;
	line-height: 1.5;

	color-scheme: light dark;
	color: var(--text-color-main);
	background-color: var(--background-color-main);

	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
html {
	scroll-behavior: smooth;
}

body {
	margin: 0px;
}

button {
	all: unset;
	cursor: pointer;
}

@media (prefers-color-scheme: light) {
	:root {
		--text-color-main: hsl(0, 0%, 5%);
		--backround-color-accent: hsl(0, 0%, 84%);
		--background-color-main: hsl(0, 0%, 100%);
		--background-color-alt: hsl(0, 0%, 91%);
		--background-color-hover: hsl(0, 0%, 56%);
	}
	a:hover {
		color: #747bff;
	}
}

/*#region nav*/
nav {
	box-sizing: border-box;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: var(--backround-color-accent);
	padding: 0.5rem 2rem;
}

.nav-left {
	font-size: 2.5rem;
	font-weight: 500;
}

.nav-right {
	display: flex;
	gap: 1rem;
}

.nav-button {
	border: none;
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 3px;
	border: 2px solid white;
	cursor: pointer;
	transition: background-color 0.2s;
	background-color: var(--background-color-accent);
	text-decoration: none;
}

.nav-button:hover {
	background: linear-gradient(to top, var(--accent-main), transparent 50%);
	background-size: 200% 200%;
	animation: ButtonAnimation 0.3s ease forwards;
}

@keyframes ButtonAnimation {
	0% {
		background-position: 100% 0%;
	}
	100% {
		background-position: 10% 70%;
	}
}

/*#endregion*/

#main {
	display: flex;
	width: 35%;
	min-width: 500px;
	flex-direction: column;
	justify-self: center;
	margin-top: 20px;
}

#intro,
#ps {
	font-size: 1.25rem;
}

#footer {
	box-sizing: border-box;
	margin-top: 150px;
	padding: 10px 0 10px 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: var(--background-color-alt);
}

@media (width < 600px) {
	#main {
		width: 90%;
		min-width: 250px;
	}
}
