-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
219 lines (191 loc) · 3.75 KB
/
styles.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background: #f4f4f4;
}
.card-container {
display: flex;
flex-wrap: wrap;
gap: 10px;
padding: 20px;
justify-content: center;
}
#overlay {
position: fixed; /* Sit on top of the page content */
display: none; /* Hidden by default */
width: 100%; /* Full width (cover the whole page) */
height: 100%; /* Full height (cover the whole page) */
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0,0,0,0.5); /* Black background with opacity */
z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
cursor: pointer; /* Add a pointer on hover */
}
.card {
background: #fff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 150px;
margin: 10px;
padding: 20px;
overflow: hidden;
text-align: center;
transition: transform 0.3s ease;
}
.card:hover {
transform: translateY(-5px);
}
.card-icon img {
width: 100%;
height: auto;
}
.card-title {
font-size: 16px;
color: #333;
padding: 10px;
}
.card-status {
font-size: 14px;
color: green;
padding: 5px;
background-color: #eefeeb;
border-top: 1px solid #d4d4d4;
}
body {
margin: 0;
font-family: 'Arial', sans-serif;
}
.chat-container {
display: none;
/* Hidden by default */
position: fixed;
/* Stay in place */
z-index: 5;
/* Sit on top */
left: 15px;
top: 15px;
right:15px;
bottom: 15px;
flex-direction: column;
/* height: 100vh; */
max-width: 600px;
/* Maximum width of the chat interface */
margin: auto;
/* border-left: 1px solid #ccc;
border-right: 1px solid #ccc; */
border-radius: 5px;
overflow: auto; /* Enable scroll if needed */
backdrop-filter: blur(10px); /* Blur effect */
}
.chat-header {
background: #f5f5f5;
padding: 10px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #ccc;
}
.chat-title {
font-size: 18px;
font-weight: bold;
}
.objectives-btn {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
}
.chat-messages {
position: relative; /* Ensure this is set to contain the absolute canvas */
flex: 1;
padding: 10px;
overflow: auto;
height: 90vh;
z-index: 50;
}
#chatCanvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: white; /* Set the background color to white (or any other color) */
z-index: -1;
}
.chat-input-container {
/* border-top: 1px solid #ccc; */
display: flex;
margin-top: 10px;
}
.chat-input-container input {
flex: 1;
padding: 10px;
border: 1px solid #ccc;
margin-right: 10px;
border-radius: 5px;
}
.chat-input-container button {
padding: 10px 20px;
background: #007bff;
color: white;
border: none;
cursor: pointer;
border-radius: 5px;
}
.objectives-panel {
display: none;
/* Hidden by default */
position: absolute;
right: 0;
top: 0;
width: 100%;
max-width: 300px;
background: #fff;
box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
z-index: 100;
}
.objective-header {
display: flex;
justify-content: space-between;
}
.chat-title {
font-size: 16px;
font-weight: bold;
}
/* Styling for User and AI Messages */
.user-message {
color: blue;
text-align: right;
background-color: #e6f7ff;
border: 1px solid #91d5ff;
border-radius: 5px;
margin: 10px;
padding: 10px;
}
.ai-message {
color: green;
text-align: left;
background-color: #f4fff0;
border: 1px solid #9eff9e;
border-radius: 5px;
margin: 10px;
padding: 10px;
}
.ai-message div {
color: green;
text-align: left;
background-color: #f4fff0;
margin-bottom: 10px;
}
.ai-tamil-message {
display: none;
}
@media (max-width: 600px) {
.chat-container {
border-left: none;
border-right: none;
}
}