html {
scroll-behavior: smooth;
}
html, body {
height: 100%;
}
a:focus,
button:focus {
outline: 3px solid #b18c5e;
outline-offset: 2px;
}
body {
display: flex;
flex-direction: column;
margin: 0;
font-family: 'Tajawal', sans-serif;
background-color: #fefbf5;
color: #3b2f2f;
line-height: 1.6;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background: #ffffff;
border-bottom: 1px solid #e0e0e0;
}
.logo {
padding: 10px;
max-height: 60px;
width: auto;
max-width: 100%;
height: auto;
object-fit: contain;
}
.logo-link {
display: flex;
align-items: center;
}
nav ul {
display: flex;
gap: 1.5rem;
list-style: none;
margin: 0;
padding: 0;
font-size: 1rem;
font-weight: 600;
}
nav a {
text-decoration: none;
color: #3b2f2f;
font-weight: 500;
transition: color 0.3s ease;
}
nav a:hover,
nav a.active {
color: #b18c5e;
text-decoration: underline;
font-weight: bold;
}
.hamburger {
position: relative;
z-index: 2;
display: none;
font-size: 2rem;
cursor: pointer;
background: none;
border: none;
color: #b18c5e;
}
.hamburger .close-icon {
display: none;
font-size: 2rem;
}
.hamburger.open .hamburger-icon {
display: none;
}
.hamburger.open .close-icon {
display: inline;
}
/* Adjust nav ul transitions */
nav ul {
transition: right 0.3s ease-in-out;
}
nav.open ul {
right: 0;
}
main {
flex: 1;
max-width: 850px;
margin: auto;
padding: 2rem 1rem;
}
/* Base Styles */
body {
background: #f9f9f9;
color: #333;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 0;
line-height: 1.5;
}
/* Prayer Times */
.prayer-times {
max-width: 100%;
margin: 3rem auto;
background: #fff;
border-radius: 12px;
padding: 2rem 1.5rem;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
text-align: center;
}
.prayer-times h2 {
font-size: 2rem;
font-weight: 700;
margin-bottom: 1.5rem;
color: #2f2f2f;
border-bottom: 2px solid #cbbd93;
padding-bottom: 0.3rem;
letter-spacing: 0.05em;
}
#prayer-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 1.5rem;
padding: 0;
margin: 0;
list-style: none;
}
#prayer-list li {
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 1rem 1.4rem;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(199, 183, 130, 0.15);
font-weight: 600;
font-size: 1.15rem;
cursor: default;
user-select: none;
border: 1.5px solid transparent;
min-width: 185px;
max-width: 100%;
white-space: normal;
overflow-wrap: break-word;
transition: all 0.3s ease;
}
#prayer-list li span.name,
#prayer-list li span.time {
flex: none;
display: block;
text-align: left;
padding: 0;
margin: 0;
}
#prayer-list li span.time {
margin-top: 0.25rem; /* small gap above time */
font-weight: 700;
color: #6b5e2e;
white-space: nowrap; /* keep time on single line */
}
#prayer-list li.past {
color: #9a9a9a;
text-decoration: line-through;
background: #ececec;
box-shadow: none;
transform: scale(0.96);
border-color: #b7b7b7;
}
#prayer-list li.current {
background: #cbbd93;
color: #2f2f2f;
font-weight: 700;
box-shadow: 0 6px 16px rgba(199, 183, 130, 0.5);
transform: scale(1.05);
border-color: #a59147;
}
#prayer-list li.future {
background: #fffef9;
color: #444;
box-shadow: 0 3px 10px rgba(199, 183, 130, 0.2);
}
#prayer-list li:hover {
box-shadow: 0 8px 22px rgba(199, 183, 130, 0.45);
transform: scale(1.1);
border-color: #b2a660;
}
/* Hero Section */
.hero {
max-width: 960px;
margin: 4rem auto 3rem;
background: linear-gradient(135deg, #fefcf7, #ede8d5);
padding: 4rem 3rem;
border-radius: 20px;
box-shadow: 0 8px 30px rgba(99, 87, 40, 0.15);
text-align: center;
font-family: 'Georgia', serif;
color: #4a4738;
position: relative;
overflow: hidden;
border: 2px solid #cbbd93;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1.5rem;
}
.hero::before {
content: "";
position: absolute;
top: -50%;
left: -40%;
width: 250%;
height: 250%;
background: radial-gradient(to bottom right, #f7f4ec, #ffffff);
opacity: 0.15;
pointer-events: none;
transform: rotate(22deg);
z-index: 0;
}
.hero h1 {
color: #3b2f2f;
font-size: 3.6rem;
font-weight: 900;
line-height: 1.1;
margin: 0;
position: relative;
z-index: 1;
text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.6);
max-width: 900px;
}
.hero p {
font-size: 1.6rem;
font-style: italic;
color: #6a5f55;
margin: 0;
position: relative;
z-index: 1;
max-width: 700px;
line-height: 1.4;
}
/* Buttons */
.buttons {
position: relative;
z-index: 1;
display: flex;
justify-content: center;
gap: 2rem;
flex-wrap: wrap;
width: 100%;
max-width: 600px;
}
.buttons a.btn {
min-width: 180px;
padding: 1.1rem 2.8rem;
border-radius: 10px;
font-weight: 700;
font-size: 1.15rem;
text-decoration: none;
user-select: none;
transition: all 0.35s ease;
box-shadow: 0 6px 18px rgba(199, 183, 130, 0.3);
border: 3px solid transparent;
display: inline-flex;
justify-content: center;
align-items: center;
}
.buttons a.btn.primary {
background-color: #b18c5e;
color: #fefcf7;
border-color: #cbbd93;
}
.buttons a.btn.primary:hover,
.buttons a.btn.primary:focus {
background-color: #6a5f55;;
color: #fefcf7;
box-shadow: 0 9px 30px rgba(199, 183, 130, 0.75);
outline: none;
}
.buttons a.btn.secondary {
background-color: transparent;
color: #6a5f55;
border-color: #cbbd93;
}
.buttons a.btn.secondary:hover,
.buttons a.btn.secondary:focus {
background-color: #6a5f55;;
color: #fefcf7;
box-shadow: 0 9px 30px rgba(199, 183, 130, 0.75);
outline: none;
}
/* Welcome Section */
.welcome {
max-width: 800px;
margin: 0 auto 5rem;
padding: 0 2rem;
text-align: center;
color: #4a4636;
}
.welcome h2 {
font-size: 2.5rem;
margin-bottom: 1rem;
font-weight: 700;
}
.welcome p {
font-size: 1.25rem;
line-height: 1.65;
margin-bottom: 1rem;
color: #6b6754;
}
/* Responsive for Mobile First & up */
@media (max-width: 768px) {
.hero {
padding: 3rem 2rem;
margin: 3rem 1.5rem 3rem;
}
.hero h1 {
font-size: 2.8rem;
max-width: 100%;
}
.hero p {
font-size: 1.3rem;
margin-bottom: 2rem;
max-width: 100%;
}
.buttons a.btn {
min-width: 140px;
padding: 1rem 2rem;
font-size: 1.1rem;
}
.prayer-times {
margin: 2.5rem 1rem;
padding: 1.5rem 1.2rem;
max-width: 100%;
}
.prayer-times h2 {
font-size: 1.6rem;
}
#prayer-list {
grid-template-columns: 1fr 1fr;
gap: 0.9rem;
}
#prayer-list li {
font-size: 1.1rem;
width: 100%;
}
.welcome {
padding: 0 1.5rem;
}
.welcome h2 {
font-size: 2rem;
}
.welcome p {
font-size: 1.1rem;
}
}
@media (max-width: 480px) {
.hero {
margin: 2rem 1rem 2rem;
padding: 2.5rem 1rem;
}
.hero h1 {
font-size: 2.2rem;
}
.hero p {
font-size: 1.1rem;
margin-bottom: 1.5rem;
}
.buttons {
gap: 1rem;
}
.buttons a.btn {
min-width: 100%;
padding: 1rem 0;
font-size: 1rem;
}
.prayer-times {
margin: 2rem 1rem;
padding: 1.25rem 1rem;
}
#prayer-list {
grid-template-columns: 1fr;
gap: 0.8rem;
}
#prayer-list li {
width: 100%;
font-size: 1rem;
}
.welcome h2 {
font-size: 1.7rem;
}
.welcome p {
font-size: 1rem;
}
}
.btn {
padding: 0.75rem 1.5rem;
font-size: 1rem;
border-radius: 25px;
text-decoration: none;
margin: 0 0.5rem;
transition: background-color 0.3s ease, color 0.3s ease, transform 0.15s ease;
display: inline-block;
cursor: pointer;
user-select: none;
border: 2px solid transparent; /* fallback for border */
}
/* Primary button */
.btn.primary {
background-color: #b18c5e;
color: white;
border-color: #b18c5e;
}
.btn.primary:hover,
.btn.primary:focus {
background-color: #a17849;
color: #fff;
outline: none;
}
.btn.primary:active {
transform: scale(0.95);
}
/* Secondary button */
.btn.secondary {
background-color: transparent;
color: #b18c5e;
border-color: #b18c5e;
}
.btn.secondary:hover,
.btn.secondary:focus {
background-color: #b18c5e;
color: white;
outline: none;
}
.btn.secondary:active {
transform: scale(0.95);
}
blockquote {
background: #f7efe1;
border-left: 4px solid #b18c5e;
margin: 1rem 0;
padding: 1rem;
font-style: italic;
color: #3b2f2f;
}
ul {
margin: 0.5rem 0 1.5rem 1.2rem;
}
hr {
border: none;
border-top: 1px solid #ddd6c0;
margin: 2rem 0;
}
.prayer-list {
display: flex;
flex-direction: column;
gap: 1rem;
margin: 2rem 0;
padding: 0;
list-style: none;
}
.prayer-list li {
border: 1px solid #ddd6c0;
border-left: 5px solid #b18c5e;
border-radius: 8px;
padding: 1rem 1.5rem;
background-color: #fdfaf3;
transition: background 0.3s ease, transform 0.2s ease;
}
.prayer-list li:hover {
background-color: #f4ecdf;
transform: translateY(-2px);
}
.prayer-list a {
color: #3b2f2f;
text-decoration: none;
font-weight: 600;
font-size: 1.1rem;
display: block;
}
@media (min-width: 600px) {
.prayer-list {
flex-direction: row;
flex-wrap: wrap;
}
.prayer-list li {
flex: 1 1 calc(50% - 1rem);
}
}
.prayer-guide {
max-width: 850px;
margin: 2rem auto;
padding: 2rem;
background: #fefbf5;
border: 1px solid #ddd6c0;
border-radius: 12px;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
font-family: 'Tajawal', sans-serif;
color: #3b2f2f;
line-height: 1.7;
}
.prayer-guide h1 {
text-align: center;
font-size: 2.25rem;
font-weight: 700;
margin-bottom: 1.5rem;
color: #3b2f2f;
}
.prayer-guide h2,
.prayer-guide h3 {
margin-top: 2rem;
font-size: 1.4rem;
color: #b18c5e;
border-bottom: 1px solid #ddd6c0;
padding-bottom: 0.3rem;
}
.prayer-guide ol {
margin-top: 1.2rem;
margin-left: 1rem;
padding-left: 0;
list-style-position: inside;
}
.prayer-guide ol li {
background: #f7efe1;
margin-bottom: 1rem;
padding: 1rem;
border-left: 4px solid #b18c5e;
border-radius: 6px;
font-size: 1rem;
}
.prayer-guide ol li strong {
display: block;
margin-bottom: 0.3rem;
color: #3b2f2f;
font-weight: 600;
}
.prayer-guide a.btn.secondary {
display: inline-block;
margin-top: 2rem;
padding: 0.6rem 1.5rem;
background-color: #b18c5e;
color: #fff;
border-radius: 25px;
text-decoration: none;
font-weight: 600;
transition: background-color 0.3s ease;
}
.prayer-guide a.btn.secondary:hover {
background-color: #a17849;
}
.topics-page {
max-width: 900px;
margin: 2rem auto;
padding: 0 1rem;
font-family: 'Tajawal', sans-serif;
color: #3b2f2f;
}
.topics-page h1 {
text-align: center;
font-size: 2.5rem;
margin-bottom: 1rem;
}
.topics-page .intro {
text-align: center;
font-size: 1.2rem;
color: #6a5f55;
margin-bottom: 3rem;
}
.topic {
margin-bottom: 3rem;
background: #fdfaf3;
padding: 1.5rem 2rem;
border-radius: 10px;
border-left: 6px solid #b18c5e;
box-shadow: 0 3px 8px rgba(177,140,94,0.15);
transition: background-color 0.3s ease;
}
.topic:hover {
background-color: #f4ecdf;
}
.topic h2 {
color: #b18c5e;
font-weight: 700;
margin-bottom: 0.5rem;
}
.topic p {
font-size: 1rem;
line-height: 1.6;
margin-bottom: 0.75rem;
color: #4a4037;
}
.topic ul {
margin-left: 1.5rem;
color: #3b2f2f;
list-style-type: disc;
}
/* =======================
Donation Page Container
======================= */
.donation-page {
width: 100%;
margin: 3rem auto;
padding: 3rem 2.5rem;
background: #fffdfa;
border: 1.5px solid #d9cba7;
border-radius: 16px;
box-shadow: 0 8px 24px rgba(177, 140, 94, 0.15);
font-family: 'Tajawal', sans-serif;
color: #3b2f2f;
text-align: center;
box-sizing: border-box;
}
/* =======================
Headings & Intro Text
======================= */
.donation-page h1 {
font-size: clamp(1.8rem, 4vw, 2.4rem);
margin-bottom: 0.75rem;
font-weight: 700;
line-height: 1.1;
color: #7b6241;
}
.donation-page p.intro {
font-size: clamp(1rem, 3vw, 1.15rem);
margin: 0 auto 2.5rem;
color: #7a6d5e;
font-style: italic;
line-height: 1.5;
max-width: 360px;
}
/* =======================
Donation Form Layout
======================= */
#donation-form {
display: flex;
flex-direction: column;
gap: 1rem;
text-align: left;
}
#donation-form label {
display: block;
font-weight: 600;
color: #5a4a29;
font-size: clamp(0.9rem, 2vw, 1rem);
}
/* =======================
Form Fields: Inputs, Selects, Stripe Elements
======================= */
#donation-form select,
#donation-form input[type="number"],
#donation-form .StripeElement,
#donation-form .card-element {
width: 100%;
padding: 12px 16px;
border: 2px solid #d9cba7;
border-radius: 12px;
font-size: 1rem;
color: #4a4037;
background: #fffdfa;
box-sizing: border-box;
box-shadow: inset 0 2px 5px rgba(218, 208, 188, 0.4);
transition: border-color 0.3s ease, box-shadow 0.3s ease;
min-height: 48px;
line-height: 1.5;
margin-bottom: 1.25rem;
}
/* Fix select squashing and align arrow */
#donation-form select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: url('data:image/svg+xml;utf8,');
background-repeat: no-repeat;
background-position: right 16px center;
background-size: 16px auto;
padding-right: 48px;
}
/* Focus state */
#donation-form select:focus,
#donation-form input[type="number"]:focus,
#donation-form .StripeElement--focus {
outline: none;
border-color: #b18c5e;
box-shadow: 0 0 8px rgba(177, 140, 94, 0.6);
}
/* Remove spinner for number input */
#donation-form input[type="number"]::-webkit-outer-spin-button,
#donation-form input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
#donation-form input[type="number"] {
-moz-appearance: textfield;
appearance: textfield;
}
/* =======================
Custom Amount Container
======================= */
#custom-amount-container {
margin-top: 1rem;
}
/* =======================
Stripe Card Elements
======================= */
.card-element,
.StripeElement {
background-color: #fffdfa !important;
border-radius: 12px !important;
border: 2px solid #d9cba7 !important;
box-shadow: inset 0 2px 5px rgba(218, 208, 188, 0.4) !important;
padding: 12px 16px !important;
font-family: 'Tajawal', sans-serif !important;
font-size: 1rem !important;
color: #4a4037 !important;
min-height: 48px !important;
box-sizing: border-box !important;
transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}
.StripeElement--focus {
border-color: #b18c5e !important;
box-shadow: 0 0 12px rgba(177, 140, 94, 0.6) !important;
outline: none !important;
}
.StripeElement--invalid {
border-color: #b00020 !important;
box-shadow: none !important;
}
/* Stripe Card Elements Row Layout */
#card-elements-row {
display: flex;
gap: 12px;
margin-bottom: 1.25rem;
}
#card-number-element {
flex: 2;
}
#card-expiry-element,
#card-cvc-element {
flex: 1;
}
/* Responsive stacking for mobile */
@media (max-width: 600px) {
#card-elements-row {
flex-direction: column;
}
#card-elements-row > .card-element {
flex: none;
width: 100%;
}
}
/* Currency Note */
.currency-note {
font-size: 0.9rem;
color: #555;
margin-top: 4px;
}
/* Error Message */
#custom-amount-error,
#card-errors {
display: none;
color: #b00020;
background-color: #fef2f2;
border: 1px solid #f5c2c7;
font-size: 0.9rem;
font-weight: 500;
padding: 0.75rem 1rem;
margin-top: 0.5rem;
margin-bottom: 1rem;
border-radius: 12px;
box-shadow: inset 0 1px 3px rgba(255, 0, 0, 0.05);
max-width: 100%;
word-wrap: break-word;
box-sizing: border-box;
}
.StripeElement--focus {
border-color: #b18c5e !important;
box-shadow: 0 0 12px rgba(177, 140, 94, 0.6) !important;
outline: none !important;
}
.StripeElement--invalid {
border-color: #b00020 !important;
box-shadow: none !important;
}
/* =======================
Submit Button
======================= */
#submit-button {
padding: 12px 24px;
font-size: 1rem;
border-radius: 12px;
margin: 0 0.5rem;
transition: background-color 0.3s ease, color 0.3s ease, transform 0.15s ease;
display: inline-block;
cursor: pointer;
user-select: none;
background-color: #b18c5e;
color: white;
border: 2px solid transparent;
width: auto;
min-width: 140px;
box-sizing: border-box;
font-weight: 600;
}
#submit-button:disabled {
background-color: #b18c5e88;
filter: grayscale(30%);
cursor: not-allowed;
opacity: 0.6;
pointer-events: none;
}
#submit-button:hover,
#submit-button:focus {
background-color: #a17849;
color: #fff;
outline: none;
}
/* =======================
Payment Notification
======================= */
#payment-notification {
left: 0;
right: 0;
width: 100%;
box-sizing: border-box;
padding: 1rem 1.5rem;
border-radius: 0 0 12px 12px;
font-size: clamp(1rem, 2vw, 1.2rem);
}
/* =======================
Responsive Styles
======================= */
@media (max-width: 600px) {
.donation-page {
padding: 2rem 1.5rem;
max-width: 100%;
width: 95vw;
margin: 2rem auto;
}
.donation-page h1 {
font-size: 2rem;
}
.donation-page p.intro {
font-size: 1rem;
max-width: 100%;
}
#donation-form select,
#donation-form input[type="number"],
.card-element {
font-size: 1rem;
padding: 12px 16px;
min-height: 48px;
width: 100%;
box-sizing: border-box;
border-radius: 12px;
margin-bottom: 1rem;
}
#submit-button {
font-size: 1.15rem;
padding: 12px 16px;
width: 100%;
min-width: auto;
margin: 1rem 0 0 0;
border-radius: 12px;
box-sizing: border-box;
}
#payment-notification {
padding: 1rem 1rem;
font-size: 1rem;
}
}
/* Base Footer */
.site-footer {
background-color: #ffffff;
color: #4a4037;
padding: 2rem;
border-top: 1px solid #ddd6c0;
font-family: 'Tajawal', sans-serif;
font-size: 0.95rem;
display: flex;
flex-direction: column;
gap: 2.5rem;
width: 100%;
}
/* Message container */
.form-message {
max-width: 400px;
margin: 0 auto 1rem;
font-weight: 600;
text-align: center;
min-height: 1.5em; /* prevents layout jump */
}
/* Success message */
.success-message {
color: #2a7a1a;
background-color: #daf5d9;
border: 1px solid #2a7a1a;
padding: 0.5rem 1rem;
border-radius: 4px;
}
/* Error message */
.error-message {
color: #a12a2a;
background-color: #f9d6d6;
border: 1px solid #a12a2a;
padding: 0.5rem 1rem;
border-radius: 4px;
}
/* Newsletter */
.footer-newsletter {
width: 100%;
text-align: center;
}
.footer-newsletter form {
max-width: 100%;
margin: 0 auto;
}
.footer-newsletter label {
display: block;
font-weight: 600;
margin-bottom: 0.8rem;
text-align: center;
}
.newsletter-input {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.8rem;
width: 100%;
}
.newsletter-input input[type="email"] {
padding: 0.6rem 1rem;
border: 1px solid #ddd6c0;
border-radius: 4px;
width: 100%;
max-width: 400px;
font-size: 1rem;
}
.newsletter-input button {
padding: 0.6rem 1.5rem;
background-color: #4a4037;
color: white;
border: none;
border-radius: 4px;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.3s ease;
}
.newsletter-input button:hover {
background-color: #b7985b;
}
/* Social Icons */
.footer-social {
display: flex;
justify-content: center;
gap: 2rem;
font-size: 1.8rem;
}
.footer-social a {
color: #4a4037;
transition: color 0.3s ease;
}
.footer-social a:hover {
color: #b7985b;
}
/* About Text */
.footer-about {
text-align: center;
line-height: 1.6;
}
/* Desktop Layout Enhancement */
@media (min-width: 768px) {
.newsletter-input {
flex-direction: row;
justify-content: center;
}
.newsletter-input input[type="email"] {
flex: 1;
max-width: 300px;
}
.newsletter-input button {
width: auto;
}
}
/* Responsive drawer menu */
@media (max-width: 768px) {
header {
flex-direction: row;
padding: 1rem;
}
.logo-link {
margin-bottom: 1rem;
}
.logo {
padding: 0;
max-height: 80px;
width: auto;
height: auto;
}
nav {
position: relative;
width: 100%;
}
nav ul {
flex-direction: column;
position: fixed;
top: 0;
right: -300px;
height: 100%;
width: 250px;
background: white;
padding: 3rem 1.5rem 1.5rem 1.5rem;
box-shadow: -2px 0 5px rgba(0,0,0,0.1);
transition: right 0.3s ease-in-out;
z-index: 2;
overflow-y: auto;
}
nav.open ul {
right: 0;
}
.hamburger {
display: block;
}
}
/* Prevent body scroll when menu is open */
body.menu-open {
overflow: hidden;
}