dcrey7 commited on
Commit
e66223c
·
verified ·
1 Parent(s): 3d56650

Update static/css/styles.css

Browse files
Files changed (1) hide show
  1. static/css/styles.css +12 -30
static/css/styles.css CHANGED
@@ -25,8 +25,9 @@
25
  }
26
 
27
  html, body {
 
28
  height: 100%;
29
- overflow: hidden; /* Prevent scrolling */
30
  }
31
 
32
  body {
@@ -34,9 +35,6 @@ body {
34
  background-color: var(--bg-primary);
35
  color: var(--text-primary);
36
  line-height: 1.6;
37
- display: flex;
38
- justify-content: center;
39
- align-items: center;
40
  }
41
 
42
  /* WebGL background container */
@@ -53,27 +51,18 @@ body {
53
  #game-container {
54
  position: relative;
55
  z-index: 2;
56
- width: 854px; /* YouTube standard width */
57
- height: 480px; /* YouTube standard height */
58
- margin: auto;
59
- padding: var(--spacing-lg);
60
  display: flex;
61
  flex-direction: column;
62
  align-items: center;
63
  justify-content: center;
64
- background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
65
- border-radius: 8px;
66
- overflow: hidden; /* Contain child elements */
67
  }
68
 
69
  /* Game pages styling */
70
  .game-page {
71
  display: none;
72
  width: 100%;
73
- height: 100%;
74
- position: absolute;
75
- top: 0;
76
- left: 0;
77
  padding: var(--spacing-lg);
78
  }
79
 
@@ -95,7 +84,6 @@ body {
95
  margin-bottom: var(--spacing-lg);
96
  text-transform: uppercase;
97
  letter-spacing: 0.2em;
98
- white-space: nowrap;
99
  }
100
 
101
  .title-emphasis {
@@ -124,26 +112,20 @@ body {
124
  cursor: not-allowed;
125
  }
126
 
127
- /* Rest of the styles remain the same... */
128
 
129
- /* Responsive design - Modified for fixed container size */
130
- @media (max-width: 900px) {
131
- #game-container {
132
- width: 640px; /* Smaller YouTube format */
133
- height: 360px;
134
- }
135
-
136
  .game-title {
137
  font-size: 3rem;
138
  }
 
 
 
 
139
  }
140
 
141
- @media (max-width: 680px) {
142
- #game-container {
143
- width: 426px; /* Mobile-friendly size */
144
- height: 240px;
145
- }
146
-
147
  .game-title {
148
  font-size: 2rem;
149
  }
 
25
  }
26
 
27
  html, body {
28
+ width: 100%;
29
  height: 100%;
30
+ overflow: hidden; /* Prevent scrolling while keeping full-screen layout */
31
  }
32
 
33
  body {
 
35
  background-color: var(--bg-primary);
36
  color: var(--text-primary);
37
  line-height: 1.6;
 
 
 
38
  }
39
 
40
  /* WebGL background container */
 
51
  #game-container {
52
  position: relative;
53
  z-index: 2;
54
+ width: 100%;
55
+ height: 100vh;
 
 
56
  display: flex;
57
  flex-direction: column;
58
  align-items: center;
59
  justify-content: center;
 
 
 
60
  }
61
 
62
  /* Game pages styling */
63
  .game-page {
64
  display: none;
65
  width: 100%;
 
 
 
 
66
  padding: var(--spacing-lg);
67
  }
68
 
 
84
  margin-bottom: var(--spacing-lg);
85
  text-transform: uppercase;
86
  letter-spacing: 0.2em;
 
87
  }
88
 
89
  .title-emphasis {
 
112
  cursor: not-allowed;
113
  }
114
 
115
+ /* Rest of the styles remain unchanged... */
116
 
117
+ /* Modified responsive design for full-screen layout */
118
+ @media (max-width: 768px) {
 
 
 
 
 
119
  .game-title {
120
  font-size: 3rem;
121
  }
122
+
123
+ .player-grid {
124
+ grid-template-columns: repeat(2, 1fr);
125
+ }
126
  }
127
 
128
+ @media (max-width: 480px) {
 
 
 
 
 
129
  .game-title {
130
  font-size: 2rem;
131
  }