Spaces:
Running
Running
| /* Reset & Base Styles */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; | |
| line-height: 1.6; | |
| color: #333; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| min-height: 100vh; | |
| padding: 20px; | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| } | |
| /* Hero Section */ | |
| .hero { | |
| text-align: center; | |
| padding: 60px 20px; | |
| background: rgba(255, 255, 255, 0.95); | |
| border-radius: 20px; | |
| margin-bottom: 30px; | |
| box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); | |
| animation: fadeInDown 0.8s ease-out; | |
| } | |
| .title { | |
| font-size: 4rem; | |
| font-weight: 800; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| margin-bottom: 10px; | |
| animation: pulse 2s ease-in-out infinite; | |
| } | |
| .emoji { | |
| display: inline-block; | |
| animation: bounce 1s ease-in-out infinite; | |
| } | |
| .subtitle { | |
| font-size: 1.5rem; | |
| color: #666; | |
| margin-bottom: 10px; | |
| } | |
| .tagline { | |
| font-size: 1.2rem; | |
| color: #888; | |
| font-style: italic; | |
| } | |
| /* Preview Section */ | |
| .preview { | |
| background: rgba(255, 255, 255, 0.95); | |
| border-radius: 20px; | |
| padding: 40px; | |
| margin-bottom: 30px; | |
| box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); | |
| animation: fadeIn 1s ease-out; | |
| } | |
| .robot-display { | |
| text-align: center; | |
| } | |
| .robot-icon { | |
| font-size: 8rem; | |
| margin-bottom: 30px; | |
| animation: float 3s ease-in-out infinite; | |
| } | |
| .direction-indicators { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 20px; | |
| } | |
| .direction-row { | |
| display: flex; | |
| gap: 100px; | |
| } | |
| .direction { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 20px; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| border-radius: 15px; | |
| color: white; | |
| min-width: 100px; | |
| cursor: pointer; | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| } | |
| .direction:hover { | |
| transform: scale(1.1); | |
| box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5); | |
| } | |
| .direction .arrow { | |
| font-size: 2.5rem; | |
| font-weight: bold; | |
| } | |
| .direction .label { | |
| font-size: 1rem; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| } | |
| /* Section Styles */ | |
| section { | |
| background: rgba(255, 255, 255, 0.95); | |
| border-radius: 20px; | |
| padding: 40px; | |
| margin-bottom: 30px; | |
| box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); | |
| animation: fadeInUp 0.8s ease-out; | |
| } | |
| h2 { | |
| font-size: 2.5rem; | |
| color: #667eea; | |
| margin-bottom: 30px; | |
| text-align: center; | |
| font-weight: 700; | |
| } | |
| /* Difficulty Modes */ | |
| .difficulty-modes { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) ; | |
| color: white; | |
| } | |
| .difficulty-modes h2 { | |
| color: white; | |
| } | |
| .difficulty-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); | |
| gap: 30px; | |
| } | |
| .difficulty-card { | |
| background: rgba(255, 255, 255, 0.95); | |
| padding: 30px; | |
| border-radius: 15px; | |
| text-align: center; | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .difficulty-card::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| height: 5px; | |
| background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); | |
| } | |
| .difficulty-card:hover { | |
| transform: translateY(-10px); | |
| box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); | |
| } | |
| .difficulty-badge { | |
| width: 60px; | |
| height: 60px; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 2rem; | |
| font-weight: bold; | |
| margin: 0 auto 20px; | |
| box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); | |
| } | |
| .difficulty-card h3 { | |
| color: #667eea; | |
| margin-bottom: 15px; | |
| font-size: 1.5rem; | |
| } | |
| .difficulty-card p { | |
| color: #666; | |
| margin-bottom: 10px; | |
| } | |
| .difficulty-hint { | |
| background: #f0f0f0; | |
| padding: 10px 15px; | |
| border-radius: 10px; | |
| font-size: 0.9rem; | |
| color: #555; | |
| font-style: italic; | |
| margin-top: 15px; | |
| } | |
| /* How to Play */ | |
| .steps { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | |
| gap: 30px; | |
| } | |
| .step { | |
| display: flex; | |
| gap: 20px; | |
| padding: 20px; | |
| background: #f8f9fa; | |
| border-radius: 15px; | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| } | |
| .step:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); | |
| } | |
| .step-number { | |
| flex-shrink: 0; | |
| width: 50px; | |
| height: 50px; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 1.5rem; | |
| font-weight: bold; | |
| } | |
| .step-content h3 { | |
| color: #333; | |
| margin-bottom: 10px; | |
| font-size: 1.2rem; | |
| } | |
| .step-content p { | |
| color: #666; | |
| } | |
| /* Controls */ | |
| .control-section-title { | |
| color: #667eea; | |
| margin: 30px 0 20px; | |
| font-size: 1.5rem; | |
| text-align: left; | |
| padding-bottom: 10px; | |
| border-bottom: 3px solid #667eea; | |
| } | |
| .controls-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 20px; | |
| margin-bottom: 30px; | |
| } | |
| .controls-grid-small { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | |
| gap: 20px; | |
| margin-bottom: 30px; | |
| max-width: 600px; | |
| margin-left: auto; | |
| margin-right: auto; | |
| } | |
| .control-card { | |
| text-align: center; | |
| padding: 30px; | |
| background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); | |
| border-radius: 15px; | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| } | |
| .control-card:hover { | |
| transform: translateY(-10px); | |
| box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); | |
| } | |
| .control-icon { | |
| font-size: 4rem; | |
| margin-bottom: 15px; | |
| color: #667eea; | |
| } | |
| .control-card h3 { | |
| color: #333; | |
| margin-bottom: 10px; | |
| font-size: 1.3rem; | |
| } | |
| .control-card p { | |
| color: #666; | |
| margin-bottom: 15px; | |
| } | |
| .tilt-indicator { | |
| background: #667eea; | |
| color: white; | |
| padding: 8px 15px; | |
| border-radius: 20px; | |
| font-size: 0.9rem; | |
| font-weight: 600; | |
| display: inline-block; | |
| } | |
| .control-tip { | |
| background: #fff3cd; | |
| border-left: 4px solid #ffc107; | |
| padding: 15px 20px; | |
| border-radius: 10px; | |
| color: #856404; | |
| font-size: 1.1rem; | |
| text-align: center; | |
| } | |
| /* Features */ | |
| .feature-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | |
| gap: 30px; | |
| } | |
| .feature-card { | |
| text-align: center; | |
| padding: 30px; | |
| background: #f8f9fa; | |
| border-radius: 15px; | |
| transition: transform 0.3s ease; | |
| } | |
| .feature-card:hover { | |
| transform: scale(1.05); | |
| } | |
| .feature-icon { | |
| font-size: 3rem; | |
| margin-bottom: 15px; | |
| } | |
| .feature-card h3 { | |
| color: #333; | |
| margin-bottom: 10px; | |
| font-size: 1.3rem; | |
| } | |
| .feature-card p { | |
| color: #666; | |
| } | |
| /* Installation */ | |
| .code-block { | |
| background: #1e1e1e; | |
| border-radius: 10px; | |
| overflow: hidden; | |
| margin-top: 20px; | |
| } | |
| .code-header { | |
| background: #2d2d2d; | |
| padding: 10px 20px; | |
| border-bottom: 1px solid #444; | |
| } | |
| .code-title { | |
| color: #fff; | |
| font-size: 0.9rem; | |
| font-weight: 600; | |
| } | |
| pre { | |
| margin: 0; | |
| padding: 20px; | |
| overflow-x: auto; | |
| } | |
| code { | |
| color: #d4d4d4; | |
| font-family: 'Courier New', Courier, monospace; | |
| font-size: 0.95rem; | |
| line-height: 1.6; | |
| } | |
| /* Game States */ | |
| .states-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 20px; | |
| } | |
| .state-card { | |
| text-align: center; | |
| padding: 25px; | |
| background: #f8f9fa; | |
| border-radius: 15px; | |
| transition: transform 0.3s ease; | |
| } | |
| .state-card:hover { | |
| transform: translateY(-5px); | |
| } | |
| .state-icon { | |
| font-size: 3rem; | |
| margin-bottom: 15px; | |
| display: block; | |
| } | |
| .state-card h3 { | |
| color: #333; | |
| margin-bottom: 10px; | |
| font-size: 1.2rem; | |
| } | |
| .state-card p { | |
| color: #666; | |
| font-size: 0.95rem; | |
| } | |
| /* Footer */ | |
| .footer { | |
| text-align: center; | |
| padding: 30px; | |
| color: white; | |
| margin-top: 30px; | |
| } | |
| .footer p { | |
| margin-bottom: 10px; | |
| font-size: 1.1rem; | |
| } | |
| .heart { | |
| color: #ff6b6b; | |
| animation: heartbeat 1.5s ease-in-out infinite; | |
| } | |
| .tech-stack { | |
| font-size: 0.9rem; | |
| opacity: 0.8; | |
| } | |
| /* Animations */ | |
| @keyframes fadeInDown { | |
| from { | |
| opacity: 0; | |
| transform: translateY(-30px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| } | |
| to { | |
| opacity: 1; | |
| } | |
| } | |
| @keyframes fadeInUp { | |
| from { | |
| opacity: 0; | |
| transform: translateY(30px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { | |
| transform: scale(1); | |
| } | |
| 50% { | |
| transform: scale(1.02); | |
| } | |
| } | |
| @keyframes bounce { | |
| 0%, 100% { | |
| transform: translateY(0); | |
| } | |
| 50% { | |
| transform: translateY(-10px); | |
| } | |
| } | |
| @keyframes float { | |
| 0%, 100% { | |
| transform: translateY(0); | |
| } | |
| 50% { | |
| transform: translateY(-20px); | |
| } | |
| } | |
| @keyframes heartbeat { | |
| 0%, 100% { | |
| transform: scale(1); | |
| } | |
| 50% { | |
| transform: scale(1.1); | |
| } | |
| } | |
| /* Responsive Design */ | |
| @media (max-width: 768px) { | |
| .title { | |
| font-size: 2.5rem; | |
| } | |
| .subtitle { | |
| font-size: 1.2rem; | |
| } | |
| .robot-icon { | |
| font-size: 5rem; | |
| } | |
| .direction-row { | |
| gap: 40px; | |
| } | |
| h2 { | |
| font-size: 2rem; | |
| } | |
| .steps { | |
| grid-template-columns: 1fr; | |
| } | |
| section { | |
| padding: 25px; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| body { | |
| padding: 10px; | |
| } | |
| .title { | |
| font-size: 2rem; | |
| } | |
| .hero { | |
| padding: 40px 20px; | |
| } | |
| } | |