

	html {
		scroll-behavior: smooth;
	}


	:root {
		--step-height: 600px;
		font-size: 16px;
	}

	body {
		--bg: hsl(0, 0%, 17%);
		background-color: var(--bg);
		overflow-x: hidden;
	}

	#hero {
		min-height: 90vh;
/*		background-image: url('/static/img/radius2_zoomed.png');*/
		background-position: center;
		background-size: cover;
		position: relative;
		color: white;
		overflow: visible;
	}

	#hero .display-1 {
		line-height: 1;
		margin-top: 5rem;
	}

	#hero p {
		font-size: 2rem;
	}

	#hero::before {
		content: '';
		inset: 0;
		background-color: black;
		opacity: 0.75;
		position: absolute;
	}

	#hero-form {
		position: relative;
	}

	#hero-form-header {
		width: 100%;
		height: 125px;
		background: linear-gradient(90deg, #FF9A46 3%, #F94F53 99%);
		clip-path: polygon(0 0, 50% 100%, 102% 0);
		color: white;
		font-weight: bold;
		text-align: center;
	}

	#hero-form-header h2 {
		padding-top: 1rem;
	}

	.btn-green {
		color: white;
		background: linear-gradient(-90deg, #00f260, #05aae6);
		border-radius: 25px;
		font-weight: bold;
		box-shadow: 0px 10px 29px 0px #05aae669;
		font-size: 1.5rem;
	}

	.btn-green:hover {
		color: white;
	}

	.text-gradient {
		background: -moz-linear-gradient( 0deg, rgb(209,66,255) 0%, rgb(35,157,254) 100%);
		background: -webkit-linear-gradient( 0deg, rgb(209,66,255) 0%, rgb(35,157,254) 100%);
		background: -ms-linear-gradient( 0deg, rgb(209,66,255) 0%, rgb(35,157,254) 100%);
		-webkit-background-clip: text;
		-moz-background-clip: text;
		-ms-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
		-moz-text-fill-color: transparent;
		-ms-text-fill-color: transparent;
		color: transparent;
	}

	.text-gradient-blue {
		background: -moz-linear-gradient(0deg, #00f260, #05aae6);
		background: -webkit-linear-gradient(0deg, #00f260, #05aae6);
		background: -ms-linear-gradient(0deg, #00f260, #05aae6);
		-webkit-background-clip: text;
		-moz-background-clip: text;
		-ms-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
		-moz-text-fill-color: transparent;
		-ms-text-fill-color: transparent;
		color: transparent;
	}

	::-webkit-scrollbar {
		width: .6rem;
		height: .6rem;
	}

	::-webkit-scrollbar-track {
		background: hsl(0, 0%, 12%);
		border-radius: 100vw;
		margin-blockem;
	}

	::-webkit-scrollbar-thumb {
		background: linear-gradient(0deg, #B300EF, #0d86e8);
		border-radius: 100vw;
	}

	@supports (scrollbar-color: red blue) {
		* {
			scrollbar-color: linear-gradient(0deg, #B300EF, #0d86e8) hsl(0, 0%, 12%);
		}
	}

	.wavy {
	  --mask:
		radial-gradient(55.90px at 50% 75.00px,#000 99%,#0000 101%) calc(50% - 50px) 0/100px 51% repeat-x,
		radial-gradient(55.90px at 50% -50px,#0000 99%,#000 101%) 50% 25px/100px calc(51% - 25px) repeat-x,
		radial-gradient(55.90px at 50% calc(100% - 75.00px),#000 99%,#0000 101%) calc(50% - 50px) 100%/100px 51% repeat-x,
		radial-gradient(55.90px at 50% calc(100% + 50.00px),#0000 99%,#000 101%) 50% calc(100% - 25px)/100px calc(51% - 25px) repeat-x;
	  -webkit-mask: var(--mask);
	  mask: var(--mask);
	}

	.step {
		font-size: 3.25rem;
		font-weight: 400;

	}

	.step span {
		font-size: 5.5rem;
		font-weight: 800;
	}

	#how-section {
		position: relative;
		min-height: 6900px;
	}

	#range-wrapper {
		position: absolute;
		top: 100px;
		width: 50px;
		background-color: darkorange;
		visibility: hidden;
	}

	.animation-range {
		background-color: red;
	}

	#roofReplaceAppear {	
		height: 480px;
	}

	#homePageMapAppear {
		height: 480px;
		color: blue;
	}

	#addressBarAppear {
		height: 150px;
	}

	#typewriter {
		height: 450px;
	}

	#radiusAppear {
		height: 480px;
	}

	#iphoneAppear {
		height: 480px;
	}

	#preiPhoneDisappear {
		height: 100px;
	}

	#iphoneScroll {
		--height: 2300px;
		height: var(--height);
		margin-top: 5px;
		background-color: plum;
		padding-top: 1px;
	}

	#iphoneDisappear {
		height: 100px;
	}

	#mailGridScroll {
		height: 600px;
	}

	.transition-marker {
		height: 5px;
		background-color: green;
		width: 100%;
	}

	#transitionStep2 {
		margin-top: 40px;
	}

	#transitionStep3 {
		margin-top: 75px;
	}

	#transitionStep4a {
		margin-top: 60px;
	}

	#transitionStep4b {
		margin-top: calc((var(--height) / 3) - 100px);
	}

	#transitionStep4c {
		margin-top: calc((var(--height) / 3) - 50px);
	}

	#transitionStep4d {
		margin-top: calc((var(--height) / 3) - 50px);
	}

	#transitionStep5 {
		margin-top: 50px;
	}

	#address-bar h3 {
		min-width: 10px;
		min-height: 100%;
		padding-inline: 5px;
		border-right: .15em solid orange;
		animation: caret-blink .9s step-end infinite;
	}

	@keyframes caret-blink {
		from, to {border-color: transparent;}
		50% {border-color: orange;}
	}

#screen {
	position: absolute;
	top: 2.2%;
	left: 5.2%;
	right: 4.9%;
	bottom: 17.4%;
	background-color: black;
	border-top-right-radius: 5vh;
	border-top-left-radius: 5vh;
	overflow: hidden;
}

/*#screen::before {
	content: '';
	position: absolute;
	height: 100%;
	width: 100%;
	inset: 0;
	background-color: transparent;
}*/

#notch {
	height: 5%;
	width: 31.5%;
	border-radius: 5vh;
	position: absolute;
	top: 1.6%;
	left: 50%;
	z-index: 1;
	background-color: black;
	transform: translateX(-50%);
}

#screen iframe {
	height: 2295px;
	width: 100%;
	border-top-right-radius: inherit;
	border-top-left-radius: inherit;
	border: none;
	position: absolute;
/*	transform: translateY(-20%);*/
}

#spin-btn {
	position: absolute;
	border-radius: 50%;
	background-color: blue;
	opacity: 0;
	top: 56%;
	left: 50%;
	height: calc(var(--height) * 0.15);
	width: calc(var(--height) * 0.15);
	transform: translate(-50%, -50%);
	z-index: -1;
}

#spin-btn:focus {
	outline: none;
}

.step-col p, .step-col li {
	font-size: 1.3rem;
}

.step-col li {
	margin-block: 1.5rem;
}

/* Steps & Animations */

.sticky-row {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 1020;
}

.animation-col {
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.step-col {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	padding-top: 25vh;
	padding-left: 3.5rem;
	padding-right: 0.5rem;
}

#roof-replacement {
	height: auto;
	width: 80%;
	border-radius: 5%;
	transform: rotate(-10deg);
	position: absolute;
	object-fit: cover;
	object-position: center;
}

#homePageMap {
	height: 46vw;
	width: 46vw;
	object-fit: contain;
	background-image: url(/static/img/map.jpg);
	background-position: center;
	background-size: cover;
	border-radius: 5%;
	position: absolute;
	background-repeat: no-repeat;
	opacity: 0;
}

#address-bar {
	height: 50px;
	width: 300px;
	background-color: white;
	border: 8px solid #dee2e6;
	border-radius: 25px;
	color: darkgray;
	font-family: monospace;
	position: absolute;
	transform: rotate(-4deg);
	opacity: 0;
	z-index: 1;
	top: -6px;
	left: -6%;
}

#homePageMapRadius {
	height: 46vw;
	width: 46vw;
	background-image: url(/static/img/radius2.png);
	background-position: center;
	background-size: cover;
	border-radius: 5%;
	position: absolute;
	background-repeat: no-repeat;
	clip-path: circle(0% at 50% 50%);
}

#iphone {
	--height: 90vh;
	--vw-push: 25;
	background-image: url("static/img/iphone.png");
	background-position: center center;
	background-size: contain;
	background-repeat: no-repeat;
	height: var(--height);
	width: calc(var(--height) * (490 / 998));
	position: absolute;
	z-index: 3;
	transform-origin: center;
}

#mail-grid-wrapper {
	position: absolute;
	mask-image: linear-gradient(to right, transparent, 5%, black, 95%, transparent);
	height: 100%;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	overflow: hidden;
}

#mail-grid {
	position: absolute;
	transform: rotate(-45deg);
	width: 115%;
	overflow: hidden;
}

#envelope1 {
	filter: hue-rotate(240deg);
}

#envelope2 {
	filter: hue-rotate(180deg);
	transform: rotate(180deg);
}

#roofer-shaking-hands {
	border-radius: 30% 70% 18% 82% / 52% 30% 70% 48%;
}

#lead-machine-section {
	margin-top: 2rem;
	margin-bottom: 4rem;
}

#countdown-timer {
	min-height: 11vh;
	padding-inline: 0.75rem;
	margin-block: 1rem;
	width: 40%;
}

#countdown-timer .col {
/*	height: 100%;*/
	font-size: 4vh;
	margin-inline: 0.5rem;
	background-color: hsl(0deg, 0%, 9%);
	display: flex;
	justify-content: center;
	border-radius: 15px;
	width: 25%;
}

#countdown-timer .label {
	font-size: 2vh;
}

* {
/*  border: 1px solid red;*/
}



/* Medium devices (tablets, 768px and up but below 992px) */
@media (max-width: 991.98px) {

	.display-1 {
		font-size: 3rem;
	}

	#roofer-shaking-hands {
		width: 60%;
	}

	#roofer-img-wrapper {
		width: 60%;
	}

	.step-col {
		padding-top: 60vh;
		padding-inline: 1rem;
	}

	.step-col h3 {
		font-size: 1.3rem;
	}

	.step {
		font-size: 2.75rem;
		font-weight: 400;
	}

	.step span {
		font-size: 4.5rem;
		font-weight: 800;
	}

	.step-col p, .step-col li {
		font-size: 1rem;
	}

	.step-col li {
		margin-block: 1rem;
	}

	.animation-col {
		height: 60vh;
	}

	#roof-replacement {
		height: 80%;
		width: auto;
	}

	#homePageMap {
		height: 51vh;
		width: 51vh;
	}

	#homePageMapRadius {
		height: 51vh;
		width: 51vh;
	}

	#address-bar {
		height: 45px;
		width: 270px;
		border: 5px solid #dee2e6;
		left: -8%;
	}


	#iphone {
		--height: 60vh;
		--vw-push: 50;
		background-image: url("static/img/iphone-cropped.png");
		width: calc(var(--height) * (490 / 824));
		top: 0;
	}

	#screen {
		bottom: 0;
		border-top-right-radius: 4.9vh;
		border-top-left-radius: 4.9vh;
	}

	#spin-btn {
		top: 65%;
	}

	#mail-grid-wrapper {
		mask-image: linear-gradient(to bottom, transparent, 5%, black, 95%, transparent);
	}

}

/* Small devices (landscape phones, 500px and up but below 768px) */
@media (max-width: 767.98px) {
	.display-1 {
		margin-bottom: 2rem;
	}

	#roofer-shaking-hands {
		width: 75%;
	}

	#roofer-img-wrapper {
		width: 75%;
	}


	#address-bar {
		height: 40px;
		width: 230px;
		left: -2%;
		top: -1%;
		transform: rotate(-3deg);
	}

	#mail-grid {
		width: 150%;
	}

	#countdown-timer {
		width: 97%;
	}

	#countdown-timer .col {
		margin-inline: 0.3rem;
	}

}

/** {
	border: 1px solid red!important;
}
*/
/* Very small devices (phones, less than 500px) */
@media (max-width: 499.98px) {
	#roofer-shaking-hands {
		width: 100%;
	}

	#roofer-img-wrapper {
		width: 100%;
	}


	.btn-homepage {
		padding-inline: 1.2rem!important;
	}

	#hero-form {
		width: 100%!important;
	}

	#lead-machine-section h1 {
		font-size: 1.75rem;
	}

	#homePageMap {
		height: 55vh;
		width: 90vw;
	}

	#homePageMapRadius {
		height: 55vh;
		width: 90vw;
	}

	#address {
		font-size: 1.5rem;
	}

	.step-col h3 {
		font-size: 1.1rem;
	}

	.step {
		font-size: 2rem;
		font-weight: 400;
	}

	.step span {
		font-size: 2.6rem;
		font-weight: 800;
	}

	.step-col p, .step-col li {
		font-size: 1rem;
	}

	.step-col li {
		margin-block: 1rem;
	}

	.animation-btn {
		font-size: 1.1rem;
		margin: auto;
	}

}
