html,
body {
	height: 100%;
	scroll-behavior: smooth;
}

* {
	box-sizing: border-box;
	outline: none;
}

a,
a:hover {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

b {
	font-weight: 700 !important;
}

p {
	padding: 10px 0;
}

body {
	font: 300 16px/1.4 "Poppins", sans-serif;
	overflow-x: hidden;
	margin: 0;
	padding: 0;
	background-color: #fff;
	position: relative;
}

header {
	display: flex;
	padding: 20px 30px;
}

footer {
	padding: 80px 60px;
	background: #fff url("/img/footer.png") no-repeat bottom center;
	background-attachment: fixed;
	color: #000;
	display: grid;
	place-content: center;
	text-align: center;
	font-size: 0.8em;
}

footer img {
	width: min(300px, 30vw);
	height: auto;
	display: block;
	margin: 0 auto;
}

nav {
	z-index: 999;
	background-color: #FFFFFF33;
	backdrop-filter: blur(6px);
	display: flex;
	flex: 1;
	justify-content: right;
	align-items: center;
	gap: 2em;
	padding: 20px 40px;
	margin: 0;

}

nav a {
	font-weight: 600;
	text-shadow: 2px 2px 8px #FFF;
	transition: color 0.3s ease-in-out;
}

nav a:hover {
	color: #888;
}

#modalWrapper {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background-color: rgba(0, 0, 0, 0.75);
	/* backdrop-filter: blur(10px); */
	display: grid;
	place-content: center;
	backdrop-filter: blur(5px);
}

.formElement {
	overflow-y: auto;
	width: 100%;
	height: 100%;
	max-width: 500px;
	max-height: 80vh;
	background: #fff;
	border-radius: 24px;
	display: flex;
	flex-direction: column;
	gap: 1em;
	padding: 40px;
	position: relative;
	box-shadow: 0 0 5em -1em #000;
}

#modalWrapper h2 {
	font-weight: 700;
	font-family: "Raleway", sans-serif;
	font-size: 1.8em;
	text-transform: uppercase;
	color: #46756B;
	margin-bottom: 1em;
	padding-bottom: 1em;
	border-bottom: 1px solid #46756B;
}

.closeButton {
	position: absolute;
	top: 24px;
	right: 24px;
	cursor: pointer;
	z-index: 11001;
}

form {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

form .flexWrapper {
	display: flex;
	gap: 1em;
}

form .buttonWrapper {
	display: flex;
	gap: 1em;
	justify-content: flex-end;
}

form button {
	font-weight: 700;
	border: 2px solid #C5D27A;
	background: #eee;
	color: #000;
	border-radius: 6px;
	padding: 10px 32px;
	transition: all 0.3s;
	cursor: pointer;
}

form button:hover {
	box-shadow: 0 0 24px rgba(0, 0, 0, 0.3);
	border-color: #fff;
	border-radius: 2em;
}

form button.accent {
	background-color: #C5D27A;
	color: #fff;
}

form input,
form textarea {
	width: 100%;
	font-family: "Muli", sans-serif;
	border: 2px solid #eee;
	background: none;
	border-radius: 4px;
	padding: 6px 8px;
	transition: all 0.25s;
	font-size: 12px;
	line-height: 1.1em;
}

form input:focus,
form textarea:focus {
	border-color: #286118;
}

.viewport {
	min-height: 100dvh;
	display: grid;
}

.viewport-half {
	min-height: 50dvh;
	display: grid;
	padding: 5em;
}

.hero {
	background: #fff url(/img/slider-2.jpg) center no-repeat;
	background-size: cover;
	background-attachment: fixed;
	height: 80dvh;
}

.hero h1 {
	font-size: 5em;
	font-weight: 700;
	text-shadow: 2px 2px 16px #00000088;
	color: #fff;
	text-align: center;
}

#about-section {background-color: #46756B; color: #FFF; padding: 60px 80px}
#about-section h2 {color: #FFF; font-family: 'Lobster', cursive;}
#about-section p {padding: 12px 0;}
.width-controller {max-width: 1200px; margin: 0 auto;}
h2.section-hdr {font-size: 3em; margin-bottom: 1.2em;}
h3 {font-size: 1.5em; font-weight: 700; padding: 1em 0 0}

.accent-a {background-color: #C5D27A; color: #000;}
.accent-a h2 {color: #46756B;}
.centered-grid {display: grid; place-content: center; padding: 20px}
h2 {font-size: 2em; font-weight: 700; text-align: center;}
#prayer-times {text-align: center}
#prayer-times ul {display: grid; grid-template-columns: 1fr 1fr; font-weight: 700}

#gallery {display: grid; margin: 80px auto; max-width: 1200px; grid-template-columns: repeat(5, 1fr); gap :1em; padding: 0 2em;}
#gallery img { display: block; width: 100%; height: auto;}
#gallery #first-span {grid-column: 3/5;}
#gallery #second-span {grid-column: 2/4;}

.centered-flex {display: flex; flex: 1 1 50%;}
.content-bullets {list-style-type: disc}
.content-bullets li {padding: 12px 0; list-style-position: inside;}
.columns {display: grid; grid-template-columns: 1fr 1fr; gap: 2em}

#event {padding: 50px; max-width: 1000px; text-align: center !important; margin: 100px auto;}
#event h1 {font-weight: 700; font-size: 3em; text-align: center; color: #C5D27A; margin-bottom: 32px;}
#event h1 span {font-size: .7em; display: block;}
#event a, .bigbutton {padding: 16px 36px; display: inline-block; background-color: #C5D27A; color: #FFF; font-weight: 700; font-size: 1.4em; border-radius: 50px}
.bigbutton {background-color: #FFF; color: #C5D27A}
#donations, #board {padding: 5em 0; text-align: center; font-size: 1.2em;}
#donations h2, #board h2, .section-hdr {font-family: 'Lobster', cursive;}

#upcoming {background-color: #F7F7F7; padding: 60px 80px;}
#upcoming h2 {grid-column: -1/1;}
#upcoming .width-controller {display: grid; grid-template-columns: 1fr 1fr; gap: 2em}
#upcoming .element {text-align: center; border: 1px solid #DDD; border-radius: 16px; padding: 20px 32px; background-color: #FAFAFA}
#upcoming .element .title {font-size: 1.3em; font-weight: 700;}
#upcoming .element .by {font-size: 1em; font-weight: 700;}
#upcoming .element .by, #upcoming .element .date {padding: 0; margin: 0;}
#upcoming .element a {display: inline-block; font-weight: 700; color: #FFF; background-color: #02629E; padding: 4px 16px; margin: 8px; border-radius: 99px}
#upcoming .element a.register {background-color: #AAA}
#upcoming .element hr {width: 60%; border: 0; border-bottom: 1px solid #CCC; margin: 12px auto; padding: 0}

.smaller {font-size: .8rem; font-weight: bold;}
.grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 2em; padding: 1em;}
.column h3 {font-size: 1.2em; margin-bottom: .6em;}
.column h3 span {display: block; font-size: 0.7rem; color: #777; font-weight: 400;}
#prayertimes {text-align: center; color: #FFF; font-size: 1.2em; margin: 1em auto; padding: 1em; font-weight: 700; display: none; 
	background-color: #00000044; backdrop-filter: blur(5px); border-radius: 12px}
.address {text-align: center; margin: 0; padding: 0 2em; background-color: #EEE}
.address a {font-weight: bold; color: #02629E;}

@media (max-width: 800px) {
	#gallery {grid-template-columns: repeat(3, 1fr);}
	#gallery .nomobile {display: none;}
	header {flex-direction: column}
	header a {text-align: center;}
	nav {justify-content: center; gap: 1em;}
	.hero h1 {font-size: 4em;}
	#about-section {padding: 30px 40px}
	h2.section-hdr {margin-bottom: 1em;}
	.columns {grid-template-columns: 1fr}
	.grid {grid-template-columns: repeat(2, 1fr)}
	#upcoming {padding: 30px 40px;}
	#upcoming .width-controller {grid-template-columns: 1fr; gap: 2em}
}

@media (max-width: 600px) {
	body {
		font-size: 11px;
	}
	.viewport h1 {
		margin: 40px 0;
	}
	header a img {max-width: 90%; display: block; height: auto;}
	.grid {grid-template-columns: 1fr}
	
}

@media (min-width: 481px) and (max-width: 680px) {
	
}

@media (min-width: 641px) and (max-width: 960px) {
	
}

@media (min-width: 641px) and (max-width: 1080px) {
	
}