Shreyas094 commited on
Commit
c5f68ca
·
verified ·
1 Parent(s): a4ddcd8

Update frontend/styles.css

Browse files
Files changed (1) hide show
  1. frontend/styles.css +189 -261
frontend/styles.css CHANGED
@@ -1,261 +1,189 @@
1
- @keyframes gradientBG {
2
- 0% {
3
- background-position: 0 50%;
4
- }
5
- 50% {
6
- background-position: 100% 50%;
7
- }
8
- 100% {
9
- background-position: 0 50%;
10
- }
11
- }
12
-
13
- html {
14
- scroll-behavior: smooth;
15
- }
16
-
17
- body {
18
- font-family: 'Montserrat', sans-serif;
19
- color: #fff;
20
- line-height: 1.6;
21
- background-color: #1e272e;
22
- }
23
-
24
- .landing {
25
- display: flex;
26
- justify-content: center;
27
- align-items: center;
28
- height: 100vh;
29
- text-align: center;
30
- }
31
-
32
- .landing h1 {
33
- font-size: 3.5rem;
34
- font-weight: 700;
35
- margin-bottom: 2rem;
36
- }
37
-
38
- .landing p {
39
- font-size: 1.5rem;
40
- font-weight: 400;
41
- max-width: 1000px;
42
- padding: 0 25px 0 25px;
43
- margin: auto auto 2rem auto;
44
- }
45
-
46
- .container {
47
- padding: 20px;
48
- background-color: rgba(255, 255, 255, 0.1);
49
- border-radius: 12px;
50
- box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
51
- transition: all .3s ease-in-out;
52
- margin: auto auto 180px auto;
53
- }
54
-
55
- .container:hover {
56
- transform: scale(1.01);
57
- box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
58
- }
59
-
60
- input, select, #output, #reportContainer {
61
- background-color: rgba(255, 255, 255, 0.1);
62
- border: none;
63
- color: #fff;
64
- transition: all .3s ease-in-out;
65
- }
66
-
67
- input:hover, input:focus, select:hover, select:focus {
68
- background-color: #dfe4ea;
69
- border: 1px solid rgba(255, 255, 255, 0.5);
70
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
71
- transition: all 0.3s ease-in-out;
72
- }
73
-
74
- .btn-primary {
75
- background: linear-gradient(to right, #0062cc, #007bff);
76
- border: none;
77
- transition: all .3s ease-in-out;
78
- }
79
-
80
- .btn-secondary {
81
- background: linear-gradient(to right, #6c757d, #6c757d);
82
- border: none;
83
- transition: all .3s ease-in-out;
84
- }
85
-
86
- .btn:hover {
87
- opacity: 0.8;
88
- transform: scale(1.1);
89
- box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
90
- }
91
-
92
- .agent_question {
93
- font-size: 1.4rem;
94
- font-weight: 500;
95
- margin-bottom: 0.2rem;
96
- }
97
-
98
- footer {
99
- position: fixed;
100
- left: 0;
101
- bottom: 0;
102
- width: 100%;
103
- color: white;
104
- text-align: center;
105
- padding: 10px 0;
106
- }
107
-
108
- footer p {
109
- margin-top: 5px;
110
- margin-bottom: 0;
111
- }
112
-
113
- .margin-div {
114
- margin-top: 20px;
115
- margin-bottom: 20px;
116
- padding: 25px;
117
- }
118
-
119
- .images_div {
120
- padding: 0 25px 0 25px;
121
- }
122
-
123
- .agent_response {
124
- background-color: #747d8c;
125
- margin: 10px;
126
- padding: 10px;
127
- border-radius: 12px;
128
- }
129
-
130
- #output {
131
- height: 300px;
132
- overflow: auto;
133
- padding: 10px;
134
- margin-bottom: 10px;
135
- margin-top: 10px;
136
- border-radius: 12px;
137
- }
138
-
139
- #reportContainer {
140
- font-family: 'Georgia', 'Times New Roman', Times, "Courier New", serif;
141
- font-size: 18px !important;
142
- background-color: rgba(255, 255, 255, 0.1);
143
- font-family: 'Times New Roman', Times, "Courier New", serif;
144
- border: none;
145
- color: #fff;
146
- transition: all .3s ease-in-out;
147
- padding: 25px;
148
- border-radius: 12px;
149
- }
150
-
151
- .tags-input {
152
- display: flex;
153
- flex-wrap: wrap;
154
- gap: 5px;
155
- border: 1px solid #ccc;
156
- padding: 5px;
157
- border-radius: 5px;
158
- }
159
-
160
- .tag {
161
- background-color: #007bff;
162
- color: white;
163
- padding: 5px 10px;
164
- border-radius: 3px;
165
- display: flex;
166
- align-items: center;
167
- }
168
-
169
- .tag .remove-tag {
170
- margin-left: 10px;
171
- cursor: pointer;
172
- font-weight: bold;
173
- }
174
-
175
- .tag-input {
176
- border: none;
177
- outline: none;
178
- flex-grow: 1;
179
- }
180
-
181
- footer a {
182
- color: #ffffff;
183
- font-weight: bold;
184
- text-decoration: none;
185
- }
186
-
187
- a:hover {
188
- text-decoration: underline;
189
- }
190
-
191
- /* Add or modify these styles at the end of the file */
192
- #selectedImagesContainer {
193
- background-color: rgba(255, 255, 255, 0.1);
194
- border-radius: 12px;
195
- padding: 15px;
196
- margin-bottom: 20px;
197
- color: #fff;
198
- display: flex;
199
- flex-wrap: wrap;
200
- gap: 10px;
201
- justify-content: center;
202
- }
203
-
204
- #selectedImagesContainer h3 {
205
- width: 100%;
206
- margin-top: 0;
207
- margin-bottom: 10px;
208
- color: #fff;
209
- }
210
-
211
- #selectedImagesContainer img {
212
- width: 150px;
213
- height: 150px;
214
- object-fit: cover;
215
- cursor: pointer;
216
- transition: transform 0.3s ease, box-shadow 0.3s ease;
217
- border-radius: 8px;
218
- }
219
-
220
- #selectedImagesContainer img:hover {
221
- transform: scale(1.05);
222
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
223
- }
224
-
225
- .image-dialog {
226
- position: fixed;
227
- top: 0;
228
- left: 0;
229
- width: 100%;
230
- height: 100%;
231
- background-color: rgba(0, 0, 0, 0.8);
232
- display: flex;
233
- flex-direction: column;
234
- justify-content: center;
235
- align-items: center;
236
- z-index: 1000;
237
- }
238
-
239
- .image-dialog img {
240
- max-width: 90%;
241
- max-height: 80%;
242
- object-fit: contain;
243
- border-radius: 8px;
244
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
245
- }
246
-
247
- .image-dialog button {
248
- margin-top: 20px;
249
- padding: 10px 20px;
250
- background-color: #007bff;
251
- color: white;
252
- border: none;
253
- border-radius: 5px;
254
- cursor: pointer;
255
- font-size: 16px;
256
- transition: background-color 0.3s ease;
257
- }
258
-
259
- .image-dialog button:hover {
260
- background-color: #0056b3;
261
- }
 
1
+ @keyframes gradientBG {
2
+ 0% { background-position: 0 50%; }
3
+ 50% { background-position: 100% 50%; }
4
+ 100% { background-position: 0 50%; }
5
+ }
6
+
7
+ html {
8
+ scroll-behavior: smooth;
9
+ font-size: 16px;
10
+ }
11
+
12
+ body {
13
+ font-family: 'Montserrat', sans-serif;
14
+ color: #fff;
15
+ line-height: 1.6;
16
+ background-color: #1e272e;
17
+ margin: 0;
18
+ padding: 0;
19
+ min-height: 100vh;
20
+ }
21
+
22
+ /* Mobile-first approach */
23
+ .landing {
24
+ display: flex;
25
+ justify-content: center;
26
+ align-items: center;
27
+ min-height: 100vh;
28
+ text-align: center;
29
+ padding: 1rem;
30
+ }
31
+
32
+ .landing h1 {
33
+ font-size: 2rem;
34
+ font-weight: 700;
35
+ margin-bottom: 1.5rem;
36
+ }
37
+
38
+ .landing p {
39
+ font-size: 1.1rem;
40
+ font-weight: 400;
41
+ max-width: 100%;
42
+ padding: 0 1rem;
43
+ margin: 0 auto 1.5rem auto;
44
+ }
45
+
46
+ .container {
47
+ padding: 1rem;
48
+ background-color: rgba(255, 255, 255, 0.1);
49
+ border-radius: 8px;
50
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
51
+ transition: all .3s ease-in-out;
52
+ margin: 1rem auto;
53
+ width: calc(100% - 2rem);
54
+ max-width: 600px;
55
+ }
56
+
57
+ input, select, #output, #reportContainer {
58
+ width: 100%;
59
+ max-width: 100%;
60
+ padding: 0.75rem;
61
+ background-color: rgba(255, 255, 255, 0.1);
62
+ border: none;
63
+ border-radius: 6px;
64
+ color: #fff;
65
+ font-size: 1rem;
66
+ margin: 0.5rem 0;
67
+ box-sizing: border-box;
68
+ }
69
+
70
+ .btn-primary, .btn-secondary {
71
+ width: 100%;
72
+ padding: 0.75rem;
73
+ margin: 0.5rem 0;
74
+ border-radius: 6px;
75
+ font-size: 1rem;
76
+ font-weight: 500;
77
+ text-align: center;
78
+ }
79
+
80
+ .btn-primary {
81
+ background: linear-gradient(to right, #0062cc, #007bff);
82
+ }
83
+
84
+ .btn-secondary {
85
+ background: linear-gradient(to right, #6c757d, #6c757d);
86
+ }
87
+
88
+ .agent_question {
89
+ font-size: 1.1rem;
90
+ font-weight: 500;
91
+ margin: 0.5rem 0;
92
+ }
93
+
94
+ .agent_response {
95
+ background-color: #747d8c;
96
+ margin: 0.5rem 0;
97
+ padding: 0.75rem;
98
+ border-radius: 8px;
99
+ font-size: 1rem;
100
+ }
101
+
102
+ #output {
103
+ height: 250px;
104
+ overflow-y: auto;
105
+ -webkit-overflow-scrolling: touch;
106
+ }
107
+
108
+ #reportContainer {
109
+ font-family: 'Georgia', serif;
110
+ font-size: 1rem !important;
111
+ padding: 1rem;
112
+ }
113
+
114
+ .tags-input {
115
+ padding: 0.5rem;
116
+ gap: 0.5rem;
117
+ }
118
+
119
+ .tag {
120
+ padding: 0.4rem 0.6rem;
121
+ font-size: 0.9rem;
122
+ }
123
+
124
+ footer {
125
+ position: relative;
126
+ padding: 1rem;
127
+ margin-top: 2rem;
128
+ }
129
+
130
+ #selectedImagesContainer {
131
+ padding: 1rem;
132
+ gap: 0.5rem;
133
+ }
134
+
135
+ #selectedImagesContainer img {
136
+ width: 100px;
137
+ height: 100px;
138
+ }
139
+
140
+ .image-dialog img {
141
+ max-width: 95%;
142
+ max-height: 70vh;
143
+ }
144
+
145
+ /* Tablet and larger screens */
146
+ @media screen and (min-width: 768px) {
147
+ .landing h1 {
148
+ font-size: 3.5rem;
149
+ }
150
+
151
+ .landing p {
152
+ font-size: 1.5rem;
153
+ max-width: 1000px;
154
+ }
155
+
156
+ .container {
157
+ padding: 20px;
158
+ margin: auto auto 180px auto;
159
+ }
160
+
161
+ .btn-primary, .btn-secondary {
162
+ width: auto;
163
+ padding: 0.75rem 1.5rem;
164
+ }
165
+
166
+ #selectedImagesContainer img {
167
+ width: 150px;
168
+ height: 150px;
169
+ }
170
+
171
+ .agent_question {
172
+ font-size: 1.4rem;
173
+ }
174
+ }
175
+
176
+ /* Touch device optimizations */
177
+ @media (hover: none) {
178
+ .container:hover {
179
+ transform: none;
180
+ }
181
+
182
+ .btn:hover {
183
+ transform: none;
184
+ }
185
+
186
+ input:hover, select:hover {
187
+ background-color: rgba(255, 255, 255, 0.1);
188
+ }
189
+ }