@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500&display=swap');

/* ------- General Styles ------- */
* {
	margin: 0;
	padding: 0;
	
	text-decoration: none;
}

section {
	padding: 3rem 11% 11%;
}

html {
	height: 100%;
	box-sizing: border-box;
	scroll-behavior: smooth;
}

body {
	font-family: 'IBM Plex Sans Arabic', sans-serif;
	position: relative;
	margin: 0;
	min-height: 100%;
	box-sizing: inherit;
	display: flex;
	flex-direction: column;
}

nav {
	list-style: none;
	height: 78px;
	background: white;
	position: fixed;
	margin-bottom: 6.7rem;
	left: 0;
	top: 0;
	right: 0;
}

nav img {
	width: 67px;
	margin-right: 25px;
	top: 17px;
	float: right;
}

nav ul {
	float: right;
	margin-right: 25px;
}

nav ul li {
	display: inline-block;
	line-height: 80px;
	margin-top: 0 15px;
}

nav ul li a {
	position: relative;
	color: black;
	font-size: 17px;
	padding: 10px;
	text-transform: uppercase;
}

nav ul li a:before {
	position: absolute;
	content: '';
	left: 0;
	bottom: 0;
	height: 2px;
	width: 100%;
	background: #1e59a1;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.4s linear;
}

nav ul li a:hover:before {
	transform: scaleX(1);
	transform-origin: left;
}

label #btn,
label #cancel {
	color: #34495e;
	font-size: 30px;
	float: right;
	line-height: 80px;
	margin-right: 40px;
	cursor: pointer;
	display: none;
}

#check {
	display: none;
}

@media (max-width: 1118px) {
	nav img {
		left: 8%;
	}
}

@media (max-width: 944px) {
	nav img {
		left: 6%;
		top: 20px;
		width: 70px;
	}
	nav ul li a {
        
		font-size: 17px;
	}
}

@media (max-width: 860px) {
	label #btn {
		display: block;
	}

	ul {
	position: fixed;

		width: 100%;
		height: 100vh;
		background: white;
		top: 80px;
		right: -110%;
		text-align: center;
		transition: all 0.5s;
	}

	nav ul li {
		display: block;
		margin: 50px 0;
		line-height: 30px;
	}

	nav ul li a {
		font-size: 20px;
	}

	#check:checked ~ ul {
		right: 0%;
	}

	#check:checked ~ label #btn {
		display: none;
	}

	#check:checked ~ label #cancel {
		display: block;
	}
}

.home {
	display: flex;
	align-items: center;
	justify-content: center;
	background-position: center;
	background-size: cover;
	background-image: url(images/200.png);
	padding-top: 17rem;
	padding-bottom: 10rem;
}

.quran {
	align-items: right;
	justify-content: right;
}

.aboutus {
	display: block;
	align-items: center;
	justify-content: center;
	background-position: center;
	background-size: cover;
	background-image: url(images/ABOUT.png);
	padding-bottom: 10rem;
	text-align: center;
}

.aboutTitle {
	padding-bottom: 16px;
	font-size: 28px;
	font-weight: 90;
	color: #30476e;
}

#category {
	display: flex;
	background-color: white;
	align-items: center;
	padding-bottom: 8.5rem;
	padding-top: 5.5rem;
	justify-content: space-between;
	flex-wrap: wrap;
}

#category .category-card {
	width: 90px;
	height: 70px;
	text-align: center;
	padding: 20px 16px;
	padding-bottom: 40px;
	border-radius: 4px;
	background-color: #30476e;
	border: 1px solid #30476e;
	box-shadow: 20px 20px 34px rgba(0, 0, 0, 0.03);
	transition: 0.3s ease-in-out;
	margin: 10px 0;
}

#category .category-card:hover {
	box-shadow: 10px 10px 54px rgba(70, 62, 221, 0.1);
}

#category .category-card img {
	width: 63%;
	margin-left: 10px;
	margin-bottom: 1.5px;
}

#category .category-card h6 {
	display: inline-block;
	padding: 9px 8px 6px 8px;
	line-height: 1;
	border-radius: 4px;
	color: white;
}

/* Responsive Styles */

@media (max-width: 768px) {
	section {
		padding: 3rem 5% 11%;
	}

	nav img {
		width: 50px;
		margin-right: 15px;
		top: 12px;
	}

	nav ul li a {
		font-size: 14px;
		padding: 8px;
	}

	.home {
		padding-top: 10rem;
		padding-bottom: 6rem;
	}

	.aboutus {
		padding-bottom: 6rem;
	}

	.aboutTitle {
		font-size: 24px;
	}

	#category .category-card {
		width: 70px;
		height: 55px;
		padding: 16px 12px;
		padding-bottom: 30px;
		margin: 8px 0;
	}

	#category .category-card img {
		width: 55%;
		margin-left: 8px;
		margin-bottom: 1px;
	}

	#category .category-card h6 {
		padding: 7px 6px 5px 6px;
		font-size: 12px;
	}
}


