Spaces:
Running
Running
File size: 2,430 Bytes
ed876e2 7db2a6d ed876e2 c96298c 7db2a6d | 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 | .App {
text-align: center;
}
.App-logo {
height: 40vmin;
pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #61dafb;
}
body {
font-family: 'Roboto', sans-serif;
background: #121212;
color: #ffffff;
}
h2 {
color: #bb86fc;
margin-bottom: 20px;
font-weight: 500;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.formatted-text {
white-space: pre-wrap;
line-height: 1.5;
margin-bottom: 8px;
}
/* Global scrollbar styles */
* {
scrollbar-width: thin; /* Firefox */
scrollbar-color: #555 #1e1e2f; /* Firefox */
}
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
width: 8px;
height: 6px;
}
::-webkit-scrollbar-track {
background: #1e1e2f;
}
::-webkit-scrollbar-thumb {
background-color: #555;
border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
background-color: #777;
}
.chat-container {
max-width: 800px;
margin: 0 auto;
display: flex;
flex-direction: column;
height: 100vh;
color: #ffffff;
background: #2a2a2a;
background: #2a2a2a;
border-radius: 12px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
overflow: hidden; /* prevent accidental scrollbars */
}
.header-area {
display: flex;
justify-content: center;
text-align: center;
background: #383838;
}
.chat-input {
display: flex;
padding: 10px;
background: #383838;
}
textarea {
flex-grow: 1;
padding: 10px 12px;
resize: none;
border-radius: 6px;
background: #2a2a2a;
color: #fff;
border: 1px solid #444;
font-size: 14px;
}
.message {
display: block; /* ensures full-width layout */
width: fit-content;
max-width: 85%;
margin-bottom: 12px;
padding: 10px 14px;
border-radius: 16px;
line-height: 1.5;
word-wrap: break-word;
}
.message.user {
align-self: flex-end;
margin-left: auto;
background: #333c4d;
color: #e3f2fd;
border-bottom-right-radius: 0;
}
.message.assistant {
align-self: flex-start;
margin-right: auto;
background: #383838;
border-bottom-left-radius: 0;
}
|