-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
73 lines (66 loc) · 1.84 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
/* Base Styles */
body {
font-family: 'Roboto', sans-serif;
background-color: #f5f5f5; /* Light grey background */
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
position: relative;
width: 100%; /* Full width of the viewport */
height: 100vh; /* Full height of the viewport */
max-width: 1200px; /* Max width for large screens */
max-height: 900px; /* Max height for large screens */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
border-radius: 8px; /* Rounded corners */
background-color: #ffffff; /* White background */
overflow: hidden; /* Hide overflow */
display: flex;
justify-content: center;
align-items: center;
}
/* Video and Canvas */
video, canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover; /* Maintain aspect ratio */
}
/* Loader */
.loader {
position: absolute;
border: 8px solid #f3f3f3; /* Light grey */
border-top: 8px solid #4285f4; /* Google blue */
border-radius: 50%;
width: 60px;
height: 60px;
animation: spin 1s linear infinite;
}
/* Spin animation */
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Instructions */
.instructions {
position: absolute;
color: #1f305e; /* Dark blue for text */
font-size: 16px;
font-weight: 400;
padding: 10px;
background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
border-radius: 4px;
z-index: 10; /* Ensure it is above other elements */
display: block; /* Ensure it is visible */
}
/* Hide instructions when camera is active */
.instructions.hidden {
display: none;
}
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');