* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #7f8c8d;
    --text-color: #333;
    --light-text: #ecf0f1;
    --background-color: #f5f5f5;
    --container-bg: #fff;
    --border-color: #bdc3c7;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Georgia', serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--container-bg);
    box-shadow: var(--shadow);
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.photo-frame {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 5px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e0e0e0;
}

.photo-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 5rem;
    color: var(--accent-color);
}

.memorial-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dates {
    font-style: italic;
    margin-top: 10px;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.navigation {
    margin-bottom: 40px;
}

.navigation ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 20px;
}

.navigation a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: var(--transition);
}

.navigation a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.section {
    margin-bottom: 50px;
    padding: 20px;
    background-color: var(--container-bg);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.section-content {
    padding: 20px 0;
}

.section-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

blockquote {
    font-style: italic;
    color: var(--secondary-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
    margin: 20px 0;
}

.service-card {
    background-color: rgba(236, 240, 241, 0.5);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.service-card p {
    margin-bottom: 10px;
}

.service-card i {
    margin-right: 10px;
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--secondary-color);
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.gallery-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    color: var(--accent-color);
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.gallery-item {
    width: calc(33.333% - 15px);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

#shared-memories, #condolence-messages {
    margin-top: 30px;
}

.memory-card, .condolence-card {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color);
}

.memory-card h4, .condolence-card h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.memory-meta, .condolence-meta {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.memory-image {
    max-width: 100%;
    margin-top: 15px;
    border-radius: 8px;
}

.donation-link {
    margin: 20px 0;
    text-align: center;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    background-color: var(--primary-color);
    color: var(--light-text);
}

footer p {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .navigation a {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .gallery-item {
        width: calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 100%;
    }
}

/* Candle animation for photo frame */
.photo-frame::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: rgba(255, 215, 0, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.4);
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.4);
    }
    25% {
        opacity: 0.8;
        box-shadow: 0 0 25px 7px rgba(255, 215, 0, 0.5);
    }
    50% {
        opacity: 0.5;
        box-shadow: 0 0 15px 3px rgba(255, 215, 0, 0.3);
    }
    75% {
        opacity: 0.7;
        box-shadow: 0 0 22px 6px rgba(255, 215, 0, 0.45);
    }
} 