File size: 3,752 Bytes
3d56650 e66223c 3d56650 1114164 3d56650 e66223c 3d56650 1114164 3d56650 43608e9 1114164 43608e9 3d56650 43608e9 1114164 43608e9 1114164 43608e9 3d56650 1114164 43608e9 1114164 43608e9 1114164 3d56650 1114164 e66223c 3d56650 1114164 43608e9 3d56650 43608e9 1114164 43608e9 1114164 43608e9 1114164 3d56650 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
/* 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) !important;
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%;
}
} |