#section3 {
	display: flex;
	align-items: start;
	background-color: #eee;
	height: 500vh;
	width: 100%;
}

#section3 .container {
	display: flex;
	position: sticky;
	top: calc(var(--navbar-height) + 1rem);
	left: 0;
	height: calc(100svh - var(--navbar-height) - 2rem);
	width: 100%;
	max-width: 1200px;
	padding: 0;
	margin: 6rem auto;
}


#section3 .wrapper {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border: 1px solid rgba(41, 82, 123, 0.5);
	border-radius: 1rem;
	background: linear-gradient(153deg, rgba(255, 255, 255, 0.5) 44%, rgba(41, 82, 123, 0.125) 90%);
	box-shadow: 0 0.5rem 1rem rgba(41, 82, 123, 0.125);
	width: calc(100% - 4rem);
	margin: 1rem auto;
	position: relative;
	overflow: hidden;
}


#section3 .content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	max-width: 600px;
	padding: 1.5rem;
	margin: 0 auto;
	z-index: 10;
}


/* Badge */
#section3 .badge {
	background-color: var(--primary-color);
	box-shadow: 0 0.25rem 0.5rem rgba(51, 102, 153, 0.25);
}


/* Texts */
#section3 .texts {
	margin-top: min(6rem, 2rem + (max(0rem, (100vh - 600px) / 5)));
}

#section3 .texts h4 {
	font-size: 1.5rem;
}

#section3 .texts .messages {
	min-height: 4rem;
	position: relative;
}

#section3 .texts .messages .message {
	position: absolute;
	top: calc(100% / 2);
	left: 0;
	opacity: 1;
	transform: translateY(-100%);
	transition: top 0.5s, opacity 0.25s, transform 0.5s;
	z-index: 2;
}

#section3 .texts .messages .message:not(:first-child) {
	opacity: 0;
}

#section3 .texts .messages .message.previous {
	opacity: 0;
	transform: translateY(-150%);
}

#section3 .texts .messages .message.active {
	opacity: 1;
	transform: translateY(-50%);
}

#section3 .texts .messages .message.next {
	opacity: 0;
	transform: translateY(50%);
}


/* Cellphone */
#section3 .messages .message-2 {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

#section3 .cellphone-container {
	display: none;
}

/* Progress bar */
#section3 .progress-container {
	width: 100%;
	max-width: 500px;
	padding-bottom: 0;
}

#section3 .progress-container.progress-container-desktop {
	display: none;
}

#section3 .progress-container.progress-container-mobile {
	padding: 1.5rem;
	margin: 0 auto;
	z-index: 2;
}

#section3 .progress-container h5 {
	font-size: 1.2rem;
	margin-bottom: 0.25rem;
}

#section3 .progress-container h6 {
	font-size: 1rem;
	font-weight: 300;
	margin-bottom: 0;
}

#section3 .progress {
	height: 0.5rem;
	background-color: #ddd;
	border-radius: 0.5rem;
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
}

#section3 .progress .progress-bar {
	height: 100%;
	border-radius: 1rem;
	transition: width 0.125s linear;
}


/* Map */
#section3 .map-wrapper {
	display: flex;
	justify-content: end;
	position: absolute;
	right: 50%;
	bottom: -20%;
	width: 100%;
	max-width: 360px;
	rotate: 30deg;
	transform: translate(50%, -15%);
}

#section3 .map-wrapper .map-image {
	width: 100%;
	max-width: 500px;
	height: fit-content;
	position: relative;
	pointer-events: none;
}

#section3 .map-wrapper .map-image #progress-path {
	transition: stroke-dashoffset 0.125s;
}


/* Map Markers */
#section3 .map-wrapper .truck-marker {
	transition: transform 0.125s;
}

#section3 .map-wrapper .truck-marker .pin,
#section3 .map-wrapper .home-marker .pin {
	fill: var(--primary-color);
}

#section3 .map-wrapper .truck-marker .truck,
#section3 .map-wrapper .home-marker .home {
	stroke: var(--primary-color);
}

#section3 .map-wrapper .notification-range {
	animation: blink 4s infinite;
}


@media (min-width: 992px) {
	#section3 .wrapper {
		flex-direction: row;
		height: fit-content;
		margin: auto;
	}

	#section3 .content {
		align-items: start;
		width: 100%;
		min-height: 650px;
		height: 100%;
		padding-bottom: 0;
		margin: auto 0;
		overflow: hidden;
	}


	/* Texts */
	#section3 .texts {
		min-height: 400px;
		max-width: 700px;
		margin-top: 0;
	}

	#section3 .texts h4 {
		font-size: 2rem;
	}

	/* Cellphone */
	#section3 .messages .message-2 {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}

	#section3 .cellphone-container {
		display: block;
		width: 110px;
		margin-right: 2rem;
		opacity: 0;
		z-index: 9;
		transition: opacity 0.25s;
	}

	#section3 .cellphone-container.show-notification {
		opacity: 1;
		animation: shake 0.33s infinite;
	}

	#section3 .cellphone-container .notification-wrapper {
		top: -14%;
		scale: 0.62;
	}


	/* Progress bar */
	#section3 .progress-container {
		position: relative;
		padding-bottom: 4rem;
		z-index: 10;
	}

	#section3 .progress-container.progress-container-desktop {
		display: block;
	}

	#section3 .progress-container.progress-container-mobile {
		display: none;
	}


	/* Map */
	#section3 .map-wrapper {
		bottom: 50%;
		right: 0;
		align-items: center;
		width: 100%;
		max-width: 420px;
		transform: translate(35%, 50%);
	}


	/* Move to next section */
	#section3 .move-next-section {
		position: absolute;
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);
		z-index: 10;
		opacity: 1;
		transition: opacity 0.5s;
	}

	#section3 .move-next-section.hide-opacity {
		opacity: 0;
	}

	#section3 .move-next-section .chevron-down {
		width: 2rem;
		height: 2rem;
		stroke: var(--dark-color);
        animation: bounce 3s infinite;
	}
}


@media (min-width: 1200px) {
	#section3 .map-wrapper {
		margin-right: unset;
	}
}


@media (max-height: 750px) and (min-width: 992px) {
	#section3 .content {
		display: flex;
		flex-direction: column;
	}

	#section3 .texts {
		min-height: unset;
	}

	#section3 .progress-container-desktop {
		padding-bottom: 1rem;
	}
}


@media (min-height: 600px) and (max-height: 800px) {
	#section3 .map-wrapper {
		bottom: calc(-15% + ((15 / 100) * (100vh - 600px)));
	}
}


@media (max-height: 700px) and (max-width: 991px) {
	#section3 .container {
		top: var(--navbar-height);
		height: calc(100dvh - 4rem);
	}

	#section3 .wrapper {
		margin: 2rem auto;
	}
}


@media (min-height: 800px) and (max-width: 991px) {
	#section3 .map-wrapper {
		bottom: 0%;
	}
}


/* Animations */
@keyframes blink {
	0%,
	50%,
	100% {
		opacity: 0.66;
	}

	25%,
	75% {
		opacity: 0.33;
	}
}