@font-face {
	font-family: "AkkuratLL-Regular";
	src: url("./fonts/AkkuratLL-Regular.otf")
		format("opentype");
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: "AkkuratLL-Light";
	src: url("./fonts/AkkuratLL-Light.otf")
		format("opentype");
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: "AkkuratLL-Italic";
	src: url("./fonts/AkkuratLL-Italic.otf")
		format("opentype");
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: "AkkuratLL-Bold";
	src: url("./fonts/AkkuratLL-Bold.otf")
		format("opentype");
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: "AkkuratLL-LightItalic";
	src: url("./fonts/AkkuratLL-LightItalic.otf")
		format("opentype");
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: "Merriweather-LightItalic";
	src: url("./fonts/Merriweather-LightItalic.ttf")
		format("truetype");
	font-weight: normal;
	font-style: normal;
}

html,
body {
	overflow-x: hidden;
	font-family: AkkuratLL-Light;
	margin: 0;
	background-color: #0a0a0a;
}

a,
a:hover,
a:visited {
	color: #edf86f;
	text-decoration: none;
}

#map {
	top: 0;
	height: 100%;
	width: 100%;
	position: fixed;
	z-index: 0;
	transition: opacity 0.25s ease;
}

#image-container {
	position: fixed;
	top: 0;
	left: 27vw;
	width: 73vw;
	height: 100%;
	z-index: 1;
	opacity: 0;
	pointer-events: none;
	background-size: contain;
	background-position: top center;
	background-repeat: no-repeat;
	transition:
		opacity 0.25s ease,
		background-image 0.4s ease;
}

main {
	position: relative;
	z-index: 2;
	pointer-events: none;
}

#story {
	position: relative;
	left: 0px;
	max-width: 100%;
	pointer-events: none;
}

/*Chapter titles*/
h3 {
	font-family: "AkkuratLL-Regular";
	font-size: 1.7rem;
	color: #fff;
	line-height: normal;
	padding: 0.25rem;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
	text-align: left;
}
h4 {
	font-family: "AkkuratLL-Regular";
	font-size: 1.2rem;
	color: #fff;
	line-height: normal;
	padding: 0.25rem;
	margin-top: 1rem;
	margin-bottom: 1rem;
	text-align: left;
}

#story p {
	font-family:
		"AkkuratLL-Light", Arial, sans-serif;
	font-size: 1.1rem;
	line-height: 1.6;
	margin: 1em 0;
	color: #ffffff;
	text-align: left;
}

main {
	padding-top: var(--header-height);
}

#features {
	padding-top: 0%;
	padding-bottom: 0%;
}

.hidden {
	visibility: hidden;
}

.centered {
	width: 60%;
	margin: auto;
	text-align: center;
}

.lefty {
	width: 25vw;
	margin-left: 2vw;
}

.dark {
	color: #fafafa;
	background-color: #0a0a0a;
}

.step {
	background: #0a0a0a;
	padding: 1em;
	margin-top: 5em;
	border-radius: 0px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	margin-bottom: 20em;
	opacity: 0.4;
	pointer-events: auto;
	transition:
		box-shadow 0.2s,
		opacity 0.1s;
}

.step.active {
	opacity: 1 !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.step div {
	padding: 12px 12px;
	line-height: 1.3rem;
	font-size: 1rem;
}

.step img {
	width: 100%;
	max-width: 20rem;
}

/* Mobile styles */
@media (max-width: 768px) {
	body {
		overflow: hidden;
	}

	/* Make the map viewport match only the visible top area on mobile.
	   This keeps map centers truly centered without per-device offsets. */
	#map,
	#image-container {
		height: 40vh;
	}

	/* Story scrolls inside a fixed bottom-half container; map is always visible above */
	main {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		height: 60vh;
		overflow-y: scroll;
		-webkit-overflow-scrolling: touch;
		padding-top: 0;
		pointer-events: auto;
		scrollbar-width: none;
	}

	main::-webkit-scrollbar {
		display: none;
	}

	.step.lefty,
	.step.centered {
		width: 100vw;
		box-sizing: border-box;
		margin-left: auto;
		margin-right: auto;
	}

	#image-container {
		left: 0;
		width: 100vw;
		background-position: center top;
	}

	.step {
		margin-top: 0;
		margin-bottom: 5vh;
		opacity: 1 !important;
	}
}

.mapboxgl-popup-content {
	width: 400px !important;
	padding: 12px 18px;
	background: #1f1f1f;
	border-radius: 6px;
	color: #fafafa;
}

.mapboxgl-popup-close-button {
	font-size: 18px;
	color: #4997ab;
	top: 6px;
	right: 10px;
}

/* Fix issue on mobile browser where scroll breaks  */
.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,
.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan
	.mapboxgl-canvas {
	touch-action: unset;
}

/*CTAs*/
.cta {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #171717;
	padding: 1rem;
	margin: 1rem auto;
	width: min(100%, 720px);
	box-sizing: border-box;
}

.cta a {
	color: #edf86f !important;
}

.cta h4 {
	margin: 0 0 0.2rem 0;
	padding: 0;
	background: transparent;
	color: #edf86f;
	font-family:
		"AkkuratLL-Regular", Arial, sans-serif;
	font-size: 1rem;
	text-align: center;
}

.cta p {
	margin: 0 0 0.5rem 0;
	color: #fff !important;
	font-family:
		"AkkuratLL-Light", Arial, sans-serif;
	font-size: 0.7rem !important;
	line-height: 1.4;
	text-align: center;
}
