-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
126 lines (106 loc) · 2.09 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
:root {
--bg-color-light: #f4f4f4;
--bg-color-dark: #2e2e2e;
--text-color-light: #000;
--text-color-dark: #fff;
--alert-bg-color: red;
--alert-text-color: white;
}
body {
font-family: Arial, sans-serif;
background-color: var(--bg-color-light);
color: var(--text-color-light);
margin: 0;
padding: 20px;
transition: background-color 0.3s, color 0.3s;
}
.dark-mode {
background-color: var(--bg-color-dark);
color: var(--text-color-dark);
}
button {
padding: 10px;
margin: 5px;
border: none;
border-radius: 5px;
cursor: pointer;
background-color: #555;
color: #fff;
}
button:hover {
background-color: #777;
}
#dark-mode-toggle {
position: absolute;
top: 10px;
right: 10px;
}
#camera-toggle {
position: absolute;
top: 50px;
right: 10px;
}
#webcam-container {
display: flex;
justify-content: center;
margin-top: 20px;
}
#webcam-frame {
border: 5px solid #555;
padding: 10px;
border-radius: 10px;
width: fit-content;
background-color: var(--bg-color-light);
}
#webcam {
border-radius: 10px;
max-width: 100%;
}
.alert-box {
display: none;
background-color: var(--alert-bg-color);
color: var(--alert-text-color);
padding: 15px;
text-align: center;
border-radius: 5px;
margin-top: 20px;
}
.alert-box p {
margin: 0;
font-size: 18px;
}
.alert-box button {
background-color: green;
color: #fff;
}
.alert-box button:hover {
background-color: darkgreen;
}
.matrix-container {
margin-top: 20px;
text-align: center;
}
.matrix-level {
display: inline-block;
width: 50px;
height: 50px;
margin: 5px;
border-radius: 50%;
background-color: grey;
}
.level-1 {
background-color: green;
}
.level-2 {
background-color: yellow;
}
.level-3 {
background-color: orange;
}
.level-4 {
background-color: red;
}
#description {
margin-bottom: 20px;
text-align: center;
}