Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -1,76 +1,92 @@
|
|
| 1 |
-
* {
|
| 2 |
-
box-sizing: border-box;
|
| 3 |
-
padding: 0;
|
| 4 |
-
margin: 0;
|
| 5 |
-
font-family: sans-serif;
|
| 6 |
-
}
|
| 7 |
-
|
| 8 |
-
html,
|
| 9 |
-
body {
|
| 10 |
-
height: 100%;
|
| 11 |
-
}
|
| 12 |
-
|
| 13 |
body {
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
display: flex;
|
| 20 |
-
flex-direction: column;
|
| 21 |
-
justify-content: center;
|
| 22 |
-
align-items: center;
|
| 23 |
-
}
|
| 24 |
-
|
| 25 |
-
#container {
|
| 26 |
-
position: relative;
|
| 27 |
-
gap: 0.4rem;
|
| 28 |
-
|
| 29 |
-
width: 640px;
|
| 30 |
-
height: 640px;
|
| 31 |
-
max-width: 100%;
|
| 32 |
-
max-height: 100%;
|
| 33 |
-
|
| 34 |
-
border: 2px dashed #D1D5DB;
|
| 35 |
-
border-radius: 0.75rem;
|
| 36 |
-
overflow: hidden;
|
| 37 |
-
cursor: pointer;
|
| 38 |
-
margin: 1rem;
|
| 39 |
-
|
| 40 |
-
background-size: 100% 100%;
|
| 41 |
-
background-position: center;
|
| 42 |
-
background-repeat: no-repeat;
|
| 43 |
-
font-size: 18px;
|
| 44 |
-
}
|
| 45 |
-
|
| 46 |
-
#upload {
|
| 47 |
-
display: none;
|
| 48 |
-
}
|
| 49 |
-
|
| 50 |
-
svg {
|
| 51 |
-
pointer-events: none;
|
| 52 |
-
}
|
| 53 |
-
|
| 54 |
-
#example {
|
| 55 |
-
font-size: 14px;
|
| 56 |
-
text-decoration: underline;
|
| 57 |
-
cursor: pointer;
|
| 58 |
-
}
|
| 59 |
-
|
| 60 |
-
#example:hover {
|
| 61 |
-
color: #2563EB;
|
| 62 |
-
}
|
| 63 |
|
| 64 |
-
.
|
| 65 |
-
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ear-gradient(135deg, #FFA500, #FF6347); /* Gradient from orange to coral */
|
| 10 |
+
color: #fff;
|
| 11 |
+
text-align: center;
|
| 12 |
+
padding: 20px 0;
|
| 13 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
.header h1 {
|
| 18 |
+
margin: 0;
|
| 19 |
+
font-size: 24px;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
/* Rest of the CSS for the chat-container, chat-box, input-container, and send button remains the same */
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
.chat-container {
|
| 26 |
+
max-width: 500px; /* Increased width */
|
| 27 |
+
margin: 20px auto;
|
| 28 |
+
background-color: #fff;
|
| 29 |
+
border-radius: 20px; /* Increased border radius */
|
| 30 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
| 31 |
+
overflow: hidden;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.chat-box {
|
| 35 |
+
height: 300px;
|
| 36 |
+
overflow-y: auto;
|
| 37 |
+
padding: 20px; /* Increased padding */
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.user-message,
|
| 41 |
+
.bot-message {
|
| 42 |
+
background-color: #f2f2f2;
|
| 43 |
+
padding: 10px;
|
| 44 |
+
border-radius: 15px;
|
| 45 |
+
margin-bottom: 10px;
|
| 46 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
|
| 47 |
}
|
| 48 |
|
| 49 |
+
.chat-message {
|
| 50 |
+
margin-bottom: 20px; /* Increased margin */
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
.user-message {
|
| 54 |
+
text-align: right;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.bot-message {
|
| 58 |
+
text-align: left;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
.input-container {
|
| 62 |
+
display: flex;
|
| 63 |
+
align-items: center; /* Center vertically */
|
| 64 |
+
padding: 20px; /* Increased padding */
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
#user-input {
|
| 68 |
+
flex: 1;
|
| 69 |
+
padding: 15px; /* Increased padding */
|
| 70 |
+
margin: 10px; /* Margin added */
|
| 71 |
+
border: none;
|
| 72 |
+
border-radius: 20px;
|
| 73 |
+
background-color: #f2f2f2;
|
| 74 |
+
outline: none;
|
| 75 |
+
width: 100%; /* Ensure input takes up all available space */
|
| 76 |
+
max-width: 70%; /* Limit maximum width to avoid stretching too much */
|
| 77 |
+
}
|
| 78 |
+
#send-btn {
|
| 79 |
+
padding: 15px 25px; /* Increased padding */
|
| 80 |
+
border: none;
|
| 81 |
+
border-radius: 25px; /* Rounded borders */
|
| 82 |
+
background-color: #4CAF50; /* Green color */
|
| 83 |
+
color: white;
|
| 84 |
+
font-weight: bold;
|
| 85 |
+
cursor: pointer;
|
| 86 |
+
outline: none;
|
| 87 |
+
transition: background-color 0.3s ease; /* Smooth transition effect */
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
#send-btn:hover {
|
| 91 |
+
background-color: #45a049; /* Darker shade on hover */
|
| 92 |
+
}
|