/**
 * CSS cho hiệu ứng pháo hoa toàn màn hình
 */

/* Canvas toàn màn hình */
#fireworks-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
    will-change: transform;
    transform: translateZ(0);
    animation: fadeIn 1s ease-out;
    opacity: 1;
}

/* Responsive - Giảm độ đậm trên tablet */
@media (max-width: 1024px) {
    #fireworks-canvas {
        opacity: 0.85;
    }
}

/* Responsive - Vẫn chạy trên mobile nhưng nhẹ hơn */
@media (max-width: 768px) {
    #fireworks-canvas {
        opacity: 0.7;
    }
}

/* Nút điều khiển hiệu ứng (tùy chọn) */
.effects-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-family: Arial, sans-serif;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.effects-toggle:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.effects-toggle.active {
    background: linear-gradient(135deg, #ff6b9d, #c05899);
    color: white;
}

.effects-toggle.active:hover {
    background: linear-gradient(135deg, #ff4d7a, #a03d7a);
}

/* Icon cho nút */
.effects-toggle::before {
    content: '🎆';
    margin-right: 5px;
}

.effects-toggle.active::before {
    content: '✨';
}

/* Animation fade in cho canvas */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}