style.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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.received {
  113. align-self: flex-start;
  114. }
  115. .message-bubble.received .message-content {
  116. background-color: #e5e5ea;
  117. color: black;
  118. }
  119. .imessage-footer {
  120. padding: 10px;
  121. border-top: 1px solid #e5e5e5;
  122. display: flex;
  123. justify-content: space-between;
  124. align-items: center;
  125. }
  126. .navigation button, #export-btn {
  127. padding: 8px 15px;
  128. border: none;
  129. background-color: #0078fe;
  130. color: white;
  131. border-radius: 5px;
  132. cursor: pointer;
  133. }
  134. .navigation button:disabled {
  135. background-color: #ccc;
  136. cursor: not-allowed;
  137. }
  138. /* Modal Styles */
  139. .modal {
  140. display: none;
  141. position: fixed;
  142. z-index: 1;
  143. left: 0;
  144. top: 0;
  145. width: 100%;
  146. height: 100%;
  147. overflow: auto;
  148. background-color: rgba(0,0,0,0.4);
  149. }
  150. .modal-content {
  151. background-color: #fefefe;
  152. margin: 15% auto;
  153. padding: 20px;
  154. border: 1px solid #888;
  155. width: 80%;
  156. max-width: 400px;
  157. border-radius: 10px;
  158. }
  159. .close-btn {
  160. color: #aaa;
  161. float: right;
  162. font-size: 28px;
  163. font-weight: bold;
  164. cursor: pointer;
  165. }
  166. #modal-name-input, #modal-avatar-input {
  167. width: 100%;
  168. padding: 10px;
  169. margin: 10px 0;
  170. box-sizing: border-box;
  171. }
  172. /* Responsive Design */
  173. @media (max-width: 600px) {
  174. .container {
  175. padding: 0;
  176. height: 100vh;
  177. }
  178. .imessage-window {
  179. height: 100vh;
  180. max-height: none;
  181. border-radius: 0;
  182. }
  183. .message-bubble {
  184. max-width: 90%;
  185. }
  186. }