Spaces:
Running
Running
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Arial', sans-serif; | |
| background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); | |
| min-height: 100vh; | |
| color: white; | |
| overflow-x: hidden; | |
| } | |
| .container { | |
| max-width: 1400px; | |
| margin: 0 auto; | |
| padding: 20px; | |
| } | |
| .header { | |
| text-align: center; | |
| margin-bottom: 40px; | |
| position: relative; | |
| } | |
| .title { | |
| font-size: 3.5rem; | |
| font-weight: bold; | |
| background: linear-gradient(45deg, #ff6b35, #f7931e, #ffd700); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| text-shadow: 0 0 30px rgba(255, 107, 53, 0.3); | |
| margin-bottom: 10px; | |
| animation: glow 2s ease-in-out infinite alternate; | |
| } | |
| @keyframes glow { | |
| from { | |
| text-shadow: 0 0 20px rgba(255, 107, 53, 0.3); | |
| } | |
| to { | |
| text-shadow: 0 0 40px rgba(255, 107, 53, 0.6); | |
| } | |
| } | |
| .subtitle { | |
| font-size: 1.2rem; | |
| color: #b0b0b0; | |
| margin-bottom: 30px; | |
| } | |
| .main-content { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 40px; | |
| align-items: start; | |
| } | |
| .camera-section { | |
| background: rgba(255, 255, 255, 0.05); | |
| backdrop-filter: blur(10px); | |
| border-radius: 20px; | |
| padding: 30px; | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); | |
| } | |
| .camera-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| margin-bottom: 25px; | |
| } | |
| .camera-title { | |
| font-size: 1.5rem; | |
| font-weight: bold; | |
| color: #ffd700; | |
| } | |
| .status-indicator { | |
| width: 12px; | |
| height: 12px; | |
| border-radius: 50%; | |
| background: #ff4444; | |
| animation: pulse 2s infinite; | |
| } | |
| .status-indicator.active { | |
| background: #44ff44; | |
| } | |
| @keyframes pulse { | |
| 0% { | |
| transform: scale(1); | |
| opacity: 1; | |
| } | |
| 50% { | |
| transform: scale(1.2); | |
| opacity: 0.7; | |
| } | |
| 100% { | |
| transform: scale(1); | |
| opacity: 1; | |
| } | |
| } | |
| .canvas-container { | |
| position: relative; | |
| text-align: center; | |
| margin-bottom: 25px; | |
| } | |
| #canvas { | |
| border-radius: 15px; | |
| border: 3px solid rgba(255, 215, 0, 0.3); | |
| box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); | |
| max-width: 100%; | |
| height: auto; | |
| } | |
| .start-btn { | |
| width: 100%; | |
| padding: 15px 30px; | |
| font-size: 1.2rem; | |
| font-weight: bold; | |
| background: linear-gradient(45deg, #ff6b35, #f7931e); | |
| color: white; | |
| border: none; | |
| border-radius: 50px; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3); | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| } | |
| .start-btn:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 25px rgba(255, 107, 53, 0.5); | |
| } | |
| .start-btn:active { | |
| transform: translateY(0); | |
| } | |
| .results-section { | |
| background: rgba(255, 255, 255, 0.05); | |
| backdrop-filter: blur(10px); | |
| border-radius: 20px; | |
| padding: 30px; | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); | |
| } | |
| .results-title { | |
| font-size: 1.5rem; | |
| font-weight: bold; | |
| color: #ffd700; | |
| margin-bottom: 25px; | |
| display: flex; | |
| align-items: center; | |
| } | |
| #label-container { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 15px; | |
| } | |
| .prediction-item { | |
| background: rgba(255, 255, 255, 0.08); | |
| padding: 20px; | |
| border-radius: 15px; | |
| border-left: 4px solid #ffd700; | |
| transition: all 0.3s ease; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .prediction-item::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent); | |
| transform: translateX(-100%); | |
| animation: shimmer 2s infinite; | |
| } | |
| @keyframes shimmer { | |
| 0% { | |
| transform: translateX(-100%); | |
| } | |
| 100% { | |
| transform: translateX(100%); | |
| } | |
| } | |
| .prediction-item:hover { | |
| transform: translateX(5px); | |
| background: rgba(255, 255, 255, 0.12); | |
| } | |
| .prediction-text { | |
| font-size: 1.1rem; | |
| font-weight: 500; | |
| color: white; | |
| } | |
| .footer { | |
| text-align: center; | |
| margin-top: 50px; | |
| padding: 20px; | |
| border-top: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| .footer-text { | |
| color: #888; | |
| font-size: 0.9rem; | |
| } | |
| .loading-spinner { | |
| display: none; | |
| width: 40px; | |
| height: 40px; | |
| border: 4px solid rgba(255, 215, 0, 0.3); | |
| border-top: 4px solid #ffd700; | |
| border-radius: 50%; | |
| animation: spin 1s linear infinite; | |
| margin: 20px auto; | |
| } | |
| @keyframes spin { | |
| 0% { | |
| transform: rotate(0deg); | |
| } | |
| 100% { | |
| transform: rotate(360deg); | |
| } | |
| } | |
| @media (max-width: 768px) { | |
| .main-content { | |
| grid-template-columns: 1fr; | |
| gap: 20px; | |
| } | |
| .title { | |
| font-size: 2.5rem; | |
| } | |
| .container { | |
| padding: 15px; | |
| } | |
| } | |
| /* Basketball Court Background Decoration */ | |
| .bg-decoration { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| pointer-events: none; | |
| z-index: -1; | |
| opacity: 0.1; | |
| } | |
| .court-line { | |
| position: absolute; | |
| background: linear-gradient(90deg, transparent, #ffd700, transparent); | |
| height: 2px; | |
| } | |
| .court-line:nth-child(1) { | |
| top: 20%; | |
| left: 0; | |
| width: 100%; | |
| animation: float 6s ease-in-out infinite; | |
| } | |
| .court-line:nth-child(2) { | |
| top: 60%; | |
| left: 0; | |
| width: 100%; | |
| animation: float 8s ease-in-out infinite reverse; | |
| } | |
| @keyframes float { | |
| 0%, | |
| 100% { | |
| transform: translateY(0px); | |
| } | |
| 50% { | |
| transform: translateY(-10px); | |
| } | |
| } |