2024-06-03 19:23:14 -04:00
|
|
|
/* Base styles */
|
|
|
|
body {
|
|
|
|
background-color: #121212;
|
2024-06-04 00:03:14 -04:00
|
|
|
color: #e0e0e0;
|
2024-06-03 19:23:14 -04:00
|
|
|
font-family: 'Roboto', sans-serif;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100vh;
|
|
|
|
overflow: hidden;
|
|
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
|
|
}
|
|
|
|
|
2024-06-04 00:26:32 -04:00
|
|
|
#messages-container {
|
|
|
|
height: 45vh; /* Adjust as needed */
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
2024-06-03 19:23:14 -04:00
|
|
|
/* Header styles */
|
|
|
|
header {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
padding: 1rem;
|
2024-06-04 00:03:14 -04:00
|
|
|
background-color: #1f1f1f;
|
|
|
|
color: #fff;
|
2024-06-03 19:23:14 -04:00
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
|
|
|
|
cursor: move;
|
|
|
|
-webkit-app-region: drag;
|
|
|
|
}
|
|
|
|
|
|
|
|
.window-controls {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
-webkit-app-region: no-drag;
|
|
|
|
}
|
|
|
|
|
|
|
|
.window-controls button {
|
2024-06-04 00:03:14 -04:00
|
|
|
background-color: #2e2e2e;
|
2024-06-03 19:23:14 -04:00
|
|
|
border: none;
|
2024-06-04 00:03:14 -04:00
|
|
|
color: #fff;
|
2024-06-03 19:23:14 -04:00
|
|
|
font-size: 1.25rem;
|
|
|
|
margin-left: 0.5rem;
|
|
|
|
padding: 0.5rem;
|
|
|
|
border-radius: 4px;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: background-color 0.3s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
.window-controls button:hover {
|
2024-06-04 00:03:14 -04:00
|
|
|
background-color: #3e3e3e;
|
2024-06-03 19:23:14 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Button and input styles */
|
2024-06-04 00:03:14 -04:00
|
|
|
button,
|
|
|
|
input,
|
|
|
|
textarea {
|
|
|
|
border: 1px solid #b0d944;
|
2024-06-03 19:23:14 -04:00
|
|
|
background-color: #333;
|
2024-06-04 00:03:14 -04:00
|
|
|
color: #b0d944;
|
2024-06-03 19:23:14 -04:00
|
|
|
padding: 0.75rem;
|
|
|
|
font-family: 'Roboto Mono', monospace;
|
|
|
|
font-size: 1rem;
|
|
|
|
line-height: 1.5rem;
|
|
|
|
border-radius: 4px;
|
|
|
|
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
|
2024-06-04 00:03:14 -04:00
|
|
|
resize: none; /* Prevent resizing */
|
|
|
|
overflow-y: hidden; /* Hide scrollbar */
|
2024-06-03 19:23:14 -04:00
|
|
|
}
|
|
|
|
|
2024-06-04 00:03:14 -04:00
|
|
|
textarea {
|
|
|
|
height: auto; /* Allow the textarea to grow dynamically */
|
2024-06-03 19:23:14 -04:00
|
|
|
}
|
|
|
|
|
2024-06-04 00:03:14 -04:00
|
|
|
textarea:focus {
|
|
|
|
outline: none; /* Remove focus outline */
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea::placeholder {
|
|
|
|
color: #a0a0a0;
|
2024-06-03 19:23:14 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Main container styles */
|
|
|
|
main {
|
|
|
|
display: flex;
|
2024-06-03 22:49:52 -04:00
|
|
|
flex: 1;
|
2024-06-03 19:23:14 -04:00
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2024-06-03 22:49:52 -04:00
|
|
|
padding: 1rem;
|
2024-06-03 19:23:14 -04:00
|
|
|
}
|
|
|
|
|
2024-06-03 22:49:52 -04:00
|
|
|
/* Hidden class */
|
2024-06-03 19:23:14 -04:00
|
|
|
.hidden {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Form container styles */
|
2024-06-04 00:03:14 -04:00
|
|
|
#register,
|
|
|
|
#setup {
|
2024-06-03 19:23:14 -04:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
padding: 2rem;
|
2024-06-04 00:03:14 -04:00
|
|
|
background-color: #1f1f1f;
|
2024-06-03 19:23:14 -04:00
|
|
|
border-radius: 8px;
|
|
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
|
|
}
|
|
|
|
|
|
|
|
#or {
|
|
|
|
margin: 1.5rem 0;
|
2024-06-04 00:03:14 -04:00
|
|
|
color: #b0d944;
|
2024-06-03 19:23:14 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
#loading {
|
|
|
|
align-self: center;
|
|
|
|
font-size: 1.5rem;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Chat container styles */
|
|
|
|
#chat {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-06-03 22:49:52 -04:00
|
|
|
flex: 1;
|
2024-06-03 19:23:14 -04:00
|
|
|
width: 100%;
|
|
|
|
padding: 1rem;
|
2024-06-04 00:03:14 -04:00
|
|
|
background-color: #1e1e1e;
|
2024-06-03 19:23:14 -04:00
|
|
|
border-radius: 8px;
|
|
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
2024-06-03 22:49:52 -04:00
|
|
|
overflow: hidden;
|
2024-06-03 19:23:14 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
#header {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
2024-06-03 23:05:03 -04:00
|
|
|
#join-chat-room-container {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-06-04 00:03:14 -04:00
|
|
|
margin-top: 1rem;
|
2024-06-03 23:05:03 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
#join-chat-room-container label {
|
2024-06-04 00:03:14 -04:00
|
|
|
margin-right: 0.5rem;
|
2024-06-03 23:05:03 -04:00
|
|
|
}
|
|
|
|
|
2024-06-04 00:03:14 -04:00
|
|
|
#join-chat-room-container input,
|
|
|
|
#join-chat-room-container textarea {
|
|
|
|
margin-right: 0.5rem;
|
2024-06-03 23:05:03 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
#join-chat-room-container button {
|
2024-06-04 00:03:14 -04:00
|
|
|
margin-left: 0.5rem;
|
2024-06-03 23:05:03 -04:00
|
|
|
}
|
|
|
|
|
2024-06-03 19:23:14 -04:00
|
|
|
#details {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: 1rem;
|
2024-06-04 00:03:14 -04:00
|
|
|
background-color: #2b2b2b;
|
2024-06-03 19:23:14 -04:00
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2024-06-03 23:05:03 -04:00
|
|
|
#submit-button {
|
2024-06-04 00:03:14 -04:00
|
|
|
margin-left: 1rem;
|
2024-06-03 23:05:03 -04:00
|
|
|
}
|
|
|
|
|
2024-06-03 19:23:14 -04:00
|
|
|
#messages {
|
|
|
|
flex: 1;
|
2024-06-04 00:03:14 -04:00
|
|
|
min-height: 200px;
|
2024-06-03 19:23:14 -04:00
|
|
|
overflow-y: auto;
|
|
|
|
padding: 1rem;
|
|
|
|
background-color: #262626;
|
|
|
|
border-radius: 4px;
|
2024-06-03 22:49:52 -04:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-06-03 19:23:14 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
#message-form {
|
|
|
|
display: flex;
|
|
|
|
margin-top: 1rem;
|
2024-06-04 00:03:14 -04:00
|
|
|
margin-right: 1rem;
|
2024-06-03 19:23:14 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
#message {
|
|
|
|
flex: 1;
|
|
|
|
margin-right: 0.5rem;
|
2024-06-04 00:03:14 -04:00
|
|
|
padding-right: 0.5rem;
|
2024-06-03 19:23:14 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
#user-info {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#user-info input {
|
|
|
|
margin: 0 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#user-list {
|
|
|
|
margin-top: 1rem;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Message styles */
|
|
|
|
.message {
|
|
|
|
display: flex;
|
2024-06-04 00:03:14 -04:00
|
|
|
align-items: center;
|
2024-06-03 19:23:14 -04:00
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message img {
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
border-radius: 50%;
|
|
|
|
margin-right: 0.75rem;
|
2024-06-04 00:03:14 -04:00
|
|
|
border: 2px solid #b0d944;
|
2024-06-03 19:23:14 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.message-content {
|
2024-06-04 00:03:14 -04:00
|
|
|
max-width: 70%;
|
|
|
|
background-color: #2e2e2e;
|
|
|
|
padding: 0.5rem;
|
|
|
|
border-radius: 10px;
|
2024-06-03 19:23:14 -04:00
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.message-header {
|
|
|
|
font-weight: bold;
|
2024-06-04 00:03:14 -04:00
|
|
|
color: #b0d944;
|
2024-06-03 19:23:14 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.message-time {
|
2024-06-04 00:03:14 -04:00
|
|
|
color: #a0a0a0;
|
2024-06-03 19:23:14 -04:00
|
|
|
font-size: 0.75rem;
|
|
|
|
margin-left: 0.5rem;
|
|
|
|
}
|
2024-06-04 00:03:14 -04:00
|
|
|
|
|
|
|
/* Button and input styles */
|
|
|
|
button,
|
|
|
|
input,
|
|
|
|
textarea {
|
|
|
|
border: 1px solid #b0d944;
|
|
|
|
background-color: #333;
|
|
|
|
color: #b0d944;
|
|
|
|
padding: 0.75rem;
|
|
|
|
font-family: 'Roboto Mono', monospace;
|
|
|
|
font-size: 1rem;
|
|
|
|
line-height: 1.5rem;
|
|
|
|
border-radius: 4px;
|
|
|
|
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
|
|
|
|
resize: none; /* Prevent resizing */
|
|
|
|
overflow-y: hidden; /* Hide scrollbar */
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
height: auto; /* Allow the textarea to grow dynamically */
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea:focus {
|
|
|
|
outline: none; /* Remove focus outline */
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea::placeholder {
|
|
|
|
color: #a0a0a0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Chat container styles */
|
|
|
|
#chat {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex: 1;
|
|
|
|
width: 100%;
|
|
|
|
padding: 1rem;
|
|
|
|
background-color: #1e1e1e;
|
|
|
|
border-radius: 8px;
|
|
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
#message-form {
|
|
|
|
display: flex;
|
|
|
|
margin-top: 1rem;
|
|
|
|
margin-right: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#message {
|
|
|
|
flex: 1;
|
|
|
|
margin-right: 0.5rem;
|
|
|
|
padding-right: 0.5rem;
|
|
|
|
height: 1.5rem; /* Initial single line height */
|
|
|
|
overflow-y: hidden; /* Hide scrollbar */
|
|
|
|
}
|
|
|
|
|
|
|
|
#message:focus {
|
|
|
|
height: auto; /* Allow the textarea to grow dynamically when focused */
|
|
|
|
}
|
|
|
|
|
|
|
|
#message:empty {
|
|
|
|
height: 1.5rem; /* Ensure single line height when empty */
|
|
|
|
}
|