/* Custom Patriotic Styles */

.pixel-font {
    font-family: 'Press Start 2P', monospace;
}

.bg-patriotic-gradient {
    background: linear-gradient(45deg, 
        #1e40af 0%, 
        #dc2626 25%, 
        #ffffff 50%, 
        #dc2626 75%, 
        #1e40af 100%);
    background-size: 400% 400%;
    animation: patrioticShift 8s ease-in-out infinite;
}

@keyframes patrioticShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.container-patriotic {
    max-width: 1200px;
}

.pixelated-button {
    border: 3px solid #000;
    box-shadow: 
        3px 3px 0px #000,
        inset -2px -2px 0px rgba(0,0,0,0.3),
        inset 2px 2px 0px rgba(255,255,255,0.3);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transition: all 0.1s;
}

.pixelated-button:hover {
    transform: translate(1px, 1px);
    box-shadow: 
        2px 2px 0px #000,
        inset -2px -2px 0px rgba(0,0,0,0.3),
        inset 2px 2px 0px rgba(255,255,255,0.3);
}

.pixelated-button:active {
    transform: translate(2px, 2px);
    box-shadow: 
        1px 1px 0px #000,
        inset -2px -2px 0px rgba(0,0,0,0.3),
        inset 2px 2px 0px rgba(255,255,255,0.3);
}

.text-shadow-patriotic {
    text-shadow: 
        3px 3px 0px #000,
        -1px -1px 0px #fff,
        1px -1px 0px #fff,
        -1px 1px 0px #fff,
        1px 1px 0px #fff;
}

.patriotic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.05) 2px,
            rgba(255,255,255,0.05) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.05) 2px,
            rgba(255,255,255,0.05) 4px
        );
    pointer-events: none;
    z-index: 1;
}

.stars-animation {
    background: 
        radial-gradient(2px 2px at 20% 30%, #ffffff, transparent),
        radial-gradient(2px 2px at 40% 70%, #ffffff, transparent),
        radial-gradient(1px 1px at 60% 15%, #ffffff, transparent),
        radial-gradient(1px 1px at 80% 85%, #ffffff, transparent),
        radial-gradient(2px 2px at 10% 90%, #ffffff, transparent);
    background-size: 200px 200px;
    animation: sparkle 4s linear infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti-container::before {
    content: '⭐ 🇺🇸 ⭐ 🦅 ⭐ 🇺🇸 ⭐ 🦅 ⭐ 🇺🇸 ⭐ 🦅 ⭐ 🇺🇸 ⭐';
    position: absolute;
    top: -20px;
    left: 0;
    width: 200%;
    height: 20px;
    font-size: 16px;
    animation: confettiFall 15s linear infinite;
    opacity: 0.7;
    white-space: nowrap;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) translateX(0);
    }
    100% {
        transform: translateY(100vh) translateX(-50px);
    }
}

.eagle-sprite {
    animation: eagleFly 3s ease-in-out infinite;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

@keyframes eagleFly {
    0%, 100% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.speech-bubble {
    position: relative;
    border-radius: 12px;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.fireworks-display {
    animation: fireworksShow 3s ease-out;
}

@keyframes fireworksShow {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 0; }
}

.firework {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #fff 20%, transparent 21%);
    border-radius: 50%;
    animation: explode 1s ease-out infinite;
}

.firework-1 {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
    background: radial-gradient(circle, #dc2626 20%, transparent 21%);
}

.firework-2 {
    top: 30%;
    right: 30%;
    animation-delay: 0.5s;
    background: radial-gradient(circle, #ffffff 20%, transparent 21%);
}

.firework-3 {
    top: 40%;
    left: 50%;
    animation-delay: 1s;
    background: radial-gradient(circle, #1e40af 20%, transparent 21%);
}

@keyframes explode {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.landmark-card {
    border: 3px solid #000;
    box-shadow: 
        4px 4px 0px #000,
        inset -2px -2px 0px rgba(0,0,0,0.2);
}

.landmark-card:hover {
    box-shadow: 
        6px 6px 0px #000,
        inset -2px -2px 0px rgba(0,0,0,0.2);
}

/* Flag waving animation */
.flag-wave {
    animation: wave 2s ease-in-out infinite;
    transform-origin: left center;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    75% { transform: rotate(-2deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pixel-font {
        font-size: 0.8rem;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
    
    .text-8xl {
        font-size: 3rem;
    }
    
    .pixelated-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* High contrast mode for accessibility */
@media (prefers-contrast: high) {
    .bg-patriotic-gradient {
        background: linear-gradient(45deg, #000080 0%, #8B0000 50%, #000080 100%);
    }
    
    .pixelated-button {
        border: 4px solid #000;
        box-shadow: 4px 4px 0px #000;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .eagle-sprite,
    .stars-animation,
    .confetti-container::before,
    .bg-patriotic-gradient {
        animation: none;
    }
    
    .pixelated-button:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .confetti-container,
    .stars-animation,
    .patriotic-bg {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}