/* Global variable */
:root {
    /* Homepage Section */
	--white: #fff;
	--black: #000;
	--lightgrey: #e8e6e6;
	--lightred: #ff1c1c;
	--button_lighterred: #ff3b3b98;
	--button_darkerred: #ff2c2cde;
	--text_box_grey: #cacaca62;
	--text_border_grey: #acacac;

    /* Calculator Section */
    --calculator_light-red: #cf4040;
    --calculator_light-grey: #ddd;
    --calculator_grey: #333;
}



/* General Body Styling */
* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	font-family: 'Cambria';
	scroll-behavior: smooth;
}

body {
	background-color: var(--lightgrey);
	width: 100%;
	overflow: visible;
}



/* Header Styling */
header {
	background: var(--white);
	display: flex;
	font-size: 22px;
	position: sticky;
	top: 0;
	z-index: 99;
}

.navbar__container {
	display: flex;
	justify-content: space-between;
	height: 110px;
	z-index: 1;
	width: 100%;
	margin: 0 auto;
	padding: 0 20px;
}

#navbar__logo {
	display: flex;
	align-items: center;
	padding: 0 30px;
	cursor: pointer;
}

.navbar__menu {
	display: flex;
	align-items: center;
	list-style: none;
	text-align: center;
}

.navbar__item {
	height: 110px;
}

.navbar__links {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
}

.navbar__links:hover {
	transition: all 0.3s ease;
}

.navbar__image {
	height: 110px;
	width: 170px;
}

#image-mat {
	margin-left: 20px;
	margin-right: -10px;
}



/* Responsive Menu Fix */
@media screen and (max-width: 1080px) {
	.navbar__container {
		display: flex;
		justify-content: space-between;
		height: 180px;
		z-index: 1;
		width: 100%;
		padding: 0;
		margin: 0;
	}

	.navbar__menu {
		display: grid;
		grid-template-columns: repeat(1fr, 1);
		background: var(--lightred);
		padding: 0;
		width: 100%;
		position: absolute;
		top: -1000px;
		opacity: 0;
		transition: all 0.5s ease;
		height: 50vh;
		z-index: -1;
	}

	.navbar__menu.active {
		background: var(--white);
		top: 100%;
		opacity: 1;
		transition: all 0.5s ease;
		z-index: 99;
		height: 50vh;
	}

	#navbar-img-logo {
		content: url("images/logo/main/logo3.png");
		height: 92px;
	}

	#navbar-logo {
		padding-left: 30px;
	}

	.navbar__toogle .bar {
		display: block;
		width: 50px;
		height: 7px;
		margin: 9px auto;
		transition: all 0.3s ease-in-out;
		background: var(--black);
		cursor: pointer;
	}

	#mobile-menu {
		position: absolute;
		top: 27%;
		right: 5%;
		transform: translate(5%, 25%);
	}

	.navbar__item {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
	}

	.navbar__links {
		display: flex;
		text-align: center;
		width: 100%;
	}

	.navbar__links:hover {
		color: var(--lightred);
		transition: all 0.4s ease-out;
	}

	.navbar__image {
		height: 170px;
		width: auto;
	}

	#image-mat {
		margin: 0;
	}	

	/* Rotating menu bar into x */
	#mobile-menu.is-active .bar:nth-child(2) {
		opacity: 0;
	}

	#mobile-menu.is-active .bar:nth-child(1) {
		transform: translateY(15px) rotate(45deg);
		height: 6px;
	}

	#mobile-menu.is-active .bar:nth-child(3) {
		transform: translateY(-16px) rotate(-45deg);
		height: 6px;
	}
}



/* Main Styling */
main {
	z-index: 99;
	margin: 0;
	padding: 0;
}

.materials__container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.materials__main {
	display: flex;
	justify-content: center;
	margin-top: 80px;
}

.block {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 900px;
	height: 930px;
	border-radius: 8px;
	background-color: var(--white);
}

.block__content {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	width: 100%;
	margin-top: 15px;
}

.title {
	height: 300px;
	margin: -85px 0 -125px 0;
}

#color {
	margin: -85px 0 -115px 0;
}

#block-left {
	margin-right: 60px;
}

#block-right {
	margin-left: 60px;
	margin-bottom: 50px;
}

.description {
	font-size: 24px;
	font-weight: 400;
	text-align: center;
	width: 45%;
	margin-left: 10px;
	margin-top: 20px;
}

.gallery__link {
	color: var(--lightred);
	text-decoration: none;
}

.materials__image {
	margin-top: 20px;
	margin-right: 15px;
	width: 80%;
}

#img-cart {
	width: 400px;
	height: 600px;
}

#img-color {
	width: 450px;
	height: 450px;
}

.download__button {
	width: 300px;
	height: 120px;
	font-size: 32px;
	color: var(--white);
	background-color: var(--button_lighterred);
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.download__button:hover {
	background-color: var(--button_darkerred);
}

.download__button:active {
	background-color: var(--button_lighterred);
}

#btn-cart {
	margin-top: 20px;
}

#btn-color {
	margin-top: 50px;
}


@media screen and (max-width: 1580px) {
	body {
		overflow: visible;
	}

	.materials__main {
		display: grid;
		grid-template-columns: repeat(1fr, 1);
	}

	#block-left {
		margin-right: 0px;
	}
	
	#block-right {
		margin-left: 0px;
		margin-top: 80px;
		height: 800px;
	}
}