1- * {
1+ * {
22 font-family : system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI' , Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans' , 'Helvetica Neue' , sans-serif;
3- }
3+ box-sizing : border-box;
4+ }
5+
46body {
5-
67 background-color : # f4f4f9 ;
78 color : # 333 ;
89 margin : 0 ;
@@ -17,23 +18,24 @@ body {
1718 min-height : 41vh !important ;
1819}
1920
20- # result-container {
21+ # result-container {
2122 margin-top : 20px ;
2223 height : 400px ;
2324}
2425
25- h1 {
26+ h1 , h2 {
2627 text-align : center;
2728 color : # 333 ;
28- margin-bottom : 20px ;
2929}
30- h2 {
31- text-align : center;
32- color : # 333 ;
30+
31+ h1 {
32+ margin-bottom : 20 px ;
3333}
34- label {
34+
35+ label {
3536 font-size : 20px ;
3637}
38+
3739.form-group {
3840 margin-bottom : 15px ;
3941}
5557.button {
5658 display : block;
5759 width : 100% ;
58- padding : 10 px ;
60+ padding : 12 px ;
5961 background-color : # 4CAF50 ;
6062 color : white;
6163 border : none;
@@ -73,11 +75,6 @@ label{
7375 margin-top : 20px ;
7476}
7577
76- .comparison h2 {
77- text-align : center;
78- margin-bottom : 15px ;
79- }
80-
8178table {
8279 width : 100% ;
8380 border-collapse : collapse;
@@ -98,72 +95,107 @@ th {
9895tr : nth-child (even) {
9996 background-color : # f9f9f9 ;
10097}
98+
10199.dark-mode tr : nth-child (even) {
102100 background-color : # 1a1717 ;
103101}
104- .hidden {
105- display : none;
106- }
107102
108103/* Responsive Design */
104+ @media (max-width : 1024px ) {
105+ .container {
106+ padding : 15px ;
107+ }
108+
109+ .button {
110+ font-size : 14px ;
111+ padding : 10px ;
112+ }
113+
114+ select , .select {
115+ font-size : 16px ;
116+ }
117+
118+ # result-container {
119+ height : 350px ;
120+ }
121+ }
122+
109123@media (max-width : 768px ) {
110124 .container {
111125 padding : 10px ;
112126 }
113127
114128 .button {
115129 font-size : 14px ;
130+ padding : 8px ;
116131 }
117-
118- # result-container {
132+
133+ # result-container {
119134 height : 300px ;
120135 }
136+
137+ th , td {
138+ padding : 8px ;
139+ font-size : 14px ;
140+ }
141+
142+ select , .select {
143+ font-size : 14px ;
144+ }
121145}
122- select {
123- background : transparent;
124- outline : none;
125- border : none;
126- border : solid 1px gray;
127- padding : 10px ;
128- font-size : 20px ;
129- }
130- .dark-mode select {
131- color : white;
132- background-color : black;
146+
147+ @media (max-width : 480px ) {
148+ h1 , h2 {
149+ font-size : 22px ;
150+ }
151+
152+ label {
153+ font-size : 18px ;
154+ }
155+
156+ select , .select {
157+ font-size : 12px ;
158+ padding : 8px ;
159+ }
160+
161+ .button {
162+ font-size : 12px ;
163+ padding : 6px ;
164+ }
165+
166+ th , td {
167+ padding : 6px ;
168+ font-size : 12px ;
169+ }
170+
171+ # result-container {
172+ height : 250px ;
173+ }
133174}
134- # avatarImg1 {
175+
176+ /* Avatar Styles */
177+ # avatarImg1 , # avatarImg2 {
135178 --s : 10px ;
136179 padding : var (--s );
137- border : calc (2 * var (--s )) solid # ffffff00 ;
180+ border : calc (2 * var (--s )) solid # ffffff00 ;
138181 outline : 1px solid # ffffff ;
139- outline-offset : calc (-1 * var (--s ));
182+ outline-offset : calc (-1 * var (--s ));
140183 background : conic-gradient (from 90deg at 1px 1px , # ffffff00 25% , # ffffff 0 );
141- /* border-radius: 50%; */
142184 -webkit-user-drag : none;
143- -moz-user-drag : none;
144- -o-user-drag : none;
145- user-drag : none;
185+ user-drag : none;
146186 width : 200px ;
147187 height : 200px ;
188+ margin : 0 auto;
148189}
149190
150- # avatarImg2 {
151- --s : 10px ;
152- padding : var (--s );
153- border : calc (2 * var (--s )) solid # ffffff00 ;
154- outline : 1px solid # ffffff ;
155- outline-offset : calc (-1 * var (--s ));
156- background : conic-gradient (from 90deg at 1px 1px , # ffffff00 25% , # ffffff 0 );
157- /* border-radius: 50%; */
158- -webkit-user-drag : none;
159- -moz-user-drag : none;
160- -o-user-drag : none;
161- user-drag : none;
162- width : 200px ;
163- height : 200px ;
191+ @media (max-width : 768px ) {
192+ # avatarImg1 , # avatarImg2 {
193+ width : 150px ;
194+ height : 150px ;
195+ }
164196}
165197
166- /* CSS for spinner */
198+ /* Spinner Styles */
167199.spinner {
168200 border : 4px solid rgba (0 , 0 , 0 , 0.1 );
169201 border-radius : 50% ;
@@ -172,26 +204,23 @@ select{
172204 height : 40px ;
173205 animation : spin 1s linear infinite;
174206 margin : 10px auto;
175- }
176-
177- @keyframes spin {
207+ }
208+
209+ @keyframes spin {
178210 0% {
179- transform : rotate (0deg );
211+ transform : rotate (0deg );
180212 }
181213 100% {
182- transform : rotate (360deg );
214+ transform : rotate (360deg );
183215 }
184- }
185-
186- .hidden {
187- display : none;
188- }
189-
190- # progressBarContainer {
216+ }
191217
218+ .hidden {
219+ display : none;
220+ }
192221
222+ /* Progress Bar */
193223# progressBarContainer {
194-
195224 position : fixed;
196225 top : 0 ;
197226 left : 0 ;
@@ -206,6 +235,10 @@ select{
206235 width : 0% ;
207236 background : white;
208237 transition : width 0.2s ease;
209-
210238}
211239
240+ /* Dark Mode */
241+ .dark-mode select {
242+ color : white;
243+ background-color : black;
244+ }
0 commit comments