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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
| 16 |
}
|
| 17 |
|
| 18 |
-
.
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
}
|
| 25 |
|
| 26 |
-
.
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
}
|
|
|
|
| 1 |
+
/* Copyright 2025 The MediaPipe Authors.
|
| 2 |
+
|
| 3 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
you may not use this file except in compliance with the License.
|
| 5 |
+
You may obtain a copy of the License at
|
| 6 |
+
|
| 7 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
|
| 9 |
+
Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
See the License for the specific language governing permissions and
|
| 13 |
+
limitations under the License.
|
| 14 |
+
|
| 15 |
+
-------------------------------------------------------------------------- */
|
| 16 |
+
|
| 17 |
+
:root {
|
| 18 |
+
--background-color: #1e1e1e;
|
| 19 |
+
--surface-color: #252526;
|
| 20 |
+
--primary-text-color: #d4d4d4;
|
| 21 |
+
--secondary-text-color: #888;
|
| 22 |
+
--accent-color: #0e639c;
|
| 23 |
+
--accent-hover-color: #17b;
|
| 24 |
+
--error-color: #f44747;
|
| 25 |
+
--recording-color: #ef5350;
|
| 26 |
+
--border-color: #3c3c3c;
|
| 27 |
+
--font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
* {
|
| 31 |
+
box-sizing: border-box;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
body {
|
| 35 |
+
background-color: var(--background-color);
|
| 36 |
+
color: var(--primary-text-color);
|
| 37 |
+
font-family: var(--font-family);
|
| 38 |
+
margin: 0;
|
| 39 |
+
padding: 16px;
|
| 40 |
+
display: flex;
|
| 41 |
+
justify-content: center;
|
| 42 |
+
align-items: center;
|
| 43 |
+
min-height: 100vh;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
.container {
|
| 47 |
+
display: flex;
|
| 48 |
+
flex-direction: column;
|
| 49 |
+
gap: 1.5rem;
|
| 50 |
+
width: 100%;
|
| 51 |
+
max-width: 720px;
|
| 52 |
+
margin: 0 auto;
|
| 53 |
}
|
| 54 |
|
| 55 |
h1 {
|
| 56 |
+
text-align: center;
|
| 57 |
+
font-weight: 300;
|
| 58 |
+
color: var(--primary-text-color);
|
| 59 |
+
margin: 0;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
.video-container {
|
| 63 |
+
position: relative;
|
| 64 |
+
width: 100%;
|
| 65 |
+
aspect-ratio: 16 / 9;
|
| 66 |
+
background-color: #000;
|
| 67 |
+
border-radius: 8px;
|
| 68 |
+
overflow: hidden;
|
| 69 |
+
border: 1px solid var(--border-color);
|
| 70 |
+
display: flex;
|
| 71 |
+
justify-content: center;
|
| 72 |
+
align-items: center;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
#webcam {
|
| 76 |
+
width: 100%;
|
| 77 |
+
height: 100%;
|
| 78 |
+
object-fit: cover;
|
| 79 |
+
transform: scaleX(-1); /* Mirror effect */
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
#status-message {
|
| 83 |
+
position: absolute;
|
| 84 |
+
color: var(--secondary-text-color);
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
.response-container {
|
| 88 |
+
background-color: var(--surface-color);
|
| 89 |
+
border: 1px solid var(--border-color);
|
| 90 |
+
border-radius: 8px;
|
| 91 |
+
padding: 1rem;
|
| 92 |
+
min-height: 100px;
|
| 93 |
+
font-size: 1rem;
|
| 94 |
+
line-height: 1.5;
|
| 95 |
+
white-space: pre-wrap;
|
| 96 |
+
overflow-y: auto;
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
.response-container.thinking {
|
| 100 |
+
color: var(--secondary-text-color);
|
| 101 |
+
font-style: italic;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
.input-container {
|
| 105 |
+
display: flex;
|
| 106 |
+
gap: 0.5rem;
|
| 107 |
+
align-items: center;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
#prompt-input {
|
| 111 |
+
flex-grow: 1;
|
| 112 |
+
background-color: var(--surface-color);
|
| 113 |
+
color: var(--primary-text-color);
|
| 114 |
+
border: 1px solid var(--border-color);
|
| 115 |
+
border-radius: 24px;
|
| 116 |
+
padding: 12px 20px;
|
| 117 |
+
font-size: 1rem;
|
| 118 |
+
outline: none;
|
| 119 |
+
transition: border-color 0.2s;
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
#prompt-input:focus {
|
| 123 |
+
border-color: var(--accent-color);
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
.input-container button {
|
| 127 |
+
background-color: var(--surface-color);
|
| 128 |
+
color: var(--primary-text-color);
|
| 129 |
+
border: 1px solid var(--border-color);
|
| 130 |
+
border-radius: 50%;
|
| 131 |
+
width: 48px;
|
| 132 |
+
height: 48px;
|
| 133 |
+
flex-shrink: 0;
|
| 134 |
+
cursor: pointer;
|
| 135 |
+
font-size: 1.2rem;
|
| 136 |
+
display: flex;
|
| 137 |
+
justify-content: center;
|
| 138 |
+
align-items: center;
|
| 139 |
+
transition: background-color 0.2s, color 0.2s;
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
.input-container button:hover {
|
| 143 |
+
background-color: var(--border-color);
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
.input-container button:disabled {
|
| 147 |
+
cursor: not-allowed;
|
| 148 |
+
opacity: 0.5;
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
#record-button.recording {
|
| 152 |
+
background-color: var(--recording-color);
|
| 153 |
+
color: white;
|
| 154 |
+
border-color: var(--recording-color);
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
#send-button {
|
| 158 |
+
background-color: var(--accent-color);
|
| 159 |
+
border-color: var(--accent-color);
|
| 160 |
+
color: white;
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
#send-button:hover {
|
| 164 |
+
background-color: var(--accent-hover-color);
|
| 165 |
+
border-color: var(--accent-hover-color);
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
+
/* Loader Styles */
|
| 169 |
+
.loader-overlay {
|
| 170 |
+
position: fixed;
|
| 171 |
+
top: 0;
|
| 172 |
+
left: 0;
|
| 173 |
+
width: 100%;
|
| 174 |
+
height: 100%;
|
| 175 |
+
background-color: rgba(0, 0, 0, 0.85);
|
| 176 |
+
display: flex;
|
| 177 |
+
justify-content: center;
|
| 178 |
+
align-items: center;
|
| 179 |
+
z-index: 1000;
|
| 180 |
+
transition: opacity 0.3s ease-in-out;
|
| 181 |
}
|
| 182 |
|
| 183 |
+
.loader-content {
|
| 184 |
+
text-align: center;
|
| 185 |
+
color: white;
|
| 186 |
+
display: flex;
|
| 187 |
+
flex-direction: column;
|
| 188 |
+
gap: 1rem;
|
| 189 |
+
width: 80%;
|
| 190 |
+
max-width: 300px;
|
| 191 |
}
|
| 192 |
|
| 193 |
+
.progress-bar {
|
| 194 |
+
width: 100%;
|
| 195 |
+
height: 8px;
|
| 196 |
+
background-color: var(--surface-color);
|
| 197 |
+
border-radius: 4px;
|
| 198 |
+
overflow: hidden;
|
| 199 |
}
|
| 200 |
|
| 201 |
+
.progress-bar-fill {
|
| 202 |
+
width: 0%;
|
| 203 |
+
height: 100%;
|
| 204 |
+
background-color: var(--accent-color);
|
| 205 |
+
border-radius: 4px;
|
| 206 |
+
transition: width 0.2s ease-out;
|
| 207 |
}
|