/* Full-page animated rainbow glitter confetti background */
.glitter-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00ff00,
        #0000ff,
        #4b0082,
        #9400d3);
    background-size: 400% 400%;
    animation: rainbowShift 12s ease infinite;
    z-index: -1;
}

/* Rainbow gradient animation */
@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating glitter confetti */
.glitter-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.9) 2px, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,0.7) 2px, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,0.5) 2px, transparent 2px);
    background-size: 4px 4px, 3px 3px, 2px 2px;
    animation: glitterFloat 6s linear infinite;
    pointer-events: none;
}

@keyframes glitterFloat {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-40px); opacity: 0.6; }
}

/* Carousel */
.carousel {
    display: flex;
    gap: 60px;
    padding: 80px 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.carousel::-webkit-scrollbar {
    height: 10px;
}

.carousel::-webkit-scrollbar-thumb {
    background: #ffffffaa;
    border-radius: 10px;
}

/* Art items */
.art-item {
    width: 400px;
    height: auto;
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255,255,255,0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.art-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.art-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 45px rgba(255,255,255,1);
}

/* Modal (no overlay) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Rainbow confetti sparkle pop-out card */
.sparkle-card {
    background: white;
    padding: 20px;
    width: 70%;
    max-width: 900px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 40px rgba(255,255,255,0.9);
    animation: popCard 0.4s ease;
}

/* Pop animation */
@keyframes popCard {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Sparkles around card */
.sparkle-card::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background-image:
        radial-gradient(circle, rgba(255,255,255,1) 3px, transparent 3px),
        radial-gradient(circle, rgba(255,255,255,0.8) 2px, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,0.6) 2px, transparent 2px);
    background-size: 12px 12px, 10px 10px, 8px 8px;
    animation: sparklePulse 2s infinite linear;
    pointer-events: none;
}

@keyframes sparklePulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Modal image */
#modalImg {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    margin-bottom: 20px;
}

/* Close button */
#closeModal {
    float: right;
    font-size: 32px;
    cursor: pointer;
}
