/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    color: #2e5c5b;
}

.container {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
	min-height:100vh;
}

/* Header Styles */
header {
    background-color: #cdbfac;
    /*padding: 20px 0;*/
    border-bottom: 2px solid #e0e0e0;
}

.header-container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 350px;
}

nav ul.menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul.menu li {
    position: relative;
}

nav ul.menu li a {
    color: #342528;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

nav ul.menu li a:hover {
    color: #342528;
}

.user-menu {
    position: relative;
}

.user-menu .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    top: 100%;
    right: 0;
    list-style: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
	z-index: 1000;
}

.user-menu:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 10px 10px;
    display: block;
    color: #2e5c5b;
}

.dropdown-menu li a:hover {
    background-color: #f4f4f4;
}

/* Buttons */
button, .cta-button {
    background-color: #d1a46d;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
}

button:hover, .cta-button:hover {
    background-color: #b28d5c;
}

.cta-button {
    display: inline-block;
    margin-top: 20px;
}

/* Hero Banner */
.hero-banner {
    background: url('../images/hero-banner.webp') center center/cover no-repeat;
    text-align: center;
    padding: 100px 20px;
    color: white;
}

.hero-banner h1 {
    font-size: 48px;
    margin: 0;
	color: white;
}

.hero-banner p {
    font-size: 20px;
}

/* Recent Memorials */
.recent-memorials h2 {
    font-size: 28px;
}

.memorial-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.memorial-item {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.memorial-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.memorial-item p {
    font-size: 14px;
}

.memorial-item small {
    font-size: 12px;
    color: #888;
}

/* Forms */
input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea {
    width: 95%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

textarea {
    resize: vertical;
    height: 100px;
}

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

/* Account Info */
.account-info form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Blog Page */
.blog-page .article-item {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.blog-page .article-item h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.blog-page .read-more {
    display: inline-block;
    margin-top: 10px;
    color: #d1a46d;
    text-decoration: none;
    font-weight: bold;
}

.blog-page .read-more:hover {
    color: #b28d5c;
}

/* Plans Section */
.plans-page .plans-section {
    display: flex;
    justify-content: space-between;
}

.plan-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 30%;
}

.plan-card h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.plan-card p {
    font-size: 18px;
    margin-bottom: 10px;
}

.plan-card a {
    text-decoration: none;
    background-color: #d1a46d;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
}

.plan-card a:hover {
    background-color: #b28d5c;
}


.guestbook-entry small {
    font-size: 12px;
    color: #666;
}

/* Footer */
footer {
    background-color: #342528;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
    font-size: 14px;
}
.memorial-page {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

.memorial-header {
    background-size: cover;
    background-position: center;
    padding: 50px 0;
    text-align: center;
    color: white;
}

.memorial-details {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    display: inline-block;
    border-radius: 10px;
}

.memorial-details h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.memorial-details p {
    font-size: 18px;
    margin: 5px 0;
}

.memorial-content {
    margin-top: 0px;
}

.memorial-description {
    margin-bottom: 40px;
}

.memorial-description h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.memorial-description p {
    font-size: 16px;
    line-height: 1.6;
}

.memorial-gallery {
    margin-bottom: 40px;
}

.gallery-grid {
    display: flex;
    gap: 10px;
}

.gallery-grid img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.guestbook-section {
    margin-top: 50px;
}

.guestbook-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.guestbook-entry {
    background-color: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.guestbook-entry p {
    font-size: 14px;
    margin: 0 0 10px;
}



form textarea {
    width: 95%;
    height: 100px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

form button {
    padding: 10px 20px;
    background-color: #d1a46d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #b28d5c;
}

.preview-content {
    display: flex;
    gap: 20px;
}

.preview-image img {
    border-radius: 50%;
    border: 2px solid #ccc;
}

.preview-details {
    flex: 1;
}

.preview-background {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    margin-top: 20px;
}

.memorial-preview iframe {
    width: 100%;
    max-width: 300px; /* Adjust the iframe size */
    height: 400px;
    border: 1px solid #ccc;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

.container {
    /*display: flex;
    flex-direction: row;*/
    justify-content: space-between;
    gap: 20px;
}

.memorial-preview {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.memorial-preview h2 {
    margin-bottom: 15px;
}

iframe {
    width: 100%;
    height: 400px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.page-background {
    width: 100%;
    min-height: 100vh;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* This makes the background static */
}

.memorial-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* Adds transparency to the foreground */
    border-radius: 10px;
    margin: 0 auto;
    max-width: 1200px; /* Adjust the max width if needed */
}

.memorial-left {
    flex: 1 1 30%;
    text-align: center;
}

.memorial-profile {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.memorial-right {
    flex: 1 1 65%;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly more opaque than the outer container */
    border-radius: 10px;
}

.guestbook-entries {
    height: auto;
    overflow-y: auto;
    margin-bottom: 20px;
}


.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.pending-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pending-photo {
    text-align: center;
}
.btn-hide {
    background-color: #ffc107;
    padding: 10px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}
.memorial-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    justify-content: center; /* Center content in the box */
}

.memorial-item-content {
    display: flex;
    align-items: center;
    text-align: center; /* Center the text */
}

.memorial-photo {
    flex-shrink: 0;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.memorial-info {
    flex-grow: 1;
    text-align: center; /* Center the text */
}

.memorial-info h2 a {
    text-decoration: none;
    color: #333;
}


.notifications-list {
    list-style-type: none;
    padding: 0;
}


.notification-item.unread {
    background-color: #e0f7fa;
}

.notification-item.read {
    background-color: #fff;
}
        .menu, .dropdown-menu {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        .menu {
            display: flex;
            gap: 20px; /* Space between the menu items */
        }

        .menu li {
            margin: 0;
            padding: 0;
        }

        .menu li a {
            text-decoration: none;
            padding: 10px 2px;
            display: block;
        }

        /* Adjust the user dropdown menu */
        .user-menu {
            position: relative;
        }

        .user-menu:hover .dropdown-menu {
            display: block;
        }

        .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: #f9f9f9;
            box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            padding: 0; /* Remove extra padding */
        }

        .dropdown-menu li {
            margin: 0;
            padding: 0;
        }

        .dropdown-menu li a {
            padding: 10px 15px;
            white-space: nowrap;
        }

        .dropdown-menu li a:hover {
            background-color: #f1f1f1;
        }

        /* Notifications menu styles */
        .notifications-menu {
            position: relative;
        }

        .notification-badge {
            background-color: red;
            color: white;
            border-radius: 50%;
            padding: 3px 6px;
            font-size: 0.8em;
            position: absolute;
            top: -5px;
            right: -5px;
        }

        .notifications-popup {
            display: none; /* Hidden by default */
            position: absolute;
            right: 0;
            top: 40px;
            width: 300px;
            background-color: white;
            border: 1px solid #ddd;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
            z-index: 1000;
        }

        .notifications-header {
            background-color: #f4f4f4;
            padding: 10px;
            border-bottom: 1px solid #ddd;
            display: block;
            justify-content: space-between;
            align-items: center;
        }

        .notifications-list {
            max-height: 200px;
            overflow-y: auto;
            padding: 10px;
        }


        .notification-item:last-child {
            border-bottom: none;
        }

        .notification-link {
            text-decoration: none;
            color: black;
        }

        .notification-link:hover {
            background-color: #f1f1f1;
        }

        /* Additional styling to match the notification page */
        .notifications-list p {
            margin: 0;
            font-size: 1.1em;
        }

        .notifications-list small {
            display: block;
            margin-top: 5px;
            color: #777;
        }

        .unread {
            background-color: #f9f9f9; /* Highlight unread notifications */
        }
footer {
        padding: 20px 0;
        text-align: center;
        border-top: 1px solid #ddd;
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .footer-links {
        list-style-type: none;
        padding: 0;
        margin: 0 0 10px;
    }

    .footer-links li {
        display: inline;
        margin-right: 15px;
		color: white;
    }

    .footer-links li a {
        text-decoration: none;
		color:white;
    }

    .footer-links li a:hover {
        text-decoration: underline;
    }

    footer p {
        margin: 0;
        color: #777;
        font-size: 14px;
    }


.notifications-list {
    list-style: none;
    padding: 0;
	max-height:100%;
}

.notification-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}


.notification-item p {
    margin: 0;
    font-size: 1.1em;
}

.notification-item small {
    display: block;
    margin-top: 5px;
    color: #777;
}

.notification-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.notification-item:hover {
    background-color: #e0f2f1;
}
.memorial-header {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.profile-photo-container {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    float:left;
}
.profile-info-container {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
}
.about-info {
    text-align: left;
    padding: 20px;
    border-radius: 10px;
    margin-left: 20px;
    color: black;
    float:left;
}
.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
}

/* Navigation Tabs */
.memorial-menu {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.memorial-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.memorial-menu ul li {
    margin: 0 20px;
}
.memorial-menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 20px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.memorial-menu ul li a:hover,
.memorial-menu ul li a.active {
    background-color: #ddd;
    color: #000;
}

/* Boxed Layout for Content Below Header */
.memorial-content-wrapper {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0px auto;
    padding: 0 20px;
}

.memorial-content {
    width: 70%;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /*border-radius: 0px;*/
}

.memorial-sidebar {
    width: 25%;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

/* Gallery Layout */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.05);
}

/* Sidebar Elements */
.gallery-preview {
    text-align: center;
    margin-bottom: 20px;
}
.gallery-preview img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.memorial-sidebar h3 {
    margin-top: 20px;
    color: #333;
    font-size: 1.2em;
    font-weight: bold;
}
.memorial-sidebar button {
    padding: 10px 15px;
    background-color: #3b5998;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}
.memorial-sidebar button:hover {
    background-color: #2d4373;
}
.profile-background-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section {
    width: 48%; /* Adjust width to create space between sections */
    text-align: center;
}

.photo-section {
    display: flex;
    flex-direction: column; /* Stack photo and controls vertically */
    align-items: center; /* Center items horizontally */
    margin-top: 20px;
}

.photo-thumbnail {
    position: relative;
    display: inline-block;
}

.photo-thumbnail img {
    width: 150px; /* Set consistent width */
    height: 150px; /* Set consistent height */
    object-fit: cover; /* Crop image to fit */
    border-radius: 10px; /* Rounded corners */
    margin-bottom: 10px; /* Space below the image */
}

.upload-controls {
    display: flex;
    flex-direction: column; /* Stack input and button vertically */
    align-items: center; /* Center align items */
}

.upload-controls input[type="file"] {
    margin-bottom: 10px; /* Space below the file input */
}

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
}

.btn {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn:hover {
    background-color: #218838; /* Darker shade on hover */
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }

    .menu {
        flex-direction: column;
    }

    .menu li {
        margin: 10px 0;
    }
}
.memorial-info p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Limits text to 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    max-height: 4.5em; /* This depends on your line height */
}


/* Music Grid Layout */
.music-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Music Card Styles */
.music-card {
    width: 200px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #ddd;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.music-card:hover {
    transform: scale(1.05);
}

/* Track Title and Controls */
.track-title {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.music-controls {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.play-button {
    padding: 8px 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.play-button.playing {
    background-color: #dc3545;
}

.update-music {
    display: block;
    margin: 20px auto;
}
/* Theme Grid Layout */
.theme-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Theme Card Styles */
.theme-card {
    width: 180px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #ddd;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.theme-card:hover {
    transform: scale(1.05);
}

/* Thumbnail and Name Styles */
.theme-thumbnail {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.theme-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 10px;
    object-fit: cover;
}

.theme-name {
    font-weight: bold;
}

.update-theme {
    display: block;
    margin: 20px auto;
}