Prime810 commited on
Commit
63be947
·
verified ·
1 Parent(s): 020f73e

Update Frontend/style.css

Browse files
Files changed (1) hide show
  1. Frontend/style.css +137 -115
Frontend/style.css CHANGED
@@ -1,116 +1,138 @@
1
- body {
2
- margin: 0;
3
- font-family: 'Segoe UI', sans-serif;
4
- background: linear-gradient(to bottom right, #141e30, #243b55);
5
- color: #f3f3f3;
6
- text-align: center;
7
- }
8
-
9
- header {
10
- padding: 2rem 1rem;
11
- background: linear-gradient(to right, #ff9a9e, #fad0c4);
12
- color: transparent;
13
- -webkit-background-clip: text;
14
- background-clip: text;
15
- }
16
-
17
- header h1 {
18
- font-size: 3rem;
19
- margin: 0;
20
- }
21
-
22
- header p {
23
- font-size: 1.2rem;
24
- margin-top: 0.5rem;
25
- }
26
-
27
- .camera-section {
28
- padding: 1rem;
29
- }
30
-
31
- #videoElement {
32
- width: 100%;
33
- max-width: 460px;
34
- border-radius: 20px;
35
- border: 4px solid rgba(255, 255, 255, 0.3);
36
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
37
- object-fit: cover;
38
- margin-bottom: 1rem;
39
- }
40
-
41
- .btn-group {
42
- margin-top: 1rem;
43
- }
44
-
45
- .btn {
46
- background: linear-gradient(to right, #6a11cb, #2575fc);
47
- color: white;
48
- padding: 12px 24px;
49
- border: none;
50
- border-radius: 40px;
51
- font-size: 1rem;
52
- font-weight: bold;
53
- margin: 8px;
54
- cursor: pointer;
55
- transition: all 0.3s ease;
56
- box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
57
- }
58
-
59
- .btn:hover {
60
- background: linear-gradient(to right, #43e97b, #38f9d7);
61
- transform: scale(1.05);
62
- }
63
-
64
- .result-section {
65
- padding: 1rem;
66
- }
67
-
68
- #capturedImagePreview img {
69
- width: 100%;
70
- max-width: 360px;
71
- margin-top: 1rem;
72
- border-radius: 16px;
73
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
74
- }
75
-
76
- #emojiDisplay img {
77
- margin-top: 1rem;
78
- width: 100px;
79
- animation: bounce 1.2s ease-in-out infinite;
80
- }
81
-
82
- #emotionText {
83
- margin-top: 1rem;
84
- font-size: 1.3rem;
85
- font-weight: 500;
86
- color: #c7ffec;
87
- }
88
-
89
- #downloadEmoji {
90
- display: inline-block;
91
- margin-top: 1rem;
92
- background: linear-gradient(to right, #ee0979, #ff6a00);
93
- padding: 12px 24px;
94
- border-radius: 30px;
95
- color: white;
96
- text-decoration: none;
97
- font-weight: bold;
98
- transition: 0.3s;
99
- }
100
-
101
- #downloadEmoji:hover {
102
- transform: scale(1.05);
103
- box-shadow: 0 8px 16px rgba(238, 9, 121, 0.3);
104
- }
105
-
106
- footer {
107
- margin-top: 2rem;
108
- padding: 1rem;
109
- font-size: 0.9rem;
110
- color: #aaa;
111
- }
112
-
113
- @keyframes bounce {
114
- 0%, 100% { transform: translateY(0); }
115
- 50% { transform: translate(-10px); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  }
 
1
+ body {
2
+ font-family: Arial, sans-serif;
3
+ background-color: #222;
4
+ color: #fff;
5
+ margin: 0;
6
+ padding: 1rem;
7
+ text-align: center;
8
+ }
9
+
10
+ body.light-mode {
11
+ background: #f0f0f0;
12
+ color: #222;
13
+ }
14
+
15
+ h1 {
16
+ font-size: 2.7rem;
17
+ margin-bottom: 1.2rem;
18
+ background: linear-gradient(to right, #ff9a9e, #fad0c4);
19
+ -webkit-background-clip: text;
20
+ -webkit-text-fill-color: transparent;
21
+ text-align: center;
22
+ }
23
+
24
+ #videoElement {
25
+ width: 100%;
26
+ max-width: 420px;
27
+ border-radius: 20px;
28
+ border: 4px solid rgba(255, 255, 255, 0.3);
29
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
30
+ margin-bottom: 24px;
31
+ object-fit: cover;
32
+ }
33
+
34
+ .btn {
35
+ background: linear-gradient(135deg, #00f2fe, #4facfe);
36
+ color: #fff;
37
+ padding: 14px 28px;
38
+ border: none;
39
+ border-radius: 50px;
40
+ font-size: 17px;
41
+ font-weight: 600;
42
+ cursor: pointer;
43
+ margin: 10px 0;
44
+ transition: all 0.3s ease;
45
+ box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
46
+ }
47
+
48
+ .btn:hover {
49
+ background: linear-gradient(135deg, #43e97b, #38f9d7);
50
+ box-shadow: 0 8px 20px rgba(56, 249, 215, 0.5);
51
+ transform: scale(1.05);
52
+ }
53
+
54
+ #emojiDisplay {
55
+ margin-top: 20px;
56
+ }
57
+
58
+ #emojiDisplay img {
59
+ margin-top: 1rem;
60
+ width: 140px;
61
+ height: auto;
62
+ border-radius: 16px;
63
+ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
64
+ animation: bounce 1.2s ease infinite;
65
+ }
66
+
67
+ #toggleTheme {
68
+ background: linear-gradient(to right, #ff6a00, #ee0979);
69
+ color: #fff;
70
+ padding: 12px 24px;
71
+ border-radius: 40px;
72
+ font-size: 16px;
73
+ font-weight: 600;
74
+ border: none;
75
+ cursor: pointer;
76
+ transition: all 0.3s ease;
77
+ margin-bottom: 1rem;
78
+ box-shadow: 0 6px 12px rgba(255, 106, 0, 0.4);
79
+ }
80
+
81
+ #toggleTheme:hover {
82
+ background: linear-gradient(to right, #ee0979, #ff6a00);
83
+ box-shadow: 0 8px 18px rgba(238, 9, 121, 0.5);
84
+ transform: scale(1.05);
85
+ }
86
+
87
+ #emotionText {
88
+ font-size: 1.3rem;
89
+ margin-top: 1.2rem;
90
+ font-weight: 500;
91
+ color: #c7ffec;
92
+ }
93
+
94
+ @keyframes bounce {
95
+ 0%, 100% {
96
+ transform: translateY(0);
97
+ }
98
+ 50% {
99
+ transform: translateY(-10px);
100
+ }
101
+ }
102
+
103
+ #downloadEmoji {
104
+ display: none;
105
+ background: linear-gradient(to right, #ff6a00, #ee0979);
106
+ padding: 12px 24px;
107
+ border-radius: 40px;
108
+ margin-top: 20px;
109
+ color: #fff;
110
+ text-decoration: none;
111
+ font-weight: 600;
112
+ transition: all 0.3s ease;
113
+ }
114
+
115
+ #downloadEmoji:hover {
116
+ background: linear-gradient(to right, #ee0979, #ff6a00);
117
+ box-shadow: 0 6px 12px rgba(255, 106, 0, 0.4);
118
+ }
119
+
120
+ #capturedImagePreview {
121
+ display: flex;
122
+ flex-direction: column;
123
+ align-items: center;
124
+ justify-content: center;
125
+ margin-top: 1.5rem;
126
+ width: 100%;
127
+ padding: 0 1rem;
128
+ }
129
+
130
+ #snapshotImage {
131
+ max-width: 100%;
132
+ width: 100%;
133
+ max-width: 420px;
134
+ border-radius: 16px;
135
+ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
136
+ margin-top: 0.5rem;
137
+ height: auto;
138
  }