@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap");

:root {
	--bg-main: hsl(0, 0%, 94%);
	--teal: hsl(195, 37%, 52%);
	--purple: rgb(133, 96, 176);
	--color-main: hsl(237, 23%, 18%);
	--hr: rgba(128, 128, 128, 0.459);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

body {
	font-size: 1rem;
	font-family: "Rubik", Tahoma;
	font-weight: 400;
	text-align: center;
	overflow-x: hidden;
	background-color: var(--bg-main);
}

.title {
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: row;
	padding: 3rem;
	gap: 0.4rem;
}

.title__point {
	border-radius: 50%;
	height: 0.8rem;
	width: 0.8rem;
	margin: 0.2rem;
}

.title__point__left {
	background-color: var(--purple);
}
.title__point__right {
	background-color: var(--teal);
	position: relative;
	left: -0.7rem;
}

.hero__container {
	display: flex;
	flex-direction: row;
	position: static;
	z-index: 2;
	justify-content: space-between;
}

.hero {
	padding: 0.6rem;
	width: 14rem;
	position: static;
}
.hero__left__image {
	left: unset;
}
.hero__right__image {
	right: unset;
}

section,
footer {
	display: flex;
	margin: 0 auto;
	align-items: center;
	flex-direction: column;
	position: relative;
	overflow-x: hidden;
	z-index: 4;
}

.article__container {
	padding: 4rem 1rem 2rem;
	width: unset;
}

.article__container h1 {
	font-size: 2.4rem;
	padding: 2rem;
}

.btn__container {
	display: flex;
	width: 100%;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	padding: 2rem;
	margin: auto;
	gap: 1rem;
}

.btn {
	color: white;
	font-weight: 600;
	border: none;
	border-radius: 1.2rem;
	padding: 0.7rem 1.2rem;
	letter-spacing: 0.5px;
	background-color: var(--purple);
}

.btn__download {
	background-color: var(--teal);
}

button:hover {
	background-color: rgba(129, 129, 129, 0.418);
	cursor: pointer;
	color: var(--color-main);
}

span {
	opacity: 0.6;
}
hr {
	height: 4rem;
	z-index: 0;
	width: 1px;
	opacity: 0.5;
}
.page__number {
	z-index: 100;
	border-radius: 50%;
	background-color: white;
	border: 1.6px solid var(--hr);
	padding: 0.6rem;
	opacity: 1;
	margin: 0 auto 4rem;
	z-index: 20;
}

.article__container h1 {
	font-size: 2.4rem;
	padding: 0 2rem 2rem;
}

.section__middle__container {
	width: 80%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 1.4rem;
}

.section__middle__image {
	border-radius: 10px;
	width: 45%;
}

.article__container__two h3 {
	font-size: 1.2rem;
	opacity: 0.6;
	letter-spacing: 4px;
}

.article__container__two h2 {
	padding: 1rem 1rem;
	font-size: 2rem;
}

.article__container__two p {
	color: grey;
	line-height: unset;
}

.section__two {
	margin-bottom: 5rem;
}

footer {
	display: none;
}

/* Media queries  - Desktop+ version */

@media (min-width: 800px) {
	.hero__container {
		position: absolute;
		display: static;
	}

	.hero {
		padding: 0.6rem;
		width: 22rem;
		position: absolute;
	}

	.hero__left__image {
		left: -37rem;
	}
	.hero__right__image {
		right: -37rem;
	}

	.article__container {
		padding: 3rem;
		width: clamp(30rem, 45%, 36rem);
	}

	/* .article__container p {
		overflow: break-word;
	} */

	.article__container h1 {
		font-size: 3rem;
		padding: 2rem;
	}

	.btn__container {
		flex-direction: row;
	}

	.section__middle__container {
		flex-direction: row;
	}

	.section__middle__image {
		width: 20%;
	}

	.article__container__two p {
		color: grey;
		line-height: 1.5rem;
	}

	footer {
		display: flex;
		background-image: url("./assets/desktop/image-footer.jpg");
		background-size: cover;
		z-index: 1;
		position: relative;
		height: 16rem;
		justify-content: center;
		overflow: visible;
	}
	.overlay {
		position: absolute;
		background-color: teal;
		opacity: 0.7;
		z-index: -1;
		width: 100%;
		height: 100%;
	}

	.hr__footer {
		position: relative;
		left: 50%;
		border: none;
		width: 1px;
		z-index: 10;
		background-color: var(--hr);
		opacity: 1;
		top: -1rem;
	}

	.page__number__footer {
		position: absolute;
		left: 50%;
		transform: translate(-50%);
		top: -1rem;
		opacity: 1;
	}

	.footer__img {
		position: absolute;
		width: 100%;
		height: 100%;
		left: 0;
		top: 0;
	}

	.footer__content {
		width: clamp(30rem, 80%, 75rem);
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		color: white;
		z-index: 10;
		opacity: 1;
		height: auto;
	}

	.footer__content h2,
	.footer__content p {
		width: 30%;
	}
}
