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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

/* Velas no topo */
.candles-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 100px;
    z-index: 1000;
}

.candle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flame {
    width: 15px;
    height: 25px;
    background: radial-gradient(ellipse at center, #fff 0%, #ffeb3b 30%, #ff9800 60%, #ff5722 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 1.5s infinite alternate;
    box-shadow: 0 0 20px #ff9800, 0 0 40px #ff5722;
    position: relative;
    z-index: 2;
}

@keyframes flicker {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.1) translateY(-2px); }
}

.wick {
    width: 3px;
    height: 8px;
    background: #333;
    position: relative;
    z-index: 1;
}

.wax {
    width: 25px;
    height: 80px;
    background: linear-gradient(to bottom, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 5px 5px 0 0;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.2);
}

/* Container principal */
.memorial-container {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid #555;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 80px;
}

.memorial-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.memorial-header h1 {
    font-size: 3em;
    color: #c0c0c0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.cross {
    font-size: 3em;
    color: #8b7355;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Foto memorial com caixão */
.memorial-photo {
    text-align: center;
    margin: 30px 0;
}

.photo-frame {
    display: inline-block;
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
    border: 5px solid #8b7355;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9),
                inset 0 2px 10px rgba(255, 255, 255, 0.1);
}

.coffin {
    position: relative;
    width: 400px;
    height: 300px;
    margin: 0 auto;
}

.coffin-lid {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 15px;
    background: linear-gradient(to bottom, #5d4037 0%, #3e2723 100%);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.coffin-body {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #6d4c41 0%, #4e342e 50%, #3e2723 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5),
                0 5px 20px rgba(0,0,0,0.7);
    border: 3px solid #8b7355;
}

.deceased-photo {
    max-width: 250px;
    max-height: 200px;
    border-radius: 10px;
    border: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    object-fit: cover;
}

/* Pato criativo em CSS */
.placeholder-duck {
    position: relative;
    display: none;
    flex-direction: column;
    align-items: center;
    animation: rest-in-peace 4s ease-in-out infinite;
}

@keyframes rest-in-peace {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.duck-face {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.duck-eye {
    width: 15px;
    height: 15px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 40px;
}

.duck-eye.left { left: 30px; }
.duck-eye.right { right: 30px; }

.duck-eye::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
}

.duck-beak {
    width: 30px;
    height: 15px;
    background: #ff6b35;
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 15px 15px;
}

.duck-tear {
    width: 8px;
    height: 12px;
    background: #87ceeb;
    position: absolute;
    border-radius: 50% 0 50% 50%;
    animation: tear-drop 3s ease-in-out infinite;
    opacity: 0.8;
}

.duck-tear.left-tear {
    top: 55px;
    left: 38px;
}

.duck-tear.right-tear {
    top: 55px;
    right: 38px;
    animation-delay: 1s;
}

@keyframes tear-drop {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(10px) scale(0.8); opacity: 0.3; }
}

.wings {
    position: absolute;
    top: 60px;
    width: 150px;
    display: flex;
    justify-content: space-between;
}

.wing {
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50% 0 50% 50%;
}

.left-wing {
    transform: rotate(-20deg);
}

.right-wing {
    transform: rotate(20deg) scaleX(-1);
}

.halo {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3em;
    animation: halo-glow 2s ease-in-out infinite;
}

@keyframes halo-glow {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 0.8; }
}

.flowers-in-coffin {
    margin-top: 15px;
    font-size: 2em;
    opacity: 0.8;
}

.ribbon {
    margin-top: 15px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #ffd700;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
    transform: rotate(-2deg);
}

/* Texto memorial */
.memorial-text {
    text-align: center;
    padding: 20px;
}

.site-name {
    font-size: 2.5em;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.dates {
    font-size: 1.2em;
    color: #b0b0b0;
    margin-bottom: 30px;
}

.dates p {
    margin: 10px 0;
}

.epitaph {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.main-message {
    font-size: 1.3em;
    line-height: 1.8;
    color: #d0d0d0;
    margin-bottom: 30px;
    font-style: italic;
}

.memories h3,
.farewell-message h3,
.guest-book h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.memories ul {
    list-style: none;
    text-align: left;
    display: inline-block;
    margin: 15px 0;
}

.memories li {
    padding: 10px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #ffd700;
    border-radius: 5px;
}

.farewell-message {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.farewell-message p {
    font-size: 1.2em;
    line-height: 1.8;
}

/* Livro de condolências */
.guest-book {
    background: rgba(139, 115, 85, 0.2);
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    border: 2px solid rgba(139, 115, 85, 0.5);
}

.messages {
    margin-top: 20px;
}

.message {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 3px solid #8b7355;
    text-align: left;
}

.message p {
    color: #c0c0c0;
    line-height: 1.6;
}

/* Decoração de flores */
.flowers-decoration {
    text-align: center;
    font-size: 3em;
    margin: 30px 0;
    opacity: 0.7;
}

.flower {
    display: inline-block;
    margin: 0 10px;
    animation: sway 3s ease-in-out infinite;
}

.flower:nth-child(odd) {
    animation-delay: 0.5s;
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    color: #a0a0a0;
}

.footer p {
    margin: 10px 0;
    font-size: 1.1em;
}

.latin-phrase {
    font-style: italic;
    font-size: 1.3em !important;
    color: #ffd700;
    margin: 15px 0 !important;
}

.year {
    font-weight: bold;
    font-size: 1.2em !important;
}

/* Penas caindo */
.falling-feathers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.feather {
    position: absolute;
    top: -50px;
    font-size: 2em;
    opacity: 0.6;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .memorial-container {
        padding: 20px;
        margin-top: 60px;
    }

    .memorial-header h1 {
        font-size: 2em;
    }

    .coffin {
        width: 300px;
        height: 250px;
    }

    .deceased-photo {
        max-width: 200px;
        max-height: 150px;
    }

    .duck-face {
        width: 100px;
        height: 100px;
    }

    .site-name {
        font-size: 2em;
    }

    .candles-container {
        gap: 50px;
        top: 10px;
    }

    .wax {
        height: 60px;
        width: 20px;
    }

    .flowers-decoration {
        font-size: 2em;
    }
}
