Spaces:
Running
Running
| body { | |
| margin: 0; | |
| padding: 0; | |
| font-family: 'Press Start 2P', cursive; | |
| background-color: #0f0f1a; | |
| color: white; | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .about-container { | |
| max-width: 1200px; | |
| margin: 2rem auto; | |
| padding: 1rem; | |
| flex: 1; | |
| } | |
| .about-section { | |
| margin-bottom: 3rem; | |
| } | |
| .about-section h2 { | |
| color: #ff6b6b; | |
| margin-bottom: 1.5rem; | |
| } | |
| .about-section p { | |
| line-height: 1.6; | |
| margin-bottom: 1rem; | |
| } | |
| .game-instructions { | |
| padding-left: 1.5rem; | |
| } | |
| .game-instructions li { | |
| margin-bottom: 0.8rem; | |
| } | |
| .features-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | |
| gap: 1.5rem; | |
| } | |
| .feature-card { | |
| background: rgba(255, 255, 255, 0.05); | |
| padding: 1.5rem; | |
| border-radius: 8px; | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| .feature-card h3 { | |
| color: #69f0ae; | |
| margin-bottom: 0.5rem; | |
| } | |
| .about-section img { | |
| max-width: 100%; | |
| border-radius: 8px; | |
| margin-top: 1rem; | |
| border: 2px solid #ff6b6b; | |
| } | |
| #game-container { | |
| flex: 1; | |
| position: relative; | |
| width: 100%; | |
| height: 100vh; | |
| overflow: hidden; | |
| background: #1a1a2e; | |
| } | |
| #gameCanvas { | |
| display: block; | |
| width: 100%; | |
| height: 100%; | |
| } | |
| #game-ui { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| padding: 1rem; | |
| pointer-events: none; | |
| z-index: 10; | |
| } | |
| #score-display, #time-display { | |
| font-size: 1.2rem; | |
| margin-bottom: 1rem; | |
| color: #ff6b6b; | |
| text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); | |
| } | |
| #time-display.warning { | |
| color: #ff0000; | |
| animation: pulse 0.5s infinite; | |
| } | |
| #leaderboard { | |
| background: rgba(26, 26, 46, 0.8); | |
| padding: 1rem; | |
| border-radius: 5px; | |
| max-width: 200px; | |
| font-size: 0.8rem; | |
| } | |
| #leaderboard h3 { | |
| margin: 0 0 0.5rem 0; | |
| color: #ff6b6b; | |
| font-size: 0.9rem; | |
| } | |
| .player-row { | |
| display: flex; | |
| justify-content: space-between; | |
| margin-bottom: 0.3rem; | |
| } | |
| .player-row.you { | |
| color: #69f0ae; | |
| font-weight: bold; | |
| } | |
| .wormate-btn { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| padding: 1rem 2rem; | |
| font-family: 'Press Start 2P', cursive; | |
| font-size: 1rem; | |
| background: #ff6b6b; | |
| color: white; | |
| border: none; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| pointer-events: auto; | |
| transition: all 0.3s; | |
| box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); | |
| z-index: 20; | |
| } | |
| .wormate-btn:hover { | |
| background: #ff5252; | |
| transform: translate(-50%, -50%) scale(1.05); | |
| } | |
| ======= | |
| #gameCanvas { | |
| display: block; | |
| width: 100%; | |
| height: 100%; | |
| } | |
| #game-ui { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| padding: 1rem; | |
| pointer-events: none; | |
| } | |
| #score-display { | |
| font-size: 1.2rem; | |
| margin-bottom: 1rem; | |
| color: #ff6b6b; | |
| text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); | |
| } | |
| #leaderboard { | |
| background: rgba(26, 26, 46, 0.8); | |
| padding: 1rem; | |
| border-radius: 5px; | |
| max-width: 200px; | |
| } | |
| #leaderboard h3 { | |
| margin: 0 0 0.5rem 0; | |
| font-size: 0.8rem; | |
| color: #ff6b6b; | |
| } | |
| .player-row { | |
| display: flex; | |
| justify-content: space-between; | |
| margin-bottom: 0.3rem; | |
| font-size: 0.7rem; | |
| } | |
| .player-row.you { | |
| color: #69f0ae; | |
| } | |
| .wormate-btn { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| padding: 1rem 2rem; | |
| font-family: 'Press Start 2P', cursive; | |
| font-size: 1rem; | |
| background: #ff6b6b; | |
| color: white; | |
| border: none; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| pointer-events: auto; | |
| transition: all 0.3s; | |
| box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); | |
| } | |
| .wormate-btn:hover { | |
| background: #ff5252; | |
| transform: translate(-50%, -50%) scale(1.05); | |
| } | |
| /* Info Sections */ | |
| .info-section { | |
| max-width: 1200px; | |
| margin: 2rem auto; | |
| padding: 2rem; | |
| text-align: center; | |
| background: rgba(255,255,255,0.05); | |
| border-radius: 8px; | |
| } | |
| .info-section h2 { | |
| color: #ff6b6b; | |
| margin-bottom: 1rem; | |
| } | |
| .info-link { | |
| display: inline-block; | |
| margin-top: 1rem; | |
| color: #69f0ae; | |
| text-decoration: none; | |
| transition: all 0.3s; | |
| } | |
| .info-link:hover { | |
| color: #ff6b6b; | |
| transform: translateX(5px); | |
| } | |
| /* Animations */ | |
| @keyframes pulse { | |
| 0% { | |
| transform: scale(1); | |
| text-shadow: 0 0 5px rgba(255, 0, 0, 0.5); | |
| } | |
| 50% { | |
| transform: scale(1.2); | |
| text-shadow: 0 0 15px rgba(255, 0, 0, 0.8); | |
| } | |
| 100% { | |
| transform: scale(1); | |
| text-shadow: 0 0 5px rgba(255, 0, 0, 0.5); | |
| } | |
| } | |
| .time-critical { | |
| color: #ff0000 ; | |
| animation: pulse 0.5s infinite; | |
| } | |
| .time-warning { | |
| color: #ff6b6b; | |
| animation: pulse 1s infinite; | |
| } | |