Spaces:
Running
Running
Download style.css from murapolo/isoshooter: direct link, hf CLI and curl.
- Browser
- Download file 7.55 kB
-
https://huggingface.co/spaces/murapolo/isoshooter/resolve/main/style.css
- Command line
-
hf download hf://spaces/murapolo/isoshooter/style.css
-
curl -L -o style.css https://huggingface.co/spaces/murapolo/isoshooter/resolve/main/style.css
7.55 kB
| /* Apply box-sizing globally for easier layout */ | |
| * { | |
| box-sizing: border-box; | |
| } | |
| body { | |
| /* Using Merriweather as the base font */ | |
| font-family: 'Merriweather', serif; | |
| /* Dark brown text for readability */ | |
| color: #4d3a2a; | |
| /* Subtle repeating background texture (replace URL if needed) */ | |
| background-color: #f4e8c1; /* Fallback color */ | |
| background-image: url('https://www.transparenttextures.com/patterns/wood-pattern.png'); /* Example wood texture */ | |
| margin: 0; | |
| padding: 20px; | |
| } | |
| #game-container { | |
| max-width: 850px; /* Slightly wider */ | |
| margin: 20px auto; | |
| /* Aged paper background */ | |
| background-color: #fffaf0; /* Off-white like parchment */ | |
| /* Thick border suggesting a wooden frame */ | |
| border: 8px solid #8b4513; /* Darker, thicker brown border */ | |
| border-image: url('https://www.transparenttextures.com/patterns/lined-paper.png') 10 round; /* Example paper edge, adjust if needed */ | |
| padding: 25px; | |
| /* More pronounced shadow */ | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); | |
| border-radius: 5px; /* Optional: slight rounding */ | |
| } | |
| h1 { | |
| /* Using the stylized Rye font for the main title */ | |
| font-family: 'Rye', cursive; | |
| text-align: center; | |
| color: #5a3d2b; /* Darker, richer brown */ | |
| font-size: 2.8em; /* Larger title */ | |
| margin-bottom: 25px; | |
| padding-bottom: 15px; | |
| /* Simple underline instead of dashed */ | |
| border-bottom: 2px solid #a0522d; /* Sienna color */ | |
| text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); | |
| } | |
| h2 { | |
| font-family: 'Merriweather', serif; | |
| font-weight: 700; /* Bold */ | |
| text-align: center; | |
| color: #8b4513; /* Same as border */ | |
| border-bottom: 1px solid #d2b48c; /* Lighter brown */ | |
| padding-bottom: 10px; | |
| margin-top: 30px; | |
| margin-bottom: 20px; | |
| } | |
| /* --- Status Bar --- */ | |
| #status-bar { | |
| background-color: #d2b48c; /* Tan color, like worn leather */ | |
| border: 2px solid #a0522d; /* Sienna border */ | |
| padding: 12px 15px; | |
| margin-bottom: 25px; | |
| display: flex; | |
| justify-content: space-around; | |
| flex-wrap: wrap; | |
| border-radius: 4px; | |
| font-size: 0.95em; | |
| box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1); | |
| color: #4d3a2a; /* Ensure good contrast */ | |
| } | |
| #status-bar div { | |
| margin: 5px 10px; | |
| font-weight: bold; /* Make status text bolder */ | |
| } | |
| #status-bar span { | |
| font-weight: normal; /* Normal weight for values */ | |
| color: #000; /* Black for money/stats values */ | |
| margin-left: 5px; | |
| } | |
| /* --- Main Content Area --- */ | |
| #main-content ul { | |
| list-style: none; | |
| padding: 0; | |
| } | |
| /* Styling list items like cards or entries */ | |
| #main-content li { | |
| background-color: #fdf5e6; /* Lighter parchment/linen */ | |
| border: 1px solid #c1a97a; /* Subtle border */ | |
| margin-bottom: 15px; | |
| padding: 15px 20px; | |
| border-radius: 4px; | |
| box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); | |
| transition: transform 0.2s ease, box-shadow 0.2s ease; | |
| } | |
| #main-content li:hover { | |
| transform: translateY(-2px); /* Slight lift on hover */ | |
| box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.15); | |
| } | |
| /* --- Buttons --- */ | |
| /* General button style */ | |
| button { | |
| font-family: 'Merriweather', serif; /* Consistent font */ | |
| background-color: #8b4513; /* Dark brown */ | |
| color: #fdf5e6; /* Light parchment text */ | |
| border: 1px solid #5a3d2b; /* Darker border */ | |
| padding: 10px 18px; | |
| cursor: pointer; | |
| border-radius: 4px; | |
| font-size: 0.9em; | |
| font-weight: bold; | |
| text-transform: uppercase; /* Make text uppercase */ | |
| letter-spacing: 0.5px; | |
| transition: background-color 0.2s ease, transform 0.1s ease; | |
| box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); | |
| margin-left: 10px; /* Default margin */ | |
| } | |
| button:hover { | |
| background-color: #a0522d; /* Sienna on hover */ | |
| transform: translateY(-1px); /* Slight lift */ | |
| box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); | |
| } | |
| button:active { | |
| transform: translateY(0px); /* Press down effect */ | |
| box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); | |
| } | |
| /* Buttons directly within main content (like phase navigation) */ | |
| #main-content > button { | |
| display: block; | |
| margin: 25px auto 10px; /* Centered with more margin */ | |
| padding: 12px 30px; /* Larger padding */ | |
| font-size: 1em; | |
| } | |
| /* Buttons inside list items (like Hire, Buy, Choose Plan) */ | |
| #main-content li button { | |
| float: right; /* Align to the right */ | |
| margin-top: -5px; /* Adjust vertical alignment */ | |
| margin-left: 15px; | |
| padding: 8px 15px; /* Slightly smaller */ | |
| font-size: 0.85em; | |
| } | |
| /* --- Robbery Phase Specific Styling --- */ | |
| #robbery-log { | |
| background-color: #f5f5dc; /* Beige like telegram paper */ | |
| border: 1px dashed #aaa; | |
| padding: 20px; | |
| margin-bottom: 20px; | |
| min-height: 100px; | |
| border-radius: 3px; | |
| white-space: pre-wrap; | |
| font-style: italic; /* Italicize descriptions */ | |
| box-shadow: inset 1px 1px 4px rgba(0, 0, 0, 0.1); | |
| } | |
| /* Choice buttons */ | |
| #choices button { | |
| display: block; | |
| width: 100%; | |
| margin-bottom: 10px; | |
| text-align: left; | |
| padding: 12px 15px; | |
| background-color: #cd853f; /* Peru - slightly lighter brown */ | |
| border-color: #8b4513; | |
| color: #fff; /* White text for contrast */ | |
| text-transform: none; /* Normal case for choices */ | |
| font-weight: normal; | |
| font-size: 1em; | |
| } | |
| #choices button:hover { | |
| background-color: #d2a679; /* Lighter on hover */ | |
| color: #4d3a2a; | |
| } | |
| .stat-requirement { | |
| font-size: 0.85em; | |
| color: rgba(255, 255, 255, 0.8); /* Lighter text for requirement */ | |
| margin-left: 15px; | |
| font-style: italic; | |
| } | |
| #choices button:hover .stat-requirement { | |
| color: rgba(77, 58, 42, 0.8); /* Darker on hover */ | |
| } | |
| /* Health Display */ | |
| #squad-health-display { | |
| margin-bottom: 20px; | |
| padding: 10px 15px; | |
| background-color: rgba(139, 69, 19, 0.05); /* Very light brown tint */ | |
| border: 1px solid #e0d6b3; /* Light border */ | |
| border-radius: 3px; | |
| font-size: 0.9em; | |
| } | |
| .cowboy-health { | |
| margin-right: 15px; | |
| display: inline-block; | |
| border: none; /* Remove border */ | |
| padding: 2px 0; | |
| } | |
| .low-health { | |
| color: #d98000; /* Orange */ | |
| font-weight: bold; | |
| } | |
| .critical-health { | |
| color: #c00; /* Red */ | |
| font-weight: bold; | |
| } | |
| #roll-result-display { | |
| margin-top: 20px; | |
| padding: 10px; | |
| background-color: #e8e1ca; | |
| border-radius: 3px; | |
| font-weight: bold; | |
| text-align: center; | |
| border: 1px solid #d2b48c; | |
| } | |
| /* --- Equipment Phase Squad List --- */ | |
| #squad-manage-list li { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| background-color: #faf0e6; /* Slightly different bg */ | |
| padding: 10px 15px; | |
| } | |
| #squad-manage-list select { | |
| margin-left: 10px; | |
| padding: 5px 8px; | |
| font-family: inherit; | |
| background-color: #fff; | |
| border: 1px solid #c1a97a; | |
| border-radius: 3px; | |
| } | |
| /* --- Result/Game Over Phases --- */ | |
| #phase-results, #game-over { | |
| text-align: center; | |
| padding: 30px; | |
| } | |
| #game-over { | |
| color: #a00; /* Darker red */ | |
| background-color: rgba(255, 0, 0, 0.05); | |
| border: 2px solid #a00; | |
| border-radius: 5px; | |
| } | |
| #game-over h2 { | |
| color: #a00; | |
| border: none; | |
| } | |
| #result-message { | |
| font-size: 1.1em; | |
| margin-bottom: 15px; | |
| font-weight: bold; | |
| } | |
| #phase-results button, #game-over button { | |
| margin: 10px; /* Space out buttons */ | |
| } |