/*                                  THIS IS THE HEADER START */
* { 
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    
}

main {
    flex-grow: 1;
}

html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    line-height: 1.6;
    color: #4a3c31;
    background-color: #f4f4f9;
}

header {
    background-color: #fffdfa;
    padding: 0.2rem;
    text-align: center;
    position: relative;
    z-index: 1000; /* Make sure the header stays on top */
}


.title {
    text-align: center;
    font-size: 0.5em;
    color: #4a3c31;
    margin-bottom: 20px;
    font-family: 'Times New Roman', serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Times New Roman', serif;
}

.main-title {
    font-size: 7.1em;
    color: #4a3c31;
    text-transform: uppercase;
    margin-bottom: -25px;
}

.subtitle {
    font-size: 3.3em;
    color: #4a3c31;
}

/* Container for nav links */
.nav-links {
    display: flex;
    justify-content: center;
}

/* Individual links */
.nav-links a {
    margin-right: 40px; /* Adds 20px gap to the right of each link */
    display: inline-flex;
}

.nav-links a:last-child {
    margin-right: 0; /* Removes the margin from the last link */
}

/* Basic Styling for Dropdown Navigation */
.dropdown-nav {
    display: none;
    flex-direction: column;
    background-color: #f4f4f4;
    color: #333;
    width: 100%;
    position: absolute;
    top: 100%; /* Places the dropdown just below the menu button */
    left: 0;
    z-index: 999; /* Makes sure the dropdown is over the content */
    border-top: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);  /* Optional: Adds shadow for better visibility */
}
.dropdown-nav a {
    padding: 10px;
    text-align: left;
    color: #333;
    text-decoration: none;
}

.dropdown-nav a:hover {
    background: #e0e0e0;
    color: #333;
}

.menu-button {
    display: none;
    background-color: transparent;
    color: #4a3c31;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: relative;
    z-index: 1000; /* Keeps the button above the dropdown */
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 12em;
    vertical-align: middle;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .dropdown-nav.show {
        display: flex;
    }

    .dropdown-nav a {
        padding: 10px;
        background: #f4f4f4;
        border-bottom: 1px solid #ddd;
        text-align: left;
        color: #333;
        text-decoration: none;
    }

    .dropdown-nav a:hover {
        background: #e0e0e0;
    }
    
    .form-container {
        padding: 15px;
        border: 5px solid #b09060;
    }

    .title {
        font-size: 3em;
    }

    .main-title {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.2em;
    }

    .h2-form {
        font-size: 1.2em;
    }

    .h3-form {
        font-size: 1.2em;
    }

    label {
        font-size: 0.9em;
    }

    .submit-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    input[type="text"],
    input[type="date"],
    input[type="tel"],
    input[type="email"],
    textarea {
        width: 95%;
        font-size: 0.9em;
    }
    img {
        width: 4em;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 10px;
        border: 5px solid #b09060;
    }

    .title {
        font-size: 1.5em;
    }

    .main-title {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.2em;
    }

    .h2-form {
        font-size: 1.1em;
    }
    
    .h3-form{
        font-size:1.1em;
    }

    label {
        font-size: 0.85em;
    }

    .submit-btn {
        padding: 8px 18px;
        font-size: 0.85em;
    }

    input[type="text"],
    input[type="date"],
    input[type="tel"],
    input[type="email"],
    textarea {
        width: 95%;
        font-size: 0.85em;
    }
    img {
        width: 4em;
    }
}
/*                                  THIS IS THE HEADER CUT OFF */

/*                                  THIS IS THE INDEX START */

.hero {
    position: relative;
    background-image: url('Thrive_background2.jpg');
    background-repeat: no-repeat; 
    background-size: cover;   /*background-size: cover;*/
    background-position: center center;
    height: 100vh;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* .hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); 
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.hero:hover .overlay {
    opacity: 1; 
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
} */

.content {
    background-color: #fffdfa;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background-color: #f4f4f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: #4a3c31;
    margin-bottom: 1rem;
}

.button {
    position: relative;
    z-index: 2;
    display: inline-block;
    background: linear-gradient(135deg, #4A90E2, #145A32);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.button:hover {
    background: linear-gradient(135deg, #145A32, #4A90E2);
}

/* Style for the footer */
footer {
    background-color: #fffdfa;
    color: #4a3c31;
    text-align: center;
    padding: 2rem 0 2rem 0;
    margin-top: 2rem;
    position: relative;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

footer p {
    margin: 0 0 8px 0;
}

/*                                  THIS IS THE INDEX CUT OFF */
/*                                  THIS IS THE FORM START */

.body-form {
    background-color: #f4f4f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Change height to min-height */
    margin: 0;
}
.form-wrapper{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: 1; /* Add this */
    padding-top: 50px;
    padding-bottom: 50px; /* Add some bottom padding */
}
.footer-requests {
    background-color: #fffdfa;
    color: #4a3c31;
    text-align: center;
    padding: 2rem;
    width: 100%;
}
.form-container {
    background-color: #fffdfa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    width: 100%;
    border: 5px solid #b09060;
    
}

.form-section {
    margin-bottom: 20px;
}

.ThriveSubmissions-btn {
    background-color: #4a3c31;
    color: #fffdfa;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    max-width: 200px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    transition: background-color 0.3s ease;
    text-align: center;
}

.ThriveSubmissions-btn:hover {
    background-color: #6d5c4e;
}

.form-section {
    margin-bottom: 20px;
}

.h2-form {
    color: #4a3c31;
    font-size: 1.4em;
    text-align: center;
    padding: 10px;
    border-bottom: 2px solid #b09060;
    font-family: 'Times New Roman', serif;
    margin-bottom: 20px;
}
.h3-form{
    color: #4a3c31;
    font-size: 1.4em;
    text-align: center;
    padding: 10px;
    font-family: 'Times New Roman', serif;
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
    margin-bottom: 5px;
    font-family: 'Georgia', serif;
}

input[type="text"],
input[type="date"],
input[type="tel"],
input[type="email"],
textarea {
    width: 95%;
    padding: 8px;
    margin-bottom: 15px;
    border: 2px solid #b09060;
    border-radius: 5px;
    font-size: 1em;
}

textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn-form {
    background-color: #4a3c31;
    color: #fffdfa;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    max-width: 200px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    transition: background-color 0.3s ease;
}

.submit-btn-form:hover {
    background-color: #6d5c4e;
}

.message {
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    font-size: 1.2em;
}

.success {
    color: green;
}

.error {
    color: red;
}


/*                                  THIS IS THE FORM CUT OFF */
/*                                  THIS IS THE SUBMISSIONS START */
.body-submissions{
    background-color: #f4f4f9;
}

/* Logout Link */
.logout-container {
    margin-top: 20px;
    text-align: center;
}

.logout {
    display: inline-block;
    font-size: 16px;
    color: #e31010;
    text-decoration: none;
    font-weight: bold;
}

/* Search Styling */
.search-container {
    text-align: center;
    margin: 20px;
}

.search-container input {
    padding: 10px;
    width: 300px;
}

.search-container button {
    background-color: #4a3c31;
    color: #fffdfa;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    max-width: 200px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.3s ease;
}

.search-container button:hover {
    background-color: #6d5c4e;
}

/* Pagination Styles */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    padding: 8px 16px;
    text-decoration: none;
    margin: 0 5px;
    background-color: #4a3c31;
    color: white;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #6d5c4e;
}

.pagination span {
    padding: 8px 16px;
}

/* Card Styles */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.card {
    width: 300px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 10px;
    padding: 20px;
    text-align: left;
}

.card-header {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #4a3c31;
}

.card-body {
    font-size: 1em;
    color: #333;
}

.card-body p {
    margin: 5px 0;
}

.label-card {
    font-weight: bold;
    color: #4CAF50;
}

.card-container a {
    text-decoration: none;
    color: inherit;
}
/*                                  THIS IS THE SUBMISSIONS CUT OFF */
/*                                  THIS IS THE LOGIN START */
.body-login{
    background-color: #f4f4f9;
}
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh; /* Full viewport height */
    padding-top: 50px;
}

.login-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.input-login[type="text"],
.input-login[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.input-login[type="text"]:focus,
.input-login[type="password"]:focus {
    border-color: #007bff;
    outline: none;
}

.submit-btn-form {
    background-color: #4a3c31;
    color: #fffdfa;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    max-width: 200px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    transition: background-color 0.3s ease;
}

.submit-btn-form:hover {
    background-color: #6d5c4e;
}

/*                                  THIS IS THE LOGIN CUT OFF */
/*                                  THIS IS THE REQUESTS START */

.body-requests {
    background-color: #f4f4f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Change height to min-height */
    margin: 0;
}

.footer-requests {
    background-color: #fffdfa;
    color: #4a3c31;
    text-align: center;
    padding: 2rem;
    width: 100%;
}

.request-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: 1; /* Add this */
    padding-top: 50px;
    padding-bottom: 50px; /* Add some bottom padding */
}

.container-requests {
    width: 80%;
    max-width: 600px;
    background-color: #fffdfa;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border: 5px solid #b09060;
    border-radius: 10px;
}

.prayer-list {
    margin-top: 20px;
}

.prayer-item {
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.prayer-item small {
    display: block;
    text-align: right;
    color: #666;
    font-size: 0.8em;
}

textarea[name="reply"] {
    height: 30px; /* Adjust to your desired height */
    padding: 5px; /* Adjust as needed */
    resize: none; /* Prevent resizing */
    overflow: hidden; /* Hide overflow content */
    line-height: normal; /* Keep text aligned vertically */
    width: calc(100% - 100px); /* Adjust width based on layout */
    box-sizing: border-box; /* Include padding and border in width */
    font-size: 1rem; /* Set font size */
    vertical-align: middle;
}

.ThriveSubmissions-btn-small {
    background-color: #4a3c31;
    color: #fffdfa;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    max-width: 100px;
    margin-top: 10px;
    margin-left: auto;
    display: block;
    transition: background-color 0.3s ease;
    text-align: center;
}

.ThriveSubmissions-btn-small:hover {
    background-color: #6d5c4e;
}
/*                                  THIS IS THE REQUESTS CUT OFF */
/*                                  THIS IS THE REQUESTS START */

.replies {
    display: none;
    margin-left: 20px;
}
.reply-link {
    color: blue;
    cursor: pointer;
    text-decoration: underline;
}
.edit-form {
    display: none;
    margin: 10px 0;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
}
.edit-button {
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
}
.cancel-button {
    background-color: #f44336;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
/*                                  THIS IS THE MEETINGS CUT OFF */


/* Testing members dropdown */


.members-dropdown {
    position: relative;
    display: inline-block;
}
.memebers-dropdown-content {
    display: none;
    position: absolute;
    color: #4a3c31;
    background-color: #f4f4f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 8px;
    right: 5px;

}
.memebers-dropdown-content a {
    color: #4a3c31;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}
.memebers-dropdown-content a:hover {
    background-color: #ddd;
    width: 100%;
}
.members-dropdown:hover .memebers-dropdown-content {
    display: block;
}
