:root {
    --primary-red: #b31217;
    --dark-red: #7a0a0d;
    --gold: #f1c40f;
    --light-gold: #f9e79f;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-red);
    background: radial-gradient(circle at center, var(--primary-red) 0%, var(--dark-red) 100%);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/dark-matter.png');
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

#fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1000px;
    padding: 40px;
    text-align: center;
    background: rgba(122, 10, 13, 0.4);
    backdrop-filter: blur(10px);
    border: 3px solid var(--gold);
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(241, 196, 15, 0.2);
    animation: fadeIn 2s ease-out;
}

.content {
    position: relative;
    padding: 20px;
}

.decoration {
    position: absolute;
    top: -60px;
    width: 100px;
    height: 100px;
    background-image: url('https://api.iconify.design/game-icons:lantern.svg?color=%23f1c40f');
    background-size: contain;
    background-repeat: no-repeat;
    animation: swing 3s ease-in-out infinite alternate;
}

.decoration-left {
    left: 20px;
}

.decoration-right {
    right: 20px;
}

.text-wrapper {
    margin-bottom: 30px;
}

.main-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--light-gold);
    text-transform: uppercase;
    text-shadow: 2px 2px 4px var(--shadow);
}

.greeting {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(90deg, #d4af37 0%, var(--light-gold) 50%, #d4af37 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 10px rgba(241, 196, 15, 0.5));
    animation: pulse 2s ease-in-out infinite, shimmer 3s linear infinite;
}

.lunar-year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-top: 15px;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.year {
    font-size: 5rem;
    font-weight: 900;
    margin-top: 10px;
    color: transparent;
    -webkit-text-stroke: 2px var(--gold);
    opacity: 0.4;
    letter-spacing: 10px;
}

.footer-decor {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.flower {
    width: 40px;
    height: 40px;
    filter: sepia(1) saturate(5) hue-rotate(-10deg);
    animation: rotate 10s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes swing {
    from {
        transform: rotate(-10deg);
        transform-origin: top;
    }

    to {
        transform: rotate(10deg);
        transform-origin: top;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .greeting {
        font-size: 2.5rem;
    }

    .location {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .year {
        font-size: 3.5rem;
    }

    .lunar-year {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .decoration {
        width: 60px;
        height: 60px;
        top: -40px;
    }
}