/* Global variable */
:root {
	--white: #fff;
	--black: #000;
	--lightgrey: #e8e6e6;
	--lightred: #ff1c1c;
	--button_lighterred: #ff3b3b98;
	--button_darkerred: #ff2c2cde;
	--text_box_grey: #cacaca62;
	--text_border_grey: #acacac;
	--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;
	position: sticky;
	top: 0;
	z-index: 99;
}

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

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

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

.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;
}

/* HOMEPAGE Section */
/* Background Image Section */
.main__image-container {
	text-align: center;
	position: relative;
	width: 100%;
	height: auto;
	scroll-margin-top: 150px;
}

#main__img {
	width: 100%;
	height: auto;
	display: block;
}

/* Materials Section */
.materials__container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	z-index: 1;
	scroll-margin-top: 120px;
}

.materials__container-h1 {
	height: 300px;
	margin-top: 10px;
}

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

.materials__blocks {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 60px;
	list-style: none;
	justify-content: center;
}

.materials__button {
	display: flex;
	justify-content: center;
	width: 100%;
}

.img__btn {
	cursor: pointer;
	border-radius: 8px;
	box-shadow: 3px 4px 6px rgba(0, 0, 0, 0.2);
	transition: 0.3 ease-in-out;
}

.img__btn:hover {
	transform: scale(1.05);
	box-shadow: 6px 7px 10px rgba(0, 0, 0, 0.3);
	z-index: 1;
}


/* Article Section */
.text__container {
	display: flex;
	width: 100%;
	z-index: 1;
	margin: 0;
	scroll-margin-top: 120px;
}

.text__main {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.text__main-h1 {
	height: 300px;
	margin: 90px 0 -20px 0;
}

.content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 60%;
	gap: 10px;
	max-width: 3000px;
	padding: 5px 0 5px 15px;
}

.text {
	display: block;
	font-family: "Cambria";
	margin: 5px 0;
	width: 65%;
	text-align: center;
	font-size: 26px;
	font-weight: 400;
	line-height: 1.4;
}

.content__images {
	display: flex;
	flex-direction: column;
	margin: 40px 0;
}

.team__img {
	height: 500px;
	width: 880px;
}

.img__description {
	font-size: 18px;
	text-align: left;
}

.img__description-team-members {
	text-align: left;
}

/* Fundrising Section */
.fundraising__container {
	display: flex;
	width: 100%;
	z-index: 1;
}

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

.fundraising__main-h1 {
	height: 300px;
	margin-top: 30px;
}

.fundraising__content {
	display: flex;
	justify-content: center;
	text-align: center;
	width: 100%;
}

.fundraising__text-box {
	display: block;
	width: 35%;
	font-family: "Cambria";
	font-size: 24px;
	margin: 0 5% 0 0;
	padding: 5px 0 5px 15px;
	text-align: left;
	font-weight: 400;
	line-height: 1.3;
}

/* Partner-ship Section */
.partner-ship__container {
	display: flex;
	justify-content: center;
	align-items: center;
}

.partner-ship__main {
	display: flex;
	align-items: center;
	flex-direction: column;
	width: 100%;
}

.partner-ship__main-h1 {
	height: 300px;
	margin-top: 40px;
}

.partner-ship__shifter {
	display: flex;
	width: 65%;
	padding: 10px 0;
	overflow: auto;
}

.partner__icon {
	height: 125px;
	margin: 0 10px;
	border-radius: 4px;
}

/* Footer Section */
.footer__container {
	font-size: 22px;
	padding: 80px 0 80px 0;
}

.social__media {
	width: 100%;
}

.social__media-wrap {
	display: flex;
	align-items: center;
	width: 90%;
	max-width: 1200px;
	margin: 10px auto 10px auto;
}

.footer__logo {
	display: flex;
	align-items: center;
	cursor: pointer;
	text-decoration: none;
}

.project__leader-logo {
	height: 80px;
	margin-left: 25px;
	margin-right: 25px;
}

.website__rights {
	text-align: center;
	color: var(--black);
}

.social__icons {
	display: flex;
	justify-content: space-between;
	width: 200px;
	margin-left: 40px;
}

.social__icon-link {
	color: var(--black);
	font-size: 24px;
}

.social__logo {
	color: var(--black);
	justify-self: flex-start;
	margin-left: 20px;
	cursor: pointer;
	text-decoration: none;
	display: flex;
	align-items: center;
	margin-bottom: 16px;
}


/* Responsive Homepage Section Fix */
@media screen and (max-width: 1080px) {
	/* Materials Section */
	.materials__container-h1 {
		height: 320px;
	}

	.materials__blocks {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 80px;
	}

	.materials__button {
		width: 100%;
	}

	.img__btn {
		height: 380px;
	}

	/* Article Section */
	.text__main-h1 {
		height: 320px;
		margin: 90px 0 -30px 0;
	}

	.content {
		width: 80%;
	}

	.text {
		width: 98%;
		text-align: center;
		font-size: 30px;
	}
	
	.team__img {
		height: 400px;
		width: 700px;
	}
	
	.img__description {
		font-size: 24px;
	}

	/* Fundraising Section */
	.fundraising__main-h1{
		height: 320px;
		margin-bottom: -20px;
	}

	.fundraising__content {
		flex-direction: column;
		justify-content: center;
		align-items: center;
		width: 100%;
	}
	
	.fundraising__text-box {
		width: 70%;
		font-size: 32px;
		margin-right: 25px;
		margin-bottom: 50px;
		text-align: center;
	}

	/* Partnership Section */
	.partner-ship__main-h1 {
		margin: 0;
	}

	.partner-ship__shifter {
		width: 80%;
	}

	.partner__icon {
		height: 150px;
	}

	/* Footer Section */
	.footer__container {
		font-size: calc(1vw + 14px);
	}

	.footer__links {
		padding-top: 32px;
	}

	.footer__logo {
		margin-bottom: 32px;
	}

	.website__rights {
		margin-bottom: 32px;
	}

	.footer__link-wrapper {
		flex-direction: column;
	}

	.social__media-wrap {
		flex-direction: column;
	}

	.social__icons {
		margin: 0;
	}

}

@media screen and (max-width: 800px) {
	/* Materials Section */
	.materials__container-h1 {
		height: 250px;
	}

	.materials__blocks-functionality {
		gap: 50px;
	}

	.img__btn {
		width: 280px;
		height: 280px;
	}

	/* Article Section */
	.text__main-h1 {
		height: 250px;
		margin-bottom: -30px;
	}

	.text {
		width: 70%;
	}

	.content {
		text-align: center;
	}

	/* Fundrising Section */
	.fundraising__main-h1 {
		height: 210px;
		margin: 60px 0 -10px 0;
	}

	.fundraising__content {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.fundraising__content p {
		width: 70%;
		margin-bottom: 60px;
		text-align: center;
	}

	.fundraising__content iframe {
		width: 400px;
	}

	/* Partnership Section */
	.partner-ship__main-h1 {
		height: 210px;
		margin: 40px 0 -20px 0;
	}

	.partner-ship__shifter {
		width: 85%;
	}

	.partner__icon {
		height: 100px;
	}

	/* Footer Section */
	.footer__link-items {
		margin: 0px;
		padding: 10px;
		width: 100%;
	}
}
