ayush2917 commited on
Commit
31c5ef2
·
verified ·
1 Parent(s): 3595185

Update static/css/adventure.css

Browse files
Files changed (1) hide show
  1. static/css/adventure.css +123 -25
static/css/adventure.css CHANGED
@@ -1,95 +1,193 @@
 
1
  .container {
2
  max-width: 800px;
3
  margin: 0 auto;
4
  padding: 20px;
 
 
 
 
 
 
 
 
 
5
  }
6
 
 
7
  .adventure-game {
8
  position: relative;
9
  min-height: 500px;
10
- background-color: #f5f5f5;
11
  border-radius: 15px;
12
- padding: 20px;
13
- box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 
14
  }
15
 
 
16
  .scene-container {
17
  background-color: white;
18
  border-radius: 10px;
19
- padding: 20px;
20
- margin-bottom: 20px;
21
  min-height: 200px;
22
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
 
23
  }
24
 
25
  .scene-content {
26
- font-size: 1.1rem;
27
- line-height: 1.6;
28
- color: #333;
29
  }
30
 
 
31
  .choices-container {
32
  display: flex;
33
  flex-direction: column;
34
- gap: 10px;
 
35
  }
36
 
37
  .choice-btn {
38
- padding: 12px 20px;
39
- background-color: #8e44ad;
40
  color: white;
41
  border: none;
42
- border-radius: 25px;
43
  cursor: pointer;
44
- font-size: 1rem;
45
- transition: all 0.3s;
46
  text-align: center;
 
 
 
47
  }
48
 
49
  .choice-btn:hover {
50
- background-color: #732d91;
51
- transform: translateY(-2px);
 
52
  }
53
 
54
  .choice-btn:active {
55
  transform: translateY(0);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  }
57
 
58
  .restart-btn {
59
  background-color: #27ae60;
 
60
  }
61
 
62
  .restart-btn:hover {
63
  background-color: #219653;
64
  }
65
 
 
66
  .krishna-character {
67
  position: absolute;
68
  right: 30px;
69
  bottom: 30px;
70
- width: 150px;
71
- height: 150px;
 
72
  }
73
 
74
  .krishna-character img {
75
  width: 100%;
76
  height: auto;
77
- transition: all 0.3s;
 
78
  }
79
 
80
  .krishna-character:hover img {
81
- transform: scale(1.05);
82
  }
83
 
 
84
  @media (max-width: 768px) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  .krishna-character {
86
  position: static;
87
- margin: 20px auto;
88
  display: block;
 
 
89
  }
90
 
91
- .adventure-game {
92
- min-height: auto;
93
- padding-bottom: 100px;
94
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  }
 
1
+ /* Main container styles */
2
  .container {
3
  max-width: 800px;
4
  margin: 0 auto;
5
  padding: 20px;
6
+ font-family: 'Arial', sans-serif;
7
+ color: #333;
8
+ }
9
+
10
+ h1 {
11
+ color: #8e44ad;
12
+ text-align: center;
13
+ margin-bottom: 30px;
14
+ font-size: 2.2rem;
15
  }
16
 
17
+ /* Adventure game container */
18
  .adventure-game {
19
  position: relative;
20
  min-height: 500px;
21
+ background-color: #f9f5ff;
22
  border-radius: 15px;
23
+ padding: 25px;
24
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
25
+ border: 2px solid #e0c8f5;
26
  }
27
 
28
+ /* Scene container styles */
29
  .scene-container {
30
  background-color: white;
31
  border-radius: 10px;
32
+ padding: 25px;
33
+ margin-bottom: 25px;
34
  min-height: 200px;
35
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
36
+ border: 1px solid #e0c8f5;
37
  }
38
 
39
  .scene-content {
40
+ font-size: 1.15rem;
41
+ line-height: 1.7;
42
+ color: #444;
43
  }
44
 
45
+ /* Choices container styles */
46
  .choices-container {
47
  display: flex;
48
  flex-direction: column;
49
+ gap: 12px;
50
+ margin-top: 20px;
51
  }
52
 
53
  .choice-btn {
54
+ padding: 14px 25px;
55
+ background-color: #9b59b6;
56
  color: white;
57
  border: none;
58
+ border-radius: 30px;
59
  cursor: pointer;
60
+ font-size: 1.05rem;
61
+ transition: all 0.3s ease;
62
  text-align: center;
63
+ box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
64
+ position: relative;
65
+ overflow: hidden;
66
  }
67
 
68
  .choice-btn:hover {
69
+ background-color: #8e44ad;
70
+ transform: translateY(-3px);
71
+ box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
72
  }
73
 
74
  .choice-btn:active {
75
  transform: translateY(0);
76
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
77
+ }
78
+
79
+ .choice-btn::after {
80
+ content: '';
81
+ position: absolute;
82
+ top: 50%;
83
+ left: 50%;
84
+ width: 5px;
85
+ height: 5px;
86
+ background: rgba(255, 255, 255, 0.5);
87
+ opacity: 0;
88
+ border-radius: 100%;
89
+ transform: scale(1, 1) translate(-50%);
90
+ transform-origin: 50% 50%;
91
+ }
92
+
93
+ .choice-btn:focus:not(:active)::after {
94
+ animation: ripple 0.6s ease-out;
95
+ }
96
+
97
+ @keyframes ripple {
98
+ 0% {
99
+ transform: scale(0, 0);
100
+ opacity: 0.5;
101
+ }
102
+ 100% {
103
+ transform: scale(20, 20);
104
+ opacity: 0;
105
+ }
106
  }
107
 
108
  .restart-btn {
109
  background-color: #27ae60;
110
+ margin-top: 30px;
111
  }
112
 
113
  .restart-btn:hover {
114
  background-color: #219653;
115
  }
116
 
117
+ /* Krishna character styles */
118
  .krishna-character {
119
  position: absolute;
120
  right: 30px;
121
  bottom: 30px;
122
+ width: 180px;
123
+ height: 180px;
124
+ transition: all 0.5s ease;
125
  }
126
 
127
  .krishna-character img {
128
  width: 100%;
129
  height: auto;
130
+ transition: all 0.3s ease;
131
+ filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
132
  }
133
 
134
  .krishna-character:hover img {
135
+ transform: scale(1.05) rotate(-5deg);
136
  }
137
 
138
+ /* Responsive styles */
139
  @media (max-width: 768px) {
140
+ .container {
141
+ padding: 15px;
142
+ }
143
+
144
+ h1 {
145
+ font-size: 1.8rem;
146
+ }
147
+
148
+ .adventure-game {
149
+ padding: 20px;
150
+ min-height: auto;
151
+ padding-bottom: 180px;
152
+ }
153
+
154
  .krishna-character {
155
  position: static;
156
+ margin: 30px auto 20px;
157
  display: block;
158
+ width: 150px;
159
+ height: 150px;
160
  }
161
 
162
+ .choice-btn {
163
+ padding: 12px 20px;
 
164
  }
165
+ }
166
+
167
+ /* Animation for scene transitions */
168
+ @keyframes fadeIn {
169
+ from { opacity: 0; transform: translateY(10px); }
170
+ to { opacity: 1; transform: translateY(0); }
171
+ }
172
+
173
+ .scene-content {
174
+ animation: fadeIn 0.5s ease-out;
175
+ }
176
+
177
+ /* Loading indicator */
178
+ .loading-message {
179
+ text-align: center;
180
+ font-style: italic;
181
+ color: #7f8c8d;
182
+ }
183
+
184
+ .loading-message::after {
185
+ content: '...';
186
+ animation: dots 1.5s steps(5, end) infinite;
187
+ }
188
+
189
+ @keyframes dots {
190
+ 0%, 20% { content: '.'; }
191
+ 40% { content: '..'; }
192
+ 60%, 100% { content: '...'; }
193
  }