styles.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /* General page styles */
  2. body {
  3. font-family: Arial, sans-serif;
  4. background-color: #f1f1f1;
  5. margin: 0;
  6. padding: 0;
  7. }
  8. /* Header for chat.html */
  9. header {
  10. background-color: #333;
  11. color: #fff;
  12. padding: 10px;
  13. text-align: center;
  14. font-size: 24px;
  15. }
  16. /* Message display */
  17. #messages {
  18. height: 80vh;
  19. overflow-y: auto;
  20. padding: 10px;
  21. }
  22. .message-container {
  23. margin-bottom: 15px;
  24. }
  25. .username {
  26. font-weight: bold;
  27. margin-bottom: 3px;
  28. color: #333;
  29. }
  30. .message {
  31. background-color: #e0e0e0;
  32. padding: 10px;
  33. border-radius: 5px;
  34. display: inline-block;
  35. max-width: 70%;
  36. word-wrap: break-word;
  37. }
  38. /* Chat input section */
  39. .chat-input {
  40. display: flex;
  41. padding: 10px;
  42. background-color: #fff;
  43. border-top: 1px solid #ccc;
  44. }
  45. .chat-input input[type="text"] {
  46. flex: 1;
  47. padding: 10px;
  48. font-size: 16px;
  49. border: 1px solid #ccc;
  50. border-radius: 4px;
  51. }
  52. .chat-input button {
  53. padding: 10px 20px;
  54. margin-left: 10px;
  55. font-size: 16px;
  56. background-color: #333;
  57. color: #fff;
  58. border: none;
  59. border-radius: 4px;
  60. cursor: pointer;
  61. }
  62. .chat-input button:hover {
  63. background-color: #555;
  64. }
  65. /* Styles specific to index.html */
  66. .index-body {
  67. display: flex;
  68. flex-direction: column;
  69. align-items: center;
  70. justify-content: center;
  71. height: 100vh;
  72. }
  73. .index-body h1 {
  74. margin-bottom: 20px;
  75. color: #333;
  76. }
  77. .index-body form {
  78. display: flex;
  79. flex-direction: column;
  80. align-items: center;
  81. }
  82. .index-body input[type="text"] {
  83. padding: 10px;
  84. font-size: 16px;
  85. width: 250px;
  86. margin-bottom: 10px;
  87. border: 1px solid #ccc;
  88. border-radius: 4px;
  89. }
  90. .index-body button {
  91. padding: 10px 20px;
  92. font-size: 16px;
  93. background-color: #333;
  94. color: #fff;
  95. border: none;
  96. border-radius: 4px;
  97. cursor: pointer;
  98. }
  99. .index-body button:hover {
  100. background-color: #555;
  101. }