Spaces:
Paused
Paused
Update style.css
Browse files
style.css
CHANGED
@@ -7,89 +7,12 @@ body {
|
|
7 |
overflow: hidden;
|
8 |
}
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
height: 100vh;
|
15 |
-
padding: 2rem;
|
16 |
-
box-sizing: border-box;
|
17 |
-
}
|
18 |
-
|
19 |
-
#chatbox {
|
20 |
-
flex: 1;
|
21 |
-
overflow-y: auto;
|
22 |
-
border: 1px solid #00ffcc;
|
23 |
-
padding: 1rem;
|
24 |
-
background-color: #020202;
|
25 |
-
box-shadow: 0 0 10px #00ffcc33;
|
26 |
-
margin-bottom: 1rem;
|
27 |
-
font-size: 1rem;
|
28 |
-
line-height: 1.6;
|
29 |
-
}
|
30 |
-
|
31 |
-
.bubble {
|
32 |
-
padding: 0.75rem;
|
33 |
-
margin: 0.5rem 0;
|
34 |
-
border-radius: 0.5rem;
|
35 |
-
max-width: 80%;
|
36 |
-
animation: typeIn 0.5s ease-out;
|
37 |
-
}
|
38 |
-
|
39 |
-
.user {
|
40 |
-
align-self: flex-end;
|
41 |
-
background-color: #003333;
|
42 |
-
color: #00ffff;
|
43 |
-
}
|
44 |
|
45 |
-
|
46 |
-
align-self: flex-start;
|
47 |
-
background-color: #111;
|
48 |
-
border: 1px solid #00ffcc;
|
49 |
-
color: #00ffcc;
|
50 |
-
}
|
51 |
-
|
52 |
-
form {
|
53 |
-
display: flex;
|
54 |
-
gap: 1rem;
|
55 |
-
}
|
56 |
-
|
57 |
-
input[type="text"] {
|
58 |
-
flex: 1;
|
59 |
-
padding: 0.75rem;
|
60 |
-
font-size: 1rem;
|
61 |
-
background: #001111;
|
62 |
-
color: #00ffcc;
|
63 |
-
border: 1px solid #00ffcc;
|
64 |
-
outline: none;
|
65 |
-
}
|
66 |
-
|
67 |
-
button {
|
68 |
-
padding: 0.75rem 1.25rem;
|
69 |
-
background-color: #00ffcc;
|
70 |
-
border: none;
|
71 |
-
color: black;
|
72 |
-
font-weight: bold;
|
73 |
-
cursor: pointer;
|
74 |
-
transition: background 0.2s;
|
75 |
-
}
|
76 |
-
|
77 |
-
button:hover {
|
78 |
-
background-color: #00ffaa;
|
79 |
-
}
|
80 |
-
|
81 |
-
@keyframes typeIn {
|
82 |
-
from {
|
83 |
-
opacity: 0;
|
84 |
-
transform: translateY(5px);
|
85 |
-
}
|
86 |
-
to {
|
87 |
-
opacity: 1;
|
88 |
-
transform: translateY(0);
|
89 |
-
}
|
90 |
-
}
|
91 |
-
|
92 |
-
/* container never pulses by default */
|
93 |
#avatar {
|
94 |
width: 150px;
|
95 |
height: 150px;
|
@@ -100,19 +23,44 @@ button:hover {
|
|
100 |
align-self: center;
|
101 |
}
|
102 |
|
103 |
-
/*
|
104 |
-
#avatar
|
105 |
-
|
|
|
|
|
106 |
}
|
107 |
|
108 |
-
/*
|
|
|
109 |
#avatar.speaking img {
|
110 |
animation: pulse 2s infinite;
|
111 |
}
|
112 |
|
|
|
113 |
@keyframes pulse {
|
114 |
0% { box-shadow: 0 0 5px #00ffcc; transform: scale(1); }
|
115 |
50% { box-shadow: 0 0 25px #00ffccaa; transform: scale(1.05); }
|
116 |
100% { box-shadow: 0 0 5px #00ffcc; transform: scale(1); }
|
117 |
}
|
118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
overflow: hidden;
|
8 |
}
|
9 |
|
10 |
+
/* Static/chat container, etc. (your existing rules) */
|
11 |
+
#chatbox { /* … */ }
|
12 |
+
.bubble { /* … */ }
|
13 |
+
/* etc. */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
+
/* Avatar container */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
#avatar {
|
17 |
width: 150px;
|
18 |
height: 150px;
|
|
|
23 |
align-self: center;
|
24 |
}
|
25 |
|
26 |
+
/* Make the <img> cover without zoom */
|
27 |
+
#avatar img {
|
28 |
+
width: 100%;
|
29 |
+
height: 100%;
|
30 |
+
object-fit: cover;
|
31 |
}
|
32 |
|
33 |
+
/* Pulse only when speaking */
|
34 |
+
#avatar.speaking,
|
35 |
#avatar.speaking img {
|
36 |
animation: pulse 2s infinite;
|
37 |
}
|
38 |
|
39 |
+
/* Keyframes unchanged */
|
40 |
@keyframes pulse {
|
41 |
0% { box-shadow: 0 0 5px #00ffcc; transform: scale(1); }
|
42 |
50% { box-shadow: 0 0 25px #00ffccaa; transform: scale(1.05); }
|
43 |
100% { box-shadow: 0 0 5px #00ffcc; transform: scale(1); }
|
44 |
}
|
45 |
|
46 |
+
/* Overlay for kill-phrase glitch */
|
47 |
+
#overlay {
|
48 |
+
position: fixed;
|
49 |
+
top: 0; left: 0; right: 0; bottom: 0;
|
50 |
+
background: rgba(255,0,0,0.7);
|
51 |
+
pointer-events: none;
|
52 |
+
opacity: 0;
|
53 |
+
transition: opacity 0.1s ease-in-out;
|
54 |
+
z-index: 9999;
|
55 |
+
}
|
56 |
+
|
57 |
+
@keyframes glitchFlash {
|
58 |
+
0%,100% { opacity: 0; }
|
59 |
+
10%,90% { opacity: 1; }
|
60 |
+
20%,80% { opacity: 0; }
|
61 |
+
30%,70% { opacity: 1; }
|
62 |
+
40%,60% { opacity: 0; }
|
63 |
+
50% { opacity: 1; }
|
64 |
+
}
|
65 |
+
|
66 |
+
|