@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,500;0,6..12,700;1,6..12,300;1,6..12,400;1,6..12,500;1,6..12,700&family=Shadows+Into+Light&display=swap');

@import '/css/reset.css';

:root {
	--text: hsl(0, 12%, 92%);
	--background: hsl(0, 0%, 0%);
	--primary: hsl(0, 0%, 80%);
	--secondary: hsl(240, 13%, 15%);
	--accent: hsl(180, 13%, 55%);
	--primary-font: 'Nunito Sans', sans-serif;
	--secondary-font: 'Indie Flower', cursive;

	--timeline-height: 2dvh;

	view-transition-name: root;

	scroll-behavior: smooth;
}

::view-transition-old(root) {
	animation: 0.3s transition-out 0s ease;
}

::view-transition-new(root) {
	animation: 0.3s transition-in 0s ease;
}

body {
	position: relative;
	background-color: var(--background);
	color: var(--text);
	font-family: 'Nunito Sans', sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
	padding: 0;
	height: 100dvh;
	width: 100dvw;
	overflow-x: hidden;
}

nav {
	width: 30dvw;
	margin-left: auto;
	margin-right: auto;
	margin-top: 2rem;

	.nav-bar {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 1rem;
		.nav-links:hover {
			color: var(--accent);
			text-decoration: underline;
			text-underline-offset: 0.3rem;
		}
	}
}

.timeline {
	width: 100%;
	height: 100%;

	.section-timeline-hidden {
		width: 100dvw;
		height: 130dvh;
		background-color: var(--secondary);
		&:nth-child(odd) {
			background-color: var(--background);
		}
		&:nth-child(even) {
			color: var(--primary);
		}
	}
	.section-element {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		margin-left: auto;
		margin-right: auto;
		text-wrap: balance;
		text-align: center;
		gap: 1rem;
		.timeline-item-details {
			width: 70dvw;
			font-family: 'Shadows Into Light', cursive;
			font-size: 2rem;
			font-weight: 400;
		}
	}

	&::before {
		content: '';
		position: fixed;
		top: 2%;
		left: 2%;
		width: 2px;
		height: var(--timeline-height);
		min-height: 2dvh;
		max-height: 96dvh;
		background-color: var(--primary);
		border-radius: 2px;
	}
}

h2 {
	font-family: 'Indie Flower', cursive;
	font-size: 2rem;
	font-weight: 400;
}
h3 {
	font-family: 'Shadows Into Light', cursive;
	font-size: 2rem;
	font-weight: 400;
}

.bounce {
	margin-top: 10rem;
	animation: bounce 2s infinite;
	font-size: 4rem;
	color: white;
}
embed {
	width: 90%;
	height: 70%;
	background-color: white;
}
.contact-me {
	padding: 1rem;
	background-color: var(--secondary);
	border-radius: 1rem;
}

/* Media Queries */
@media (prefers-reduced-motion) {
	* {
		animation: none !important;
		transition: none !important;
	}
}

/* Animations */

@keyframes slide-in {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(0%);
	}
}

@keyframes fade {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}
@keyframes bounce {
	0% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-1rem);
	}
	100% {
		transform: translateY(0);
	}
}

@keyframes transition-out {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}
@keyframes transition-in {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}
