Sergidev commited on
Commit
697e0da
1 Parent(s): 307c7a3

Update static/styles.css

Browse files
Files changed (1) hide show
  1. static/styles.css +109 -23
static/styles.css CHANGED
@@ -7,83 +7,169 @@ body {
7
  }
8
 
9
  #game-container {
10
- position: relative;
11
  width: 100%;
12
  max-width: 800px;
 
13
  }
14
 
15
  #info {
16
- margin-bottom: 20px;
17
  font-size: 18px;
18
- text-align: center;
19
  }
20
 
21
  #coin {
22
  width: 200px;
23
  height: 200px;
24
  border-radius: 50%;
 
 
25
  display: flex;
26
  justify-content: center;
27
  align-items: center;
28
  font-size: 72px;
29
- cursor: pointer;
30
- margin: 0 auto 20px;
 
 
 
 
 
31
  }
32
 
33
  #shop {
34
  display: flex;
35
  flex-wrap: wrap;
36
  justify-content: center;
37
- width: 100%;
38
- margin-top: 20px;
39
  }
40
 
41
  .shop-item {
 
 
42
  text-align: center;
43
- padding: 5px;
44
- border: 1px solid #ccc;
45
- border-radius: 5px;
46
  cursor: pointer;
47
- margin: 5px;
48
- font-size: 12px;
49
  }
50
 
51
  .shop-coin {
52
- width: 40px;
53
- height: 40px;
54
  border-radius: 50%;
55
- margin: 0 auto 5px;
56
  display: flex;
57
- flex-direction: column;
58
  justify-content: center;
59
  align-items: center;
60
- font-size: 10px;
 
 
 
61
  }
62
 
63
- #generate-coin {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  display: block;
65
- margin: 20px auto 0;
 
 
66
  padding: 10px 20px;
67
  font-size: 16px;
68
  cursor: pointer;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  }
70
 
71
  #loading-overlay {
72
- position: absolute;
 
73
  top: 0;
74
  left: 0;
75
  width: 100%;
76
  height: 100%;
77
  background-color: rgba(0, 0, 0, 0.5);
78
- display: none;
79
  justify-content: center;
80
  align-items: center;
81
- z-index: 1000;
82
  }
83
 
84
  .loading-message {
85
  background-color: white;
86
  padding: 20px;
87
  border-radius: 5px;
88
- font-size: 18px;
89
  }
 
7
  }
8
 
9
  #game-container {
 
10
  width: 100%;
11
  max-width: 800px;
12
+ text-align: center;
13
  }
14
 
15
  #info {
 
16
  font-size: 18px;
17
+ margin-bottom: 20px;
18
  }
19
 
20
  #coin {
21
  width: 200px;
22
  height: 200px;
23
  border-radius: 50%;
24
+ margin: 0 auto 20px;
25
+ cursor: pointer;
26
  display: flex;
27
  justify-content: center;
28
  align-items: center;
29
  font-size: 72px;
30
+ color: #333;
31
+ background-color: #ffd700;
32
+ transition: transform 0.3s ease;
33
+ }
34
+
35
+ #coin:hover {
36
+ transform: scale(1.05);
37
  }
38
 
39
  #shop {
40
  display: flex;
41
  flex-wrap: wrap;
42
  justify-content: center;
43
+ gap: 10px;
44
+ margin-bottom: 20px;
45
  }
46
 
47
  .shop-item {
48
+ position: relative;
49
+ width: 80px;
50
  text-align: center;
 
 
 
51
  cursor: pointer;
 
 
52
  }
53
 
54
  .shop-coin {
55
+ width: 60px;
56
+ height: 60px;
57
  border-radius: 50%;
58
+ margin: 0 auto;
59
  display: flex;
 
60
  justify-content: center;
61
  align-items: center;
62
+ font-size: 12px;
63
+ font-weight: bold;
64
+ color: #fff;
65
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
66
  }
67
 
68
+ .coin-name {
69
+ font-size: 12px;
70
+ margin-top: 5px;
71
+ }
72
+
73
+ .coin-tooltip {
74
+ display: none;
75
+ position: absolute;
76
+ background-color: #333;
77
+ color: #fff;
78
+ padding: 10px;
79
+ border-radius: 5px;
80
+ z-index: 1;
81
+ width: 150px;
82
+ left: 50%;
83
+ transform: translateX(-50%);
84
+ bottom: 100%;
85
+ font-size: 12px;
86
+ text-align: left;
87
+ }
88
+
89
+ .shop-item:hover .coin-tooltip {
90
  display: block;
91
+ }
92
+
93
+ #generate-coin {
94
  padding: 10px 20px;
95
  font-size: 16px;
96
  cursor: pointer;
97
+ background-color: #4CAF50;
98
+ color: white;
99
+ border: none;
100
+ border-radius: 5px;
101
+ margin-bottom: 20px;
102
+ }
103
+
104
+ #leaderboard {
105
+ margin-top: 20px;
106
+ }
107
+
108
+ #leaderboard table {
109
+ width: 100%;
110
+ border-collapse: collapse;
111
+ }
112
+
113
+ #leaderboard th, #leaderboard td {
114
+ padding: 8px;
115
+ text-align: left;
116
+ border-bottom: 1px solid #ddd;
117
+ }
118
+
119
+ #leaderboard th {
120
+ background-color: #f2f2f2;
121
+ }
122
+
123
+ .modal {
124
+ display: none;
125
+ position: fixed;
126
+ z-index: 1;
127
+ left: 0;
128
+ top: 0;
129
+ width: 100%;
130
+ height: 100%;
131
+ background-color: rgba(0,0,0,0.4);
132
+ }
133
+
134
+ .modal-content {
135
+ background-color: #fefefe;
136
+ margin: 15% auto;
137
+ padding: 20px;
138
+ border: 1px solid #888;
139
+ width: 300px;
140
+ text-align: center;
141
+ }
142
+
143
+ #initials {
144
+ margin: 10px 0;
145
+ padding: 5px;
146
+ width: 50px;
147
+ text-align: center;
148
+ font-size: 18px;
149
+ }
150
+
151
+ #submit-score, #play-again {
152
+ margin-top: 10px;
153
+ padding: 5px 10px;
154
+ font-size: 16px;
155
+ cursor: pointer;
156
  }
157
 
158
  #loading-overlay {
159
+ display: none;
160
+ position: fixed;
161
  top: 0;
162
  left: 0;
163
  width: 100%;
164
  height: 100%;
165
  background-color: rgba(0, 0, 0, 0.5);
166
+ z-index: 1000;
167
  justify-content: center;
168
  align-items: center;
 
169
  }
170
 
171
  .loading-message {
172
  background-color: white;
173
  padding: 20px;
174
  border-radius: 5px;
 
175
  }