Prav51 commited on
Commit
d54ed84
1 Parent(s): 45fbf9e

Updated the styles

Browse files
Files changed (1) hide show
  1. style.css +316 -17
style.css CHANGED
@@ -1,28 +1,327 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
  h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  }
 
1
+ :root {
2
+ --primary-color: #fdc500; /* Blue for primary elements */
3
+ --primary-hovered: #ffd500;
4
+ --secondary-color: #5603ad;
5
+ --secondary-hovered: #3d0066; /* Green for secondary elements */
6
+ --accent-color: #8367c7; /* Red for accents and alerts */
7
+ --success-color: #6acc1a;
8
+ --info--color: #72cdf4;
9
+ --danger-color: #e71d36;
10
+ --background-color: #ffffff; /* Light gray for background */
11
+ --text-color: #14213d; /* Dark gray for text */
12
+ --muted-color: #8d99ae; /* Gray for borders, shadows, and muted text */
13
+ }
14
+
15
+ .hidden {
16
+ display: none;
17
+ }
18
+
19
+ #loader {
20
+ border: 16px solid #f3f3f3; /* Light grey */
21
+ border-top: 16px solid #3498db; /* Blue */
22
+ border-radius: 50%;
23
+ width: 120px;
24
+ height: 120px;
25
+ animation: spin 2s linear infinite;
26
+ margin: 20px auto;
27
+ }
28
+
29
+ @keyframes spin {
30
+ 0% {
31
+ transform: rotate(0deg);
32
+ }
33
+ 100% {
34
+ transform: rotate(360deg);
35
+ }
36
+ }
37
+
38
+ /* Rest of the previous CSS remains the same */
39
+
40
+ * {
41
+ margin: 0;
42
+ padding: 0;
43
+ box-sizing: border-box;
44
+ }
45
+
46
  body {
47
+ /* font-family: Arial, sans-serif; */
48
+
49
+ font-family: "Grandstander", cursive;
50
+ background-color: var(--background-color);
51
+ color: var(--text-color);
52
+ height: 100vh;
53
+ display: flex;
54
+ justify-content: center;
55
+ align-items: center;
56
+ }
57
+
58
+ .container {
59
+ display: flex;
60
+ width: 100%;
61
+ height: 100%;
62
+ padding: 20px;
63
+ }
64
+
65
+ .form-container,
66
+ .result-container {
67
+ flex: 1;
68
+ display: flex;
69
+ flex-direction: column;
70
+ align-items: center;
71
+ padding: 20px;
72
+ }
73
+
74
+ .form-container {
75
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="100%" viewBox="0 0 10 10"><path fill="none" stroke="gainsboro" stroke-width="1" d="M0 0l5 5 -5 5"/></svg>'); /* Snake-like border image */
76
+ background-repeat: repeat-y; /* Repeat vertically */
77
+ background-position: right center; /* Position on the right side */
78
+
79
+ justify-content: center;
80
  }
81
 
82
  h1 {
83
+ margin-bottom: 20px;
84
+ font-size: 2em;
85
+ color: var(--secondary-color);
86
+ }
87
+
88
+ label {
89
+ margin-bottom: 10px;
90
+ font-size: 1.2em;
91
+ color: var(--muted-color);
92
+ }
93
+
94
+ input {
95
+ padding: 10px;
96
+ margin-bottom: 20px;
97
+ width: 300px;
98
+ border: 2px solid var(--muted-color);
99
+ border-radius: 5px;
100
+ font-size: 1em;
101
+ font-family: "Grandstander", cursive;
102
+ }
103
+
104
+ select {
105
+ -webkit-appearance: none;
106
+ -moz-appearance: none;
107
+ appearance: none;
108
+ background-color: #fff;
109
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><path d="M0 0 L5 5 L10 0 Z" fill="#666"/></svg>');
110
+ background-repeat: no-repeat;
111
+ background-position: right 10px center;
112
+ background-size: 10px;
113
+ cursor: pointer;
114
+ padding: 10px;
115
+ margin-bottom: 20px;
116
+ width: 300px;
117
+ border: 2px solid #555;
118
+ border-radius: 5px;
119
+ font-size: 1em;
120
+ color: var(--secondary-color);
121
+ font-family: "Grandstander", cursive;
122
+ }
123
+ .primary-btn {
124
+ background-color: var(--primary-color);
125
+ color: var(--background-color);
126
+ }
127
+
128
+ .secondary-btn {
129
+ border: 2px solid var(--secondary-color);
130
+ color: var(--secondary-color);
131
+ }
132
+
133
+ button {
134
+ padding: 10px 20px;
135
+ color: white;
136
+ border: none;
137
+ border-radius: 5px;
138
+ cursor: pointer;
139
+ font-size: 1em;
140
+ transition: background-color 0.3s ease;
141
+ margin-top: 10px;
142
+ font-family: "Grandstander", cursive;
143
+ margin-bottom: 10px;
144
+ }
145
+
146
+ .primary-btn:hover {
147
+ background-color: transparent;
148
+ border: 2px solid var(--primary-hovered);
149
+ color: var(--primary-color);
150
+ }
151
+
152
+ .secondary-btn:hover {
153
+ background-color: var(--accent-color);
154
+ }
155
+
156
+ #img {
157
+ margin-top: 20px;
158
+ max-width: 200px;
159
+ height: auto;
160
+ border: 2px solid var(--muted-color);
161
+ border-radius: 5px;
162
+ }
163
+
164
+ #history-container {
165
+ margin-top: 20px;
166
+ display: flex;
167
+ flex-wrap: wrap;
168
+ justify-content: center;
169
  }
170
 
171
+ .history-header {
172
+ display: flex;
173
+ justify-content: space-between;
174
+ align-items: center;
 
175
  }
176
 
177
+ .history-header h1 {
178
+ flex: 1;
 
 
 
 
179
  }
180
 
181
+ .history-item {
182
+ margin: 10px;
183
+ position: relative;
184
+ }
185
+
186
+ .history-item img {
187
+ max-width: 150px;
188
+ height: auto;
189
+ object-fit: cover;
190
+ opacity: 0.8;
191
+ border-radius: 10%;
192
+ }
193
+ .history-item img:hover {
194
+ opacity: 1;
195
+ }
196
+ .removeButton {
197
+ position: absolute;
198
+ top: 0;
199
+ right: 0;
200
+ border-radius: 50%;
201
+ padding: 2px 4px;
202
+ color: var(--background-color);
203
+ background-color: var(--danger-color);
204
+ text-align: center;
205
+ cursor: pointer;
206
+ }
207
+
208
+ .downloadButton {
209
+ position: absolute;
210
+ bottom: 0;
211
+ left: 0;
212
+ border-radius: 50%;
213
+ cursor: pointer;
214
+ padding: 6px 8px;
215
+ background-color: var(--primary-color);
216
+ color: var(--background-color);
217
+ text-align: center;
218
+ }
219
+
220
+ .input-with-icon input {
221
+ width: 280px;
222
+ }
223
+
224
+ .fa-eye-slash:before {
225
+ content: "\f070"; /* Unicode for the eye slash icon */
226
+ }
227
+
228
+ /* ===============hint============== */
229
+ .hint-icon {
230
+ display: inline;
231
+ margin-left: 5px;
232
+ cursor: pointer;
233
+ }
234
+
235
+ .hint-content {
236
+ display: none;
237
+ background-color: #e2eafc;
238
+ padding: 10px;
239
+ margin-top: 5px;
240
+ margin-bottom: 5px;
241
+ border-radius: 10px;
242
+ }
243
+
244
+ .hint-content p {
245
+ font-size: 14px;
246
+ font-family: "Courier New", Courier, monospace;
247
+ }
248
+
249
+ .hint-content ol {
250
+ margin-left: 20px;
251
+ font-size: 14px;
252
+ }
253
+
254
+ .show {
255
+ display: block;
256
+ }
257
+
258
+ /* =========================notification==================
259
+ */
260
+
261
+ .notification {
262
+ position: fixed;
263
+ top: 20px;
264
+ left: 20px;
265
+ padding: 10px 20px;
266
+ border-radius: 5px;
267
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
268
+ color: #fff;
269
+ z-index: 1000;
270
+ }
271
+
272
+ .notification.success {
273
+ background-color: var(--success-color);
274
+ }
275
+
276
+ .notification.error {
277
+ background-color: var(--danger-color);
278
+ }
279
+
280
+ .notification.info {
281
+ background-color: var(--info--color);
282
+ }
283
+
284
+ .close-btn {
285
+ cursor: pointer;
286
+ float: right;
287
+ font-size: 20px;
288
+ font-weight: bold;
289
+ line-height: 1;
290
+ color: #fff;
291
+ }
292
+
293
+ .snakex {
294
+ width: 100%;
295
+ display: block;
296
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="100%" viewBox="0 0 10 10"><path fill="none" stroke="gainsboro" stroke-width="1" d="M0 0l5 5 5-5"/></svg>'); /* Snake-like border image */
297
+ background-repeat: repeat-x; /* Repeat horizontally */
298
+ background-position: bottom;
299
+ }
300
+ /* Responsive design for smaller screens */
301
+ @media (max-width: 768px) {
302
+ .container {
303
+ flex-direction: column;
304
+ align-items: center;
305
+ }
306
+
307
+ .form-container {
308
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="100%" viewBox="0 0 10 10"><path fill="none" stroke="gainsboro" stroke-width="1" d="M0 0l5 5 5-5"/></svg>'); /* Snake-like border image */
309
+ background-repeat: repeat-x; /* Repeat horizontally */
310
+ background-position: bottom;
311
+ }
312
+
313
+ .form-container,
314
+ .result-container {
315
+ width: 100%;
316
+ padding: 10px;
317
+ }
318
+
319
+ input {
320
+ width: 90%;
321
+ }
322
+
323
+ button {
324
+ width: 90%;
325
+ text-align: center;
326
+ }
327
  }