/* Chinese New Year 2026 - Year of the Horse Decorations */
:root {
    --cny-red: #D40F0F;
    --cny-gold: #FFD700;
    --cny-dark-red: #8B0000;
}

/* Container for all CNY elements to avoid affecting main layout */
.cny-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* --- Hanging Lanterns --- */
.lantern-container {
    position: absolute;
    top: -20px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 5%;
}

.lantern {
    position: relative;
    width: 60px;
    height: 50px;
    background: var(--cny-red);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(212, 15, 15, 0.4);
    animation: swing 3s ease-in-out infinite alternate;
    transform-origin: top center;
}

.lantern::before {
    /* Lantern Top */
    content: '';
    position: absolute;
    top: -5px;
    left: 15px;
    width: 30px;
    height: 6px;
    background: var(--cny-gold);
    border-radius: 2px;
}

.lantern::after {
    /* Lantern Bottom */
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    width: 30px;
    height: 6px;
    background: var(--cny-gold);
    border-radius: 2px;
}

.lantern-tassel {
    position: absolute;
    bottom: -30px;
    left: 28px;
    width: 4px;
    height: 25px;
    background: var(--cny-red);
}

/* Chinese Character 'Fu' (Fortune) inverted inside lantern */
.lantern-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--cny-gold);
    font-family: "Microsoft YaHei", "Heiti SC", sans-serif;
    font-weight: bold;
    font-size: 24px;
    line-height: 1;
}

/* Styling/Positioning individual lanterns */
.l1 {
    left: 5%;
    animation-delay: 0s;
}

.l2 {
    left: 20%;
    animation-delay: 1.5s;
    transform: scale(0.8);
}

.l3 {
    right: 20%;
    animation-delay: 0.5s;
    transform: scale(0.8);
}

.l4 {
    right: 5%;
    animation-delay: 2s;
}

@keyframes swing {
    0% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(5deg);
    }
}

/* --- Year of the Horse Watermark/Badge --- */
.horse-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Remove background circle for the cutout image look, or keep transparent */
    background: transparent;
    pointer-events: auto;
    /* Allow hovering if we want interaction */
    animation: bounceMove 3s ease-in-out infinite;
}

.horse-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    /* Add a slight wiggle to the image itself */
    animation: wiggle 2s ease-in-out infinite;
}

.year-text {
    margin-top: -10px;
    color: var(--cny-gold);
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(139, 0, 0, 0.8);
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 1px;
    z-index: 2;
}

@keyframes bounceMove {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-3deg) scale(1);
    }

    50% {
        transform: rotate(3deg) scale(1.05);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .horse-badge {
        width: 80px;
        height: 80px;
        bottom: 10px;
        right: 10px;
    }

    .horse-svg {
        width: 45px;
        height: 45px;
    }

    .year-text {
        font-size: 12px;
        bottom: -20px;
    }

    .lantern {
        transform: scale(0.7);
    }
}