| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- /* General page styles */
- body {
- font-family: Arial, sans-serif;
- background-color: #f1f1f1;
- margin: 0;
- padding: 0;
- }
- /* Header for chat.html */
- header {
- background-color: #333;
- color: #fff;
- padding: 10px;
- text-align: center;
- font-size: 24px;
- }
- /* Message display */
- #messages {
- height: 80vh;
- overflow-y: auto;
- padding: 10px;
- }
- .message-container {
- margin-bottom: 15px;
- }
- .username {
- font-weight: bold;
- margin-bottom: 3px;
- color: #333;
- }
- .message {
- background-color: #e0e0e0;
- padding: 10px;
- border-radius: 5px;
- display: inline-block;
- max-width: 70%;
- word-wrap: break-word;
- }
- /* Chat input section */
- .chat-input {
- display: flex;
- padding: 10px;
- background-color: #fff;
- border-top: 1px solid #ccc;
- }
- .chat-input input[type="text"] {
- flex: 1;
- padding: 10px;
- font-size: 16px;
- border: 1px solid #ccc;
- border-radius: 4px;
- }
- .chat-input button {
- padding: 10px 20px;
- margin-left: 10px;
- font-size: 16px;
- background-color: #333;
- color: #fff;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- }
- .chat-input button:hover {
- background-color: #555;
- }
- /* Styles specific to index.html */
- .index-body {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- height: 100vh;
- }
- .index-body h1 {
- margin-bottom: 20px;
- color: #333;
- }
- .index-body form {
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .index-body input[type="text"] {
- padding: 10px;
- font-size: 16px;
- width: 250px;
- margin-bottom: 10px;
- border: 1px solid #ccc;
- border-radius: 4px;
- }
- .index-body button {
- padding: 10px 20px;
- font-size: 16px;
- background-color: #333;
- color: #fff;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- }
- .index-body button:hover {
- background-color: #555;
- }
|