@font-face {
	font-family: "Heebo";
	src: url(../fonts/heebo/Heebo-VariableFont_wght.woff2) format("woff2");
	src: url(../fonts/heebo/Heebo-VariableFont_wght.ttf) format("truetype");
	font-weight: 100 600;
}

@font-face {
	font-family: "Mulish";
	src: url(../fonts/mulish/Mulish-Regular.ttf) format("truetype");
	src: url(../fonts/mulish/Mulish-Regular.woff2) format("woff2");
	font-weight: normal;
}

@font-face {
	font-family: "Mulish";
	src: url(../fonts/mulish/Mulish-Bold.ttf) format("truetype");
	src: url(../fonts/mulish/Mulish-Bold.woff2) format("woff2");
	font-weight: bold;
}

:root {
	--main-max-width: 80%;
	--main-max-width-mobile: 90%;
	--primary-green-color: #045644;
	--primary-font-family: "Heebo", "Arial", sans-serif;
	--secondary-font-family: "Mulish", "Arial", sans-serif;
	--gray: #808080;
	--light-gray: rgb(155 152 152);
	--product-image-max-height: 160px;
	--product-image-max-width: 160px;
}

html {
	height: 100%;
	width: 100%;
	min-width: fit-content;
	font-size: calc(1rem + 0.2vw);
}

body {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
	font-family: "Heebo";
}

#hero {
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	text-align: center;
	position: relative;
	background: #032b22;
	display: flex;
	place-content: center;
	align-items: center;
	flex-direction: column;
}

#hero .hero-content {
	max-width: var(--main-max-width);
	margin: 0 auto;
	width: 100%;
}

#hero h1 {
	font-size: 3rem;
	margin-bottom: 1rem;
}

#hero h5 {
	font-size: 1.5rem;
	margin-top: 0;
	font-weight: 300;
}

/* CSS for the carousel */

#categories {
	padding: 2em 0 2em 0;
	max-width: var(--main-max-width);
	margin: 0 auto;
	width: 100%;
}

#categories h2 {
	margin-bottom: 1em;
	text-align: left;
}

#categories .cards {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 768px) {
	#categories .cards {
		grid-template-columns: 1fr 1fr;
		justify-items: center;
	}
}

@media (max-width: 480px) {
	#categories .cards {
		grid-template-columns: 1fr;
		justify-items: center;
	}
}

@media (max-width: 320px) {
	#hero h1 {
		font-size: 2rem;
	}

	#hero h5 {
		font-size: 1.25rem;
	}
}

#categories .card {
	background-color: #f9f9f9;
	padding: 0;
	cursor: pointer;
	text-align: center;
	max-width: 100%;
	width: 100%;
	position: relative;
	text-decoration: none;
	color: inherit;
	font-size: 1.5rem;
}

.carousel {
	position: relative;
	width: 100%;
	padding-top: 100%;
	overflow: hidden;
}

#categories .card img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	animation: fadeInOut 12s infinite;
	position: absolute;
	top: 0;
	left: 0;
}

#categories .card img:first-child {
	opacity: 1;
}

/* Delay for each image */
#categories .card.carousel img:nth-child(1) {
	animation-delay: 0s;
}

#categories .card.carousel img:nth-child(2) {
	animation-delay: 4s;
}

#categories .card.carousel img:nth-child(3) {
	animation-delay: 8s;
}

/* Keyframes for fade in and fade out */
@keyframes fadeInOut {
	0% {
		opacity: 0;
	}
	8.33% {
		opacity: 1;
	}
	33.33% {
		opacity: 1;
	}
	41.67% {
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

#about {
	display: flex;
	align-items: center;
	background: rgb(220 220 220 / 20%);
}

#about .about-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	width: 100%;

	max-width: var(--main-max-width);
	margin: 0 auto;
}

#about .about-header {
	align-self: flex-start;
	margin-bottom: 2rem;
	overflow-wrap: break-word;
}

#about .about-header h4,
#about .about-header h2 {
	margin-bottom: 0;
}

#about .about-image {
	width: 50%;
	text-align: right;
}

#about .about-image img {
	max-width: 100%;
	height: auto;
}

#about .about-description {
	display: flex;
	gap: 3rem;
	font-family: "Mulish";
	margin-top: 1rem;
}

#about .about-description .about-description-content {
	display: flex;
	flex-direction: column;
}

#about .about-description .about-description-content h3 {
	margin-bottom: 0;
}

#about .about-description .about-description-wrapper {
	width: 33.333%;
}

.icon-pricecheck,
.icon-glass,
.icon-savings {
	height: 5rem;
	width: auto;
	fill: black;
}

.icon-pricecheck-check {
	transform: translate(75px, 65px);
}

.icon-dollar {
	height: 3rem;
	transform: translateY(-14px);
}

.icon-check {
	height: 2.5rem;
	transform: translate(-40px, 5px);
}

footer {
	background: rgb(220 220 220 / 20%);
	font-size: 0.6rem;
	color: #808080;
	width: 100%;
}

footer > .footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	white-space: nowrap;
	max-width: var(--main-max-width);
	margin: 0 auto;
	padding: 1rem 0 1rem 0;
}

footer > .footer-content * {
	margin: 0 0.5rem 0 0.5rem;
	text-decoration: none;
	color: inherit;
}

footer > .footer-content a:hover {
	text-decoration: underline;
	text-underline-offset: 0.1rem;
}

@media (max-width: 1024px) {
	header > nav,
	#hero .hero-content,
	#categories,
	#about .about-content,
	.footer-content {
		max-width: var(--main-max-width-mobile);
	}

	#about .about-description {
		flex-direction: column;
	}

	#about .about-header,
	#about .about-description .about-description-wrapper {
		width: 100%;
	}
}
