/* Background animation */ body { min-height: 100vh; margin: 0; padding: 0; overflow-x: hidden; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } /* Confetti effect for wins */ .confetti { position: fixed; width: 10px; height: 10px; background-color: #f00; opacity: 0.7; animation: confetti 5s ease-in-out infinite; z-index: 1000; } @keyframes confetti { 0% { transform: translateY(0) rotate(0deg); top: -10px; } 100% { transform: translateY(100vh) rotate(360deg); top: 100%; } } /* Custom styles for game cells */ .cell { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: bold; cursor: pointer; transition: all 0.2s ease; } .cell:hover { transform: scale(1.05); } .cell-x { color: #3B82F6; /* blue-500 */ } .cell-o { color: #EC4899; /* pink-500 */ } .winning-cell { animation: pulse 0.8s infinite, rainbow 1.5s infinite, glow 1s infinite alternate; z-index: 10; position: relative; } @keyframes glow { from { box-shadow: 0 0 5px rgba(255, 255, 255, 0.7); } to { box-shadow: 0 0 20px rgba(255, 255, 255, 0.9); } } @keyframes rainbow { 0% { background-color: #3B82F6; } 20% { background-color: #EC4899; } 40% { background-color: #10B981; } 60% { background-color: #F59E0B; } 80% { background-color: #6366F1; } 100% { background-color: #3B82F6; } } @keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); } 50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); } } /* Responsive adjustments */ @media (max-width: 640px) { .cell { font-size: 2rem; } }