style.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. body {
  2. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  3. background-color: #f5f5f7;
  4. margin: 0;
  5. display: flex;
  6. justify-content: center;
  7. align-items: center;
  8. height: 100vh;
  9. background-image: url('https://m1s5.c20.e2-5.dev/files/jeeitunes/img/wallpaper.jpg');
  10. background-size: cover;
  11. }
  12. .container {
  13. width: 100%;
  14. height: 100%;
  15. display: flex;
  16. justify-content: center;
  17. align-items: center;
  18. padding: 1rem;
  19. box-sizing: border-box;
  20. }
  21. .imessage-window {
  22. width: 100%;
  23. max-width: 800px;
  24. height: 95vh;
  25. max-height: 900px;
  26. background-color: #ffffff;
  27. border-radius: 10px;
  28. box-shadow: 10px 10px 25px rgba(0,0,0,0.5);
  29. display: flex;
  30. flex-direction: column;
  31. overflow: hidden;
  32. border: 1px solid white;
  33. border-block: 0.15rem solid #CCCCCC;
  34. writing-mode: horizontal-tb;
  35. }
  36. .imessage-header {
  37. padding: 10px 15px;
  38. border-bottom: 1px solid #e5e5e5;
  39. background-color: #f7f7f7;
  40. text-align: center;
  41. font-weight: bold;
  42. background-image: url('https://m1s5.c20.e2-5.dev/files/jeeitunes/img/buttons.svg');
  43. background-size: 8%;
  44. background-position: top-left;
  45. background-repeat: no-repeat;
  46. background-origin: content-box;
  47. }
  48. .participants-info {
  49. display: flex;
  50. flex-direction: column;
  51. align-items: center;
  52. }
  53. .avatars {
  54. display: flex;
  55. justify-content: center;
  56. margin-bottom: 5px;
  57. }
  58. .imessage-header .avatar {
  59. width: 40px;
  60. height: 40px;
  61. margin: 0 3px;
  62. background-size: contain;
  63. border-radius: 100%;
  64. }
  65. .message-container {
  66. flex-grow: 1;
  67. overflow-y: auto;
  68. padding: 20px;
  69. display: flex;
  70. flex-direction: column;
  71. }
  72. .message-bubble {
  73. display: flex;
  74. align-items: flex-end;
  75. margin-bottom: 10px;
  76. max-width: 75%;
  77. }
  78. .message-bubble .avatar {
  79. width: 30px;
  80. height: 30px;
  81. min-width: 30px; /* Ensure it doesn't shrink */
  82. border-radius: 50%;
  83. margin-right: 10px;
  84. cursor: pointer;
  85. background-color: #ccc;
  86. display: flex;
  87. justify-content: center;
  88. align-items: center;
  89. font-weight: bold;
  90. color: white;
  91. background-size: cover;
  92. background-position: center;
  93. }
  94. .message-content {
  95. padding: 10px 15px;
  96. border-radius: 18px;
  97. line-height: 1.4;
  98. word-wrap: break-word;
  99. }
  100. .message-bubble.sent {
  101. align-self: flex-end;
  102. flex-direction: row-reverse;
  103. }
  104. .message-bubble.sent .avatar {
  105. margin-left: 10px;
  106. margin-right: 0;
  107. }
  108. .message-bubble.sent .message-content {
  109. background-color: #0078fe;
  110. color: white;
  111. }
  112. .message-bubble.sent .message-content a {
  113. color: white;
  114. }
  115. .message-bubble.received {
  116. align-self: flex-start;
  117. }
  118. .message-bubble.received .message-content {
  119. background-color: #e5e5ea;
  120. color: black;
  121. }
  122. .message-bubble.received .message-content a {
  123. color: #DD7164;
  124. }
  125. .imessage-footer {
  126. padding: 10px;
  127. border-top: 1px solid #e5e5e5;
  128. display: flex;
  129. justify-content: space-between;
  130. align-items: center;
  131. }
  132. .navigation button, #export-btn {
  133. padding: 8px 15px;
  134. border: none;
  135. background-color: #0078fe;
  136. color: white;
  137. border-radius: 5px;
  138. cursor: pointer;
  139. }
  140. .navigation button:disabled {
  141. background-color: #ccc;
  142. cursor: not-allowed;
  143. }
  144. /* Modal Styles */
  145. .modal {
  146. display: none;
  147. position: fixed;
  148. z-index: 1;
  149. left: 0;
  150. top: 0;
  151. width: 100%;
  152. height: 100%;
  153. overflow: auto;
  154. background-color: rgba(0,0,0,0.4);
  155. }
  156. .modal-content {
  157. background-color: #fefefe;
  158. margin: 15% auto;
  159. padding: 20px;
  160. border: 1px solid #888;
  161. width: 80%;
  162. max-width: 400px;
  163. border-radius: 10px;
  164. }
  165. .close-btn {
  166. color: #aaa;
  167. float: right;
  168. font-size: 28px;
  169. font-weight: bold;
  170. cursor: pointer;
  171. }
  172. #modal-name-input, #modal-avatar-input {
  173. width: 100%;
  174. padding: 10px;
  175. margin: 10px 0;
  176. box-sizing: border-box;
  177. }
  178. /* Responsive Design */
  179. @media (max-width: 600px) {
  180. .container {
  181. padding: 0;
  182. height: 100vh;
  183. }
  184. .imessage-window {
  185. height: 100vh;
  186. max-height: none;
  187. border-radius: 0;
  188. }
  189. .message-bubble {
  190. max-width: 90%;
  191. }
  192. }