/* =========================================================
   RememberMe
   Central Site Stylesheet
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background-color: #f4b6f8;
    line-height: 1.6;
}

a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    color: #003d80;
    text-decoration: underline;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: 100%;
    padding: 12px 30px;

    background: #004aad;
    color: white;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.header > div {
    flex: 1;
}

.header > div:last-child {
    text-align: right;
}

.header h2 {
    flex: 1;
    margin: 0;
    text-align: center;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    color: white;
}

.header a {
    color: white;
    margin-left: 18px;
    font-size: 14px;
}

.header a:hover {
    color: #e8f1ff;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

nav {
    width: 100%;
    background-color: #ffffff;

    border-bottom: 1px solid #ddd;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0;
    padding: 10px 20px;

    list-style: none;
}

nav li {
    margin: 0 18px;
}

nav a {
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

nav a:hover {
    color: #0056b3;
    text-decoration: none;
}


/* =========================================================
   PAGE CONTAINER
   ========================================================= */

.container {
    max-width: 800px;
    margin: 35px auto;
    padding: 30px;

    background-color: #ffffff;

    border-radius: 10px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   HEADINGS
   ========================================================= */

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
}

.container h2 {
    margin-top: 0;
    margin-bottom: 25px;

    color: #1a5276;
    text-align: center;

    font-size: 28px;
}


/* =========================================================
   FORMS
   ========================================================= */

form {
    width: 100%;
}

input,
textarea,
select {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="url"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 11px 12px;
    margin: 6px 0 16px 0;

    border: 1px solid #c9c9c9;
    border-radius: 5px;

    background-color: #fff;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="url"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #007bff;

    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.12);
}

textarea {
    min-height: 120px;
    resize: vertical;
}


/* =========================================================
   FORM TABLE
   ========================================================= */

.container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;

    margin: 20px 0;

    overflow: hidden;

    border: 1px solid #ddd;
    border-radius: 7px;
}

.container th,
.container td {
    padding: 12px 14px;
    text-align: left;

    border-bottom: 1px solid #e2e2e2;
}

.container tr:last-child td {
    border-bottom: none;
}

.container th {
    background-color: #e4e3f9;
    color: #333;

    font-weight: 600;
}

.container td {
    background-color: #fafaff;
}

.container tr:hover td {
    background-color: #f5f5fc;
}


/* =========================================================
   BUTTONS
   ========================================================= */

button,
.btn {
    display: inline-block;

    padding: 11px 20px;

    border: none;
B    border-radius: 6px;

    background-color: #0056b3;
    color: white;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
}

button:hover,
.btn:hover {
    background-color: #003d80;
    text-decoration: none;
}

button:active,
.btn:active {
    transform: translateY(1px);
}


/* =========================================================
   ERROR / SUCCESS MESSAGES
   ========================================================= */

.error {
    color: #b00020;

    padding: 10px 12px;
    margin-bottom: 15px;

    background-color: #fff0f1;

    border-left: 4px solid #b00020;
    border-radius: 4px;
}

.success {
    color: #176b35;

    padding: 10px 12px;
    margin-bottom: 15px;

    background-color: #eef9f1;

    border-left: 4px solid #176b35;
    border-radius: 4px;
}
B

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    text-align: center;

    margin: 30px 0 20px;

    font-size: 12px;
    color: #555;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .header {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }

    .header > div,
    .header > div:last-child {
        text-align: center;
    }

    .header h2 {
        order: -1;
    }

    .header a {
        margin: 0 8px;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 8px;
    }

    nav li {
        margin: 0 8px;
    }

    .container {
        width: calc(100% - 24px);
        margin: 20px auto;
        padding: 20px 15px;
    }

    .container table {
        font-size: 14px;
    }

    .container th,
    .container td {
        padding: 9px;
    }
}
/* =========================================================
   MEMORIAL VIEW
   ========================================================= */

.memorial-title {
    text-align: center;
    color: #1a5276;
    font-size: 28px;
    margin-bottom: 20px;
}


/* Memorial Picture */

.memorial-picture {
    text-align: center;
    margin: 20px 0;
}

.memorial-picture img {
    width: 2in;
    height: 2in;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}


/* Memorial Basic Details */

.center-details {
    text-align: center;
    margin: 20px auto;
}

.center-details p {
    margin: 6px 0;
}


/* Family Information */
B
.table-container {
    display: flex;
    gap: 20px;
    margin: 25px 0;
}

.table-column1,
.table-column2 {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
}


/*
   LEFT:
   Brothers and Sisters
*/

.table-column2 {
    order: 1;
    background-color: #dbe7f0;
}


/*
   RIGHT:
   Sons and Daughters
*/

.table-column1 {
    order: 2;
    background-color: #f1ecf7;
}


.table-column1 h3,
.table-column2 h3 {
    margin-top: 0;
    font-size: 18px;
    color: #1a5276;
    text-align: center;
}


.table-column1 table,
.table-column2 table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 0 0;
    border: none;
}


.table-column1 table td,
.table-column2 table td {
    padding: 7px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background-color: transparent;
    font-size: 14px;
}


.table-column1 table tr:last-child td,
.table-column2 table tr:last-child td {
    border-bottom: none;
}


/* Biography */

.biography {
    margin-top: 25px;
    padding: 20px;
    background-color: #f8f9fc;
    border-radius: 8px;
    border-left: 4px solid #0056b3;
}

.biography h3 {
    margin-top: 0;
    color: #1a5276;
    font-size: 20px;
}

.biography p {
    line-height: 1.7;
}


/* Memorial Actions */

.memorial-actions {
    text-align: center;
    margin: 25px 0 10px;
}

.memorial-actions a {
    display: inline-block;
    margin: 5px 8px;
    padding: 9px 16px;
    border-radius: 5px;
    background-color: #0056b3;
    color: white;
    font-size: 14px;
}

.memorial-actions a:hover {
    background-color: #003d80;
    text-decoration: none;
}


/* =========================================================
   MEMORIAL VIEW - MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .memorial-title {
        font-size: 23px;
    }

    .memorial-picture img {
        width: 2in;
        height: 2in;
    }

    .table-container {
        flex-direction: column;
        gap: 15px;
    }

    .table-column1,
    .table-column2 {
        width: 100%;
    }

    .table-column1,
    .table-column2 {
        order: initial;
    }

    .center-details {
        padding: 12px;
        text-align: center;
    }

    .biography {
        padding: 15px;
    }

    .memorial-actions a {
        display: block;
        margin: 8px 0;
    }
}
/* =========================================================
   EDIT MEMORIAL
   ========================================================= */

.edit-memorial-form {
    width: 100%;
}

.edit-memorial-form label.memorial-label {
    display: block;
    margin-top: 14px;
    margin-bottom: 5px;

    color: #1a5276;
    font-size: 14px;
    font-weight: 600;
}

.edit-memorial-form input[type="text"],
.edit-memorial-form input[type="date"],
.edit-memorial-form input[type="url"],
.edit-memorial-form input[type="file"],
.edit-memorial-form textarea {
    width: 100%;
}

.edit-memorial-form textarea {
    min-height: 180px;
}

.edit-memorial-form button {
    display: block;
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 700px) {

    .edit-memorial-form {
        width: 100%;
    }

    .edit-memorial-form label.memorial-label {
        font-size: 14px;
    }

    .edit-memorial-form textarea {
        min-height: 160px;
    }
}
/* =========================================================
   USER DASHBOARD
   ========================================================= */

.dashboard-container {
    max-width: 1000px;
    margin: 35px auto;
    padding: 30px;

    background-color: #ffffff;

    border-radius: 10px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12);
}

.dashboard-title {
    margin-top: 0;
    margin-bottom: 10px;

    text-align: center;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    color: #1a5276;
}

.dashboard-welcome {
    text-align: center;
    margin-bottom: 25px;
    color: #555;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.dashboard-table th,
.dashboard-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.dashboard-table th {
    background-color: #e4e3f9;
    color: #333;
    font-weight: 600;
}

.dashboard-table td {
    background-color: #fafaff;
}

.dashboard-table tr:hover td {
    background-color: #f5f5fc;
}

.dashboard-actions a {
    display: inline-block;
    margin-right: 8px;
    padding: 6px 10px;

    background-color: #0056b3;
    color: white;

    border-radius: 4px;
    font-size: 13px;
}

.dashboard-actions a:hover {
    background-color: #003d80;
    text-decoration: none;
}

.dashboard-empty {
    padding: 15px;
    text-align: center;

    background-color: #f8f9fc;

    border-left: 4px solid #0056b3;
    border-radius: 5px;

    color: #555;
}

.dashboard-invite {
    margin-top: 30px;
    padding: 20px;

    background-color: #f8f9fc;

    border-radius: 8px;
    border-left: 4px solid #0056b3;
}

.dashboard-invite h3 {
    margin-top: 0;
    color: #1a5276;
}

.dashboard-invite input[type="email"],
.dashboard-invite textarea {
    width: 100%;
}


/* =========================================================
   USER DASHBOARD - MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .dashboard-container {
        width: calc(100% - 24px);
        margin: 20px auto;
        padding: 20px 15px;
    }

    .dashboard-title {
        font-size: 24px;
    }

    .dashboard-table {
        font-size: 13px;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 8px;
    }

    .dashboard-actions a {
        display: block;
        margin: 4px 0;
        text-align: center;
    }

    .dashboard-invite {
        padding: 15px;
    }
}
