Spaces:
Sleeping
Sleeping
Download static/css/styles.css from Mistral-AI-Game-Jam/team_16trial: direct link, hf CLI and curl.
- Browser
- Download file 3.75 kB
-
https://huggingface.co/spaces/Mistral-AI-Game-Jam/team_16trial/resolve/main/static/css/styles.css
- Command line
-
hf download hf://spaces/Mistral-AI-Game-Jam/team_16trial/static/css/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/Mistral-AI-Game-Jam/team_16trial/resolve/main/static/css/styles.css
3.75 kB
| /* Base styling and CSS variables for consistent theming */ | |
| :root { | |
| /* Color palette */ | |
| --bg-primary: #0a0a0a; | |
| --bg-secondary: #1a1a1a; | |
| --text-primary: #ffffff; | |
| --text-secondary: #cccccc; | |
| --accent-red: #ff0000; | |
| --accent-green: #00ff00; | |
| /* Animation timings */ | |
| --transition-speed: 0.3s; | |
| /* Spacing units */ | |
| --spacing-sm: 0.5rem; | |
| --spacing-md: 1rem; | |
| --spacing-lg: 2rem; | |
| } | |
| /* Global reset and base styles */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| html, body { | |
| width: 100%; | |
| height: 100%; | |
| overflow: hidden; | |
| } | |
| body { | |
| font-family: 'Pixelify Sans', sans-serif; | |
| background-color: var(--bg-primary); | |
| color: var(--text-primary); | |
| line-height: 1.6; | |
| } | |
| /* WebGL background container */ | |
| #webgl-background { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100vw; | |
| height: 100vh; | |
| z-index: 1; | |
| } | |
| /* Main game container */ | |
| #game-container { | |
| position: relative; | |
| z-index: 2; | |
| width: 100%; | |
| height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| /* Game pages styling */ | |
| .game-page { | |
| display: none; | |
| width: 100%; | |
| padding: var(--spacing-lg); | |
| text-align: center; | |
| } | |
| .game-page.active { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| animation: fadeIn 0.5s ease-in-out; | |
| } | |
| /* Landing page specific styles */ | |
| #landing-page { | |
| text-align: center; | |
| } | |
| /* Game title styling */ | |
| .game-title { | |
| font-size: 4rem; | |
| margin-bottom: var(--spacing-lg); | |
| text-transform: uppercase; | |
| letter-spacing: 0.2em; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .title-not { | |
| color: var(--text-primary); | |
| } | |
| .title-emphasis { | |
| color: var(--accent-red) ; | |
| font-weight: bold; | |
| } | |
| /* Button styles */ | |
| .button { | |
| background: transparent; | |
| border: 2px solid var(--text-primary); | |
| color: var(--text-primary); | |
| padding: var(--spacing-md) var(--spacing-lg); | |
| font-family: 'Pixelify Sans', sans-serif; | |
| font-size: 1.2rem; | |
| cursor: pointer; | |
| transition: all var(--transition-speed) ease; | |
| min-width: 150px; | |
| text-transform: uppercase; | |
| margin: 0.5rem; | |
| } | |
| .button:hover:not(:disabled) { | |
| background: var(--text-primary); | |
| color: var(--bg-primary); | |
| } | |
| .button:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| } | |
| /* Player setup specific styles */ | |
| .player-grid { | |
| display: flex; | |
| justify-content: center; | |
| gap: var(--spacing-lg); | |
| margin: var(--spacing-lg) 0; | |
| } | |
| .player-card { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: var(--spacing-sm); | |
| } | |
| .player-circle { | |
| width: 60px; | |
| height: 60px; | |
| border: 2px solid var(--text-primary); | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 1.5rem; | |
| background: transparent; | |
| transition: all var(--transition-speed) ease; | |
| } | |
| .player-name { | |
| font-size: 1rem; | |
| color: var(--text-secondary); | |
| margin-top: 0.5rem; | |
| } | |
| /* Button container for setup page */ | |
| .button-container { | |
| display: flex; | |
| gap: var(--spacing-md); | |
| margin-top: var(--spacing-lg); | |
| } | |
| /* Animation keyframes */ | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(20px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| /* Responsive design */ | |
| @media (max-width: 768px) { | |
| .game-title { | |
| font-size: 3rem; | |
| } | |
| .player-grid { | |
| flex-wrap: wrap; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| .game-title { | |
| font-size: 2rem; | |
| } | |
| .button { | |
| width: 100%; | |
| } | |
| } |