/* Base Styles */
body {
    font-family: "Times New Roman", Times, serif;
    background-color: #e8e8d8;
    margin: 0;
    padding: 0;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGklEQVQYlWNgYGD4T0FMBqYdlYePHj16NAAA5H8HK3EGaXQAAAAASUVORK5CYII=);
}

/* Container */
#container {
    width: 980px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 10px #888888;
}

/* Login page specific container */
#container.login-container {
    width: 500px;
    margin: 100px auto;
    border-radius: 5px;
}

/* Admin page specific container */
#container.admin-container {
    margin: 20px auto;
}

/* Header */
#header {
    background: linear-gradient(to bottom, #2a4d6e, #1a3d5e);
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #8b7355;
}

#header.login-header {
    border-radius: 5px 5px 0 0;
}

#header h1 {
    margin: 0;
    font-size: 36px;
    text-shadow: 2px 2px 4px #000000;
}

#header.login-header h1 {
    font-size: 28px;
}

#header p {
    margin: 5px 0 0 0;
    font-style: italic;
    font-size: 14px;
}

/* Navigation */
#nav {
    background-color: #8b7355;
    padding: 0;
    margin: 0;
    text-align: center;
}

#nav a {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
}

#nav a:hover {
    background-color: #6b5335;
}

/* Content */
#content {
    padding: 20px;
    min-height: 600px;
}

#content.login-content {
    padding: 40px;
}

#content.admin-content {
    padding: 0;
}

/* Sidebar */
#sidebar {
    float: right;
    width: 250px;
    background-color: #f5f5dc;
    padding: 15px;
    margin-left: 20px;
    border: 2px solid #8b7355;
    display: inline;
}

/* Main Content */
#main {
    float: left;
    width: 630px;
    margin: 0;
    display: inline;
}

/* Footer */
#footer {
    clear: both;
    background-color: #2a4d6e;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 12px;
}

/* Sidebar Box */
.sidebar-box {
    background-color: white;
    border: 2px solid #8b7355;
    padding: 10px;
    margin-bottom: 15px;
}

.sidebar-box h3 {
    color: #2a4d6e;
    margin-top: 0;
    font-size: 16px;
    border-bottom: 1px solid #8b7355;
}

/* Obituary Styles */
.obituary {
    background-color: #fafaf5;
    border: 1px solid #cccccc;
    padding: 15px;
    margin-bottom: 20px;
}

.obituary h2 {
    color: #2a4d6e;
    margin-top: 0;
    font-size: 24px;
    border-bottom: 2px solid #8b7355;
    padding-bottom: 5px;
}

.obituary h2 a {
    color: #2a4d6e;
    text-decoration: none;
}

.obituary h2 a:hover {
    text-decoration: underline;
    color: #1a3d5e;
}

.dates {
    font-style: italic;
    color: #666666;
    margin-bottom: 10px;
}

.photo {
    float: left;
    margin: 0 15px 10px 0;
    border: 3px solid #8b7355;
    width: 150px;
    height: 180px;
    background-color: #d0d0d0;
    text-align: center;
    line-height: 180px;
    color: #888888;
    font-style: italic;
    overflow: hidden;
}

/* Service Info */
.service-info {
    background-color: #ffffcc;
    border: 1px dashed #8b7355;
    padding: 10px;
    margin: 10px 0;
}

/* Guestbook */
.guestbook {
    background-color: #f0f0f0;
    padding: 10px;
    margin: 10px 0;
    border-left: 4px solid #8b7355;
}

.guestbook-entry {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #999999;
}

/* Form Elements */
input[type="text"], 
input[type="password"],
input[type="number"],
textarea {
    width: 95%;
    padding: 5px;
    border: 1px solid #999999;
    font-family: "Times New Roman", Times, serif;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: #2a4d6e;
}

input[type="submit"] {
    background: linear-gradient(to bottom, #8b7355, #6b5335);
    color: white;
    border: 2px outset #8b7355;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: bold;
}

input[type="submit"]:hover {
    background: linear-gradient(to bottom, #6b5335, #4b3315);
}

/* Form Groups */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2a4d6e;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 2px solid #8b7355;
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2a4d6e;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-help {
    font-size: 12px;
    color: #666666;
    font-style: italic;
    margin-top: 3px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Buttons */
.btn {
    background: linear-gradient(to bottom, #8b7355, #6b5335);
    color: white;
    border: 2px outset #8b7355;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    font-family: "Times New Roman", Times, serif;
}

.btn:hover {
    background: linear-gradient(to bottom, #6b5335, #4b3315);
}

.btn-danger {
    background: linear-gradient(to bottom, #dc3545, #c82333);
    border-color: #dc3545;
}

.btn-danger:hover {
    background: linear-gradient(to bottom, #c82333, #bd2130);
}

.btn-approve {
    background: linear-gradient(to bottom, #28a745, #218838);
    border-color: #28a745;
}

.btn-approve:hover {
    background: linear-gradient(to bottom, #218838, #1e7e34);
}

.btn-login {
    background: linear-gradient(to bottom, #8b7355, #6b5335);
    color: white;
    border: 2px outset #8b7355;
    padding: 12px 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    font-family: "Times New Roman", Times, serif;
}

.btn-login:hover {
    background: linear-gradient(to bottom, #6b5335, #4b3315);
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 3px;
}

.flash-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.flash-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Admin Panel Styles */
.tabs {
    display: flex;
    background-color: #f5f5f5;
    border-bottom: 2px solid #8b7355;
    margin: 0;
    padding: 0;
}

.tab-button {
    background-color: #e0e0e0;
    border: none;
    border-right: 1px solid #ccc;
    padding: 15px 25px;
    cursor: pointer;
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    font-weight: bold;
    color: #2a4d6e;
    flex: 1;
    transition: background-color 0.3s;
}

.tab-button:hover {
    background-color: #d0d0d0;
}

.tab-button.active {
    background-color: white;
    color: #2a4d6e;
    border-bottom: 3px solid #8b7355;
    margin-bottom: -2px;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.section {
    margin-bottom: 0;
}

.section h2 {
    color: #2a4d6e;
    border-bottom: 2px solid #8b7355;
    padding-bottom: 10px;
}

.pending-entry {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 5px solid #ffc107;
}

.pending-entry h4 {
    margin-top: 0;
    color: #856404;
}

.pending-entry .entry-meta {
    font-size: 12px;
    color: #666666;
    margin-bottom: 10px;
}

.pending-entry .entry-message {
    background-color: white;
    padding: 10px;
    border: 1px solid #ddd;
    margin: 10px 0;
    font-style: italic;
}

.pending-entry-actions {
    margin-top: 10px;
}

.pending-entry-actions form {
    display: inline-block;
    margin-right: 10px;
}

.obituary-list {
    background-color: #fafaf5;
    border: 1px solid #cccccc;
    padding: 15px;
    margin-bottom: 20px;
}

.obituary-item {
    padding: 10px;
    margin-bottom: 10px;
    background-color: white;
    border-left: 4px solid #8b7355;
}

.obituary-item h3 {
    margin: 0 0 5px 0;
    color: #2a4d6e;
}

.obituary-item p {
    margin: 5px 0;
    font-size: 14px;
    color: #666666;
}

.obituary-actions {
    margin-top: 10px;
}

/* Service Section */
.service-section {
    background-color: #fafaf5;
    border: 1px solid #cccccc;
    padding: 20px;
    margin-bottom: 20px;
}

.service-section h2 {
    color: #2a4d6e;
    margin-top: 0;
    font-size: 24px;
    border-bottom: 2px solid #8b7355;
    padding-bottom: 5px;
}

.service-section ul {
    margin: 15px 0;
    padding-left: 30px;
}

.service-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background-color: #fafaf5;
    border: 1px solid #cccccc;
    padding: 20px;
    margin-bottom: 20px;
}

.contact-section h2 {
    color: #2a4d6e;
    margin-top: 0;
    font-size: 24px;
    border-bottom: 2px solid #8b7355;
    padding-bottom: 5px;
}

.contact-info-box {
    background-color: #ffffcc;
    border: 2px dashed #8b7355;
    padding: 20px;
    margin: 20px 0;
}

.contact-info-box h3 {
    color: #2a4d6e;
    margin-top: 0;
}

.contact-info-box p {
    margin: 10px 0;
    line-height: 1.8;
}

.contact-info-box strong {
    color: #2a4d6e;
}

/* Chapel Info Section */
.info-section {
    background-color: #fafaf5;
    border: 1px solid #cccccc;
    padding: 20px;
    margin-bottom: 20px;
}

.info-section h2 {
    color: #2a4d6e;
    margin-top: 0;
    font-size: 24px;
    border-bottom: 2px solid #8b7355;
    padding-bottom: 5px;
}

.hours-box {
    background-color: #ffffcc;
    border: 2px dashed #8b7355;
    padding: 15px;
    margin: 15px 0;
}

.hours-box h3 {
    color: #2a4d6e;
    margin-top: 0;
}

/* Back Link */
.back-link {
    margin-bottom: 15px;
}

.back-link a {
    color: #2a4d6e;
    text-decoration: none;
    font-weight: bold;
}

.back-link a:hover {
    text-decoration: underline;
}

.back-link.login-back {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #cccccc;
}

/* Home Page Specific */
.home-banner {
    width: 100%;
    border: 2px solid #8b7355;
    margin-bottom: 15px;
    box-sizing: border-box;
    display: block;
}

blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

marquee {
    background-color: #ffffcc;
    padding: 5px;
    border: 1px solid #8b7355;
    margin: 10px 0;
}

