/* Custom styles that extend Tailwind */

/* Text shadow for better visibility on dark or image backgrounds */
.shadow-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Background pattern for hero section */
.bg-hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Theme selector styles */
.theme-selector {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

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

.theme-selector::after {
    content: "";
    position: absolute;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    transition: opacity 0.2s ease;
}

input[type="radio"]:checked + .theme-selector {
    border-width: 3px;
    transform: scale(1.1);
}

input[type="radio"]:checked + .theme-selector::after {
    opacity: 1;
}

/* Enhanced flame animations for memorial candle */
@keyframes flame-flicker {
    0% { transform: translateX(-50%) scale(1) rotate(-1deg); }
    25% { transform: translateX(-50%) scale(1.05) rotate(1deg); }
    50% { transform: translateX(-50%) scale(0.98) rotate(-0.5deg); }
    75% { transform: translateX(-50%) scale(1.02) rotate(0.5deg); }
    100% { transform: translateX(-50%) scale(1) rotate(0deg); }
}

@keyframes flame-glow {
    0% { box-shadow: 0 0 25px 8px rgba(255, 165, 0, 0.8), 0 0 50px 15px rgba(255, 69, 0, 0.6); }
    50% { box-shadow: 0 0 35px 12px rgba(255, 165, 0, 1), 0 0 70px 20px rgba(255, 69, 0, 0.8); }
    100% { box-shadow: 0 0 25px 8px rgba(255, 165, 0, 0.8), 0 0 50px 15px rgba(255, 69, 0, 0.6); }
}

@keyframes flame-burst {
    0% { transform: translateX(-50%) scale(1); }
    20% { transform: translateX(-50%) scale(1.6); }
    40% { transform: translateX(-50%) scale(1.3); }
    60% { transform: translateX(-50%) scale(1.4); }
    80% { transform: translateX(-50%) scale(1.2); }
    100% { transform: translateX(-50%) scale(1.25); }
}

@keyframes candle-glow-burst {
    0% { opacity: 0.4; transform: scale(1); }
    30% { opacity: 0.9; transform: scale(1.3); }
    70% { opacity: 0.7; transform: scale(1.2); }
    100% { opacity: 0.6; transform: scale(1.1); }
}

.candle-flame.lighting-animation {
    animation: flame-burst 1s ease-out, flame-flicker 1.5s ease-in-out infinite alternate, flame-glow 2s ease-in-out infinite !important;
}

.candle-flame-inner.lighting-animation {
    animation: flame-burst 0.8s ease-out 0.1s, flame-flicker 1.2s ease-in-out infinite alternate-reverse !important;
}

.candle-glow.lighting-animation {
    animation: candle-glow-burst 1.2s ease-out !important;
}

/* Theme colors */
input[type="radio"]#theme1:checked + .theme-selector {
    border-color: #1e3a8a;
}

input[type="radio"]#theme2:checked + .theme-selector {
    border-color: #7f1d1d;
}

input[type="radio"]#theme3:checked + .theme-selector {
    border-color: #a16207;
}

input[type="radio"]#theme4:checked + .theme-selector {
    border-color: #4b5563;
}

input[type="radio"]#theme5:checked + .theme-selector {
    border-color: #6d28d9;
}

input[type="radio"]#theme6:checked + .theme-selector {
    border-color: #047857;
}

/* Card theme classes with enhanced styling */
.tribute-card.theme1 {
    background-color: #dbeafe;
    border-color: #1e3a8a;
    background-image: linear-gradient(to bottom right, #dbeafe, #eff6ff);
}

.tribute-card.theme2 {
    background-color: #fee2e2;
    border-color: #7f1d1d;
    background-image: linear-gradient(to bottom right, #fee2e2, #fef2f2);
}

.tribute-card.theme3 {
    background-color: #fffbeb;
    border-color: #a16207;
    background-image: linear-gradient(to bottom right, #fffbeb, #fef3c7);
}

.tribute-card.theme4 {
    background-color: #f3f4f6;
    border-color: #4b5563;
    background-image: linear-gradient(to bottom right, #f3f4f6, #f9fafb);
}

.tribute-card.theme5 {
    background-color: #f3e8ff;
    border-color: #6d28d9;
    background-image: linear-gradient(to bottom right, #f3e8ff, #f5f3ff);
}

.tribute-card.theme6 {
    background-color: #d1fae5;
    border-color: #047857;
    background-image: linear-gradient(to bottom right, #d1fae5, #ecfdf5);
}

/* Modal animation */
.modal-enter {
    animation: fadeIn 0.3s ease-out;
}

.modal-exit {
    animation: fadeOut 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Tribute card hover effect and fixed height */
.tribute-card {
    transition: all 0.3s ease;
    height: 340px; /* Fixed height for all cards */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tribute-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tribute-card .card-text {
    flex: 1;
    overflow: hidden;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.tribute-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Theme-specific hover effects */
.tribute-card.theme1:hover { border-color: #1e3a8a; }
.tribute-card.theme2:hover { border-color: #7f1d1d; }
.tribute-card.theme3:hover { border-color: #a16207; }
.tribute-card.theme4:hover { border-color: #4b5563; }
.tribute-card.theme5:hover { border-color: #6d28d9; }
.tribute-card.theme6:hover { border-color: #047857; }

/* Read full button animation */
.read-full-btn {
    transition: all 0.2s ease;
}

.read-full-btn:hover {
    transform: translateX(3px);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Pagination styles */
.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #4b5563;
    border: 1px solid transparent;
}

.page-number:hover:not(.active) {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #1e3a8a;
}

.page-number.active {
    background-color: #1e3a8a;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form modal animation */
.form-modal-enter {
    animation: modalFadeIn 0.3s ease-out;
}

.form-modal-exit {
    animation: modalFadeOut 0.3s ease-in;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Responsive styles */
@media (max-width: 768px) {
    .tribute-card {
        height: 320px; /* Slightly taller on mobile for better readability */
    }
    
    .theme-selector {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 640px) {
    .page-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
}

/* Hero section animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-fadeIn {
    animation: fadeIn 1.5s ease-out forwards;
    opacity: 0;
}

.animate-slideUp {
    animation: slideUp 1s ease-out forwards;
    opacity: 0;
}

.animate-slideIn-left {
    animation: slideInLeft 1.2s ease-out forwards;
    opacity: 0;
}

.animate-slideIn-right {
    animation: slideInRight 1.2s ease-out forwards;
    opacity: 0;
}

.animate-pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 30s linear infinite;
}

.animate-scale {
    animation: scale 2s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s !important;
}

.delay-200 {
    animation-delay: 0.2s !important;
}

.delay-300 {
    animation-delay: 0.3s !important;
}

.delay-500 {
    animation-delay: 0.5s !important;
}

.delay-700 {
    animation-delay: 0.7s !important;
}

.delay-1000 {
    animation-delay: 1s !important;
}

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

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 2px rgba(255,255,255,0.6));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.8));
    }
    100% {
        filter: drop-shadow(0 0 2px rgba(255,255,255,0.6));
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes scale {
    0% {
        transform: scale(0.94);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Add responsive loading animation */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #1e3a8a;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Page Transition Effects */
.duration-600 {
    transition-duration: 600ms;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleDown {
    from { transform: scale(1); }
    to { transform: scale(0.95); }
}

@keyframes scaleUp {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}

.page-transition-fade {
    animation: fadeIn 0.6s ease-in-out;
}

body.navigating-away {
    animation: fadeOut 0.6s ease-in-out forwards, scaleDown 0.6s ease-in-out forwards;
}

/* Cross fade animation for memorial symbol */
.memorial-symbol {
    transition: opacity 0.6s ease-in-out, transform 0.8s ease-in-out;
}

.memorial-symbol.fade-in {
    opacity: 1;
    transform: scale(1);
}

.memorial-symbol.fade-out {
    opacity: 0;
    transform: scale(1.2);
}

/* Add a gentle transition to all links */
a {
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

a:hover {
    transform: translateY(-1px);
}

/* Gallery Grid Animation */
.gallery-animate .gallery-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply staggered delay to gallery items */
.gallery-animate .gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-animate .gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-animate .gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-animate .gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-animate .gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-animate .gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-animate .gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-animate .gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-animate .gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-animate .gallery-item:nth-child(10) { animation-delay: 1s; }
.gallery-animate .gallery-item:nth-child(n+11) { animation-delay: 1.1s; }

/* Nigerian-inspired patterns and designs */
.bg-pattern-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 16px 16px;
}

.bg-pattern-zigzag {
    background-image: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(225deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(315deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%);
    background-size: 20px 20px;
}

.bg-pattern-adinkra {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 10px 10px;
}

.bg-pattern-triangle {
    background-image: 
        linear-gradient(60deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%);
    background-size: 20px 30px;
}

.bg-pattern-waves {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    background-size: 20px 100%;
    background-repeat: repeat-x;
}

/* Nigerian-inspired card borders */
.border-pattern-1 {
    border-image: linear-gradient(45deg, #fcd34d, #fbbf24, #f59e0b, #d97706) 1;
    border-width: 3px;
}

.border-pattern-2 {
    border-image: linear-gradient(-45deg, #1e3a8a, #1e40af, #3b82f6, #60a5fa) 1;
    border-width: 3px;
}

.border-pattern-3 {
    border-image: linear-gradient(to right, #7f1d1d, #991b1b, #dc2626, #ef4444) 1;
    border-width: 3px;
}

.border-pattern-4 {
    border-image: linear-gradient(to left, #15803d, #16a34a, #22c55e, #4ade80) 1;
    border-width: 3px;
}

.border-pattern-5 {
    border-width: 3px;
    border-style: solid;
    border-color: transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, #f59e0b, #1e3a8a, #991b1b, #16a34a, #f59e0b);
    background-origin: border-box;
    background-clip: content-box, border-box;
}

/* Virtual Candle Styles */
.memorial-candle-section {
    position: relative;
    overflow: hidden;
}

.memorial-candle {
    position: relative;
    display: inline-block;
    height: 160px;
    margin-bottom: 20px;
}

.candle-body {
    width: 32px;
    height: 90px;
    background: #ffffff;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.05);
    transition: height 1s ease-in-out;
    border-radius: 3px 3px 0 0;
}

/* Very subtle texture for the candle and melted wax at top */
.candle-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(250, 250, 250, 0.9), rgba(255, 255, 255, 0.8));
    border-radius: 3px 3px 0 0;
}

/* Wick */
.candle-body::after {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5px;
    height: 5px;
    background: #333;
    border-radius: 1px;
}

.candle-flame {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 16px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 200, 1) 0%, rgba(255, 180, 50, 0.9) 50%, rgba(255, 140, 30, 0.7) 80%, rgba(255, 100, 20, 0) 100%);
    border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
    box-shadow: 
        0 0 10px 4px rgba(255, 200, 80, 0.5), 
        0 0 20px 8px rgba(255, 160, 40, 0.3);
    transform-origin: center bottom;
    filter: blur(0.3px);
    animation: candleFlicker 1.5s infinite ease-in-out;
    z-index: 5;
}

/* Inner bright part of flame */
.candle-flame::before {
    content: "";
    position: absolute;
    width: 60%;
    height: 65%;
    top: 15%;
    left: 20%;
    border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 1) 0%, rgba(255, 250, 200, 0.8) 30%, rgba(255, 200, 100, 0) 100%);
    filter: blur(0.5px);
    animation: innerFlame 3s infinite alternate;
    transform-origin: center 80%;
}

/* Additional inner flame element for more realism */
.candle-flame-inner {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 180, 0.9) 70%, rgba(255, 200, 150, 0) 100%);
    border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
    filter: blur(0.5px);
    animation: flameInner 1.2s infinite alternate;
    z-index: 6;
    transform-origin: center bottom;
}

/* Base plate */
.candle-holder {
    position: relative;
    width: 50px;
    height: 4px;
    background: #e6e6e6;
    border-radius: 50%;
    margin: 0 auto;
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Base shadow */
.candle-base {
    position: relative;
    width: 30px;
    height: 2px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    margin: 0 auto;
    z-index: 2;
    filter: blur(1px);
    transform: translateY(4px);
}

.candle-lit-animation {
    animation: candleLit 0.5s ease-out;
}

/* Removing the oval glow as requested */

.new-flame {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 24px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 200, 1) 0%, rgba(255, 200, 100, 0.9) 40%, rgba(255, 160, 50, 0.7) 70%, rgba(255, 120, 30, 0) 100%);
    border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
    box-shadow: 
        0 0 15px 7px rgba(255, 200, 80, 0.6), 
        0 0 30px 15px rgba(255, 160, 40, 0.3);
    animation: newCandleAnimation 1.5s forwards;
    z-index: 10;
    filter: blur(0.3px);
}

.candle-container-lit {
    box-shadow: 0 0 50px 25px rgba(255, 200, 0, 0.5) !important;
}

#light-candle-btn {
    transition: all 0.3s ease;
}

#light-candle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.4);
}

.candle-lit-animation {
    animation: candleLit 1s ease-out;
}

@keyframes candleFlicker {
    0% {
        transform: translateX(-50%) scaleY(1) rotate(0deg);
        height: 16px;
        opacity: 0.95;
        box-shadow: 
            0 0 10px 4px rgba(255, 200, 80, 0.5), 
            0 0 20px 8px rgba(255, 160, 40, 0.3);
    }
    20% {
        transform: translateX(calc(-50% + 0.3px)) scaleY(1.03) scaleX(0.98) rotate(0.3deg);
        height: 16.5px;
        opacity: 0.97;
        box-shadow: 
            0 0 11px 4.5px rgba(255, 210, 90, 0.55), 
            0 0 21px 9px rgba(255, 170, 45, 0.33);
    }
    40% {
        transform: translateX(calc(-50% - 0.2px)) scaleY(0.97) scaleX(1.01) rotate(-0.2deg);
        height: 15.8px;
        opacity: 0.93;
        box-shadow: 
            0 0 9px 3.5px rgba(255, 190, 75, 0.48), 
            0 0 19px 7px rgba(255, 150, 35, 0.28);
    }
    60% {
        transform: translateX(calc(-50% - 0.1px)) scaleY(0.98) scaleX(1.005) rotate(-0.1deg);
        height: 15.9px;
        opacity: 0.94;
        box-shadow: 
            0 0 9.5px 3.8px rgba(255, 195, 80, 0.5), 
            0 0 19.5px 7.5px rgba(255, 155, 38, 0.29);
    }
    80% {
        transform: translateX(calc(-50% + 0.25px)) scaleY(1.02) scaleX(0.99) rotate(0.25deg);
        height: 16.3px;
        opacity: 0.96;
        box-shadow: 
            0 0 10.5px 4.2px rgba(255, 205, 85, 0.52), 
            0 0 20.5px 8.5px rgba(255, 165, 42, 0.32);
    }
    100% {
        transform: translateX(-50%) scaleY(1) rotate(0deg);
        height: 16px;
        opacity: 0.95;
        box-shadow: 
            0 0 10px 4px rgba(255, 200, 80, 0.5), 
            0 0 20px 8px rgba(255, 160, 40, 0.3);
    }
}

@keyframes innerFlame {
    0% {
        transform: scale(0.95, 1.03) rotate(-0.5deg);
        opacity: 0.95;
    }
    25% {
        transform: scale(1.05, 0.97) rotate(0.5deg);
        opacity: 1;
    }
    50% {
        transform: scale(0.98, 1.02) rotate(-0.3deg);
        opacity: 0.97;
    }
    75% {
        transform: scale(1.01, 0.99) rotate(0.2deg);
        opacity: 0.99;
    }
    100% {
        transform: scale(0.95, 1.03) rotate(-0.5deg);
        opacity: 0.95;
    }
}

@keyframes outerGlow {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    25% {
        transform: scale(1.03);
        opacity: 0.45;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
    75% {
        transform: scale(1.02);
        opacity: 0.45;
    }
    100% {
        transform: scale(1);
        opacity: 0.4;
    }
}

@keyframes newCandleAnimation {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

@keyframes candleBurn {
    0%, 100% {
        box-shadow: 0 0 5px 2px rgba(255, 200, 100, 0.3);
    }
    50% {
        box-shadow: 0 0 8px 4px rgba(255, 200, 100, 0.4);
    }
}

@keyframes smoke {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.2) rotate(5deg);
        opacity: 0.2;
    }
    100% {
        transform: translateY(-40px) scale(1.5) rotate(-5deg);
        opacity: 0;
    }
}

@keyframes smokeRise {
    0% {
        transform: translateY(0) translateX(-50%) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    40% {
        transform: translateY(-15px) translateX(calc(-50% + 5px)) scale(1.5);
        opacity: 0.3;
    }
    70% {
        transform: translateY(-30px) translateX(calc(-50% - 5px)) scale(2);
        opacity: 0.15;
    }
    100% {
        transform: translateY(-45px) translateX(-50%) scale(2.5);
        opacity: 0;
    }
}

@keyframes flashFade {
    0% {
        opacity: 0.7;
        box-shadow: 0 0 30px 15px rgba(255, 230, 150, 0.5);
    }
    30% {
        opacity: 0.5;
        box-shadow: 0 0 40px 20px rgba(255, 200, 100, 0.4);
    }
    100% {
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(255, 200, 100, 0);
    }
}

@keyframes candleLit {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 153, 0, 0);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(255, 153, 0, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 153, 0, 0);
    }
}
