Spaces:
Sleeping
Sleeping
File size: 1,527 Bytes
ceffc74 | 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 | /* Mobile-first responsive design */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: #f4f4f4;
}
header {
background-color: #333;
color: #fff;
text-align: center;
padding: 1rem;
}
header a {
color: #fff;
text-decoration: none;
}
header a:hover {
text-decoration: underline;
}
main {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
padding: 1rem;
}
.chat-container {
width: 100%;
max-width: 600px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
height: 80vh;
max-height: 500px;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 1rem;
border-bottom: 1px solid #ddd;
}
.message {
margin-bottom: 1rem;
}
.message.user {
text-align: right;
}
.message.bot {
text-align: left;
}
.chat-input-container {
display: flex;
padding: 1rem;
}
#user-input {
flex: 1;
padding: 0.5rem;
border: 1px solid #ddd;
border-radius: 4px;
margin-right: 0.5rem;
}
#send-button {
padding: 0.5rem 1rem;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
#send-button:hover {
background-color: #0056b3;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.chat-container {
height: 90vh;
}
} |