-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
286 lines (247 loc) · 5.56 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
/* General reset */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* Body styling */
body {
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
background-color: #292826;
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start; /* Align at the start for mobile view */
height: auto; /* Allow the height to adjust automatically */
min-height: 100vh; /* Minimum height to cover the viewport */
}
/* Main container styling */
.main-container {
display: flex;
justify-content: space-between;
width: 80%;
align-items: flex-start; /* Align items at the start */
margin-bottom: 20px; /* Spacing between main and output sections */
margin-left: 110px;
text-align: center;
margin-top: 12%;
user-select: none;
}
/* Title container styling */
.title-container {
width: 40%;
text-align: left;
}
.title-container h1 {
margin-top: 20px;
font-size: 36px;
color: #3ABEF9;
margin-bottom: 10px;
}
.title-container p {
font-size: 18px;
color: #EAEAEA;
}
#creator-link {
color: #3ABEF9;
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease;
}
#creator-link:hover {
color: #2C65AE;
}
/* Upload container styling */
.upload-container {
text-align: center; /* Center text inside upload-container */
width: 40%;
margin: 0 auto;
}
.upload-container h2 {
margin-bottom: 20px; /* Added margin for spacing */
}
.upload-container #p1 {
font-size: 40px;
}
.upload-container #p2,
#p3 {
font-size: 15px;
margin-bottom: 10px;
}
h2 {
color: #ffffff;
margin-bottom: 20px;
}
/* Drag and drop area styling */
#drop-area {
font-weight: bold;
border: 2px dashed #3ABEF9;
border-radius: 10px;
padding: 40px;
background-color: #292826;
cursor: pointer;
margin: 20px auto;
width: 350px; /* Square shape */
height: 350px; /* Square shape */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#drop-area p {
margin-bottom: 10px;
}
#drop-area:hover {
background-color: #2d2c2c;
}
/* Button styling */
#choose-file-btn {
padding: 12px 24px;
background-color: #3ABEF9;
color: white;
border: none;
border-radius: 25px;
font-size: 17px;
cursor: pointer;
transition: background-color 0.3s ease;
margin: 10px 0; /* Spacing between button and text */
}
#choose-file-btn:hover {
background-color: #2C65AE;
}
/* URL container styling */
.url-container {
margin-top: 10px;
margin-bottom: 10px;
text-align: center; /* Center the text inside url-container */
}
.url-container p {
margin-bottom: 5px; /* Spacing between text and input */
font-weight: bold;
text-align: center; /* Center the "or" text */
}
.url-container input {
width: 180px; /* Shortened width */
padding: 8px;
border: 2px solid #3ABEF9;
border-radius: 25px;
font-size: 14px;
background-color: #1a1a1a;
color: #fff;
text-indent: 10px;
}
.input-wrapper {
position: relative;
display: inline-block;
width: 200px; /* Match the input width */
}
#imageUrlInput {
width: 100%; /* Full width inside wrapper */
padding-right: 30px; /* Space for the button */
}
#clear-url-btn {
position: absolute;
right: 7px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
cursor: pointer;
font-size: 25px;
color: #ffffff;
display: flex; /* Added flex to center icon */
align-items: center; /* Center icon vertically */
justify-content: center; /* Ensure it's horizontally centered too */
}
#clear-url-btn:hover {
color: #3ABEF9;
}
/* Comparison section styling */
#comparison {
display: flex;
justify-content: space-between;
margin-top: 20px;
margin-left: 120px;
width: 80%; /* Set a width for alignment */
}
.image-container {
width: 45%;
text-align: center;
border: 2px solid #3ABEF9;
border-radius: 10px;
padding: 10px;
background-color: #1a1a1a;
}
img {
max-width: 100%;
height: auto;
border-radius: 10px;
margin-top: 10px;
}
/* Button container styling */
.button-container {
text-align: center;
margin-top: 10px;
margin-bottom: 10px;
justify-content: center;
}
#downloadBtn,
#resetBtn {
display: inline-block;
margin-top: 20px;
padding: 12px 24px;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#downloadBtn {
background-color: #4CAF50;
color: white;
text-decoration: none;
}
#downloadBtn:hover {
background-color: #45a049;
}
#resetBtn {
background-color: #f44336;
color: white;
margin-left: 10px;
border: none;
}
#resetBtn:hover {
background-color: #d32f2f;
}
.hidden {
display: none;
}
/* Media Queries for Responsive Design */
@media (max-width: 768px) {
.main-container {
flex-direction: column; /* Stack elements vertically */
align-items: center; /* Center items horizontally */
margin-left: 0; /* Remove left margin */
width: 90%; /* Adjust width for smaller screens */
}
.title-container,
.upload-container {
width: 100%; /* Full width for mobile */
text-align: center; /* Center text */
}
#drop-area {
width: 90%; /* Adjust the width for smaller screens */
height: auto; /* Let height adjust automatically */
max-width: 350px; /* Set a maximum width */
margin: 20px auto; /* Center the drag-and-drop box */
}
#comparison {
flex-direction: column; /* Stack images vertically */
margin-left: 0; /* Remove left margin */
width: 100%; /* Full width for mobile */
}
.image-container {
width: 100%; /* Full width for mobile */
margin-bottom: 20px; /* Space between images */
}
}