html, body {
height: 100%;
margin: 0;
font-family: 'Helvetica Neue', Arial, sans-serif;
background-color: #1e1f22;
color: #e1e1e1;
}
* {
box-sizing: border-box;
transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.container {
display: flex;
flex-direction: column;
height: 100%;
padding: 20px;
}
/* Messages area */
#messages {
flex-grow: 1;
padding: 15px;
overflow-y: auto;
border: 1px solid #333b41;
background-color: #2c2f36;
border-radius: 10px;
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 20px;
}
.message-row {
display: flex;
align-items: flex-start;
gap: 10px;
max-width: 100%;
}
.profile-pic {
width: 50px;
height: 50px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
}
.message-bubble {
background-color: #444c56;
padding: 10px 15px;
border-radius: 20px;
display: flex;
flex-direction: column;
gap: 8px;
word-break: break-word;
}
.message-bubble p {
margin: 0;
line-height: 1.4;
}
/* Media content */
.media-img,
.media-video {
width: 500px;
height: 500px;
object-fit: cover;
border-radius: 10px;
}
/* Input section */
.input-container {
display: flex;
gap: 10px;
align-items: center;
}
input[type="text"] {
flex-grow: 1;
padding: 10px;
border-radius: 20px;
border: 1px solid #444c56;
background-color: #2c2f36;
color: #e1e1e1;
}
input[type="text"]:focus {
outline: none;
border-color: #4c8bf5;
}
/* Button styles */
button {
padding: 10px 20px;
border: none;
border-radius: 20px;
background-color: #4c8bf5;
color: white;
cursor: pointer;
font-size: 16px;
}
button:hover {
background-color: #3978d1;
}
button:active {
background-color: #2962a1;
}
/* Settings overlay */
#settings {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
justify-content: center;
align-items: center;
}
/* Settings content */
.settings-content {
background-color: #2c2f36;
padding: 20px;
border-radius: 10px;
width: 300px;
display: flex;
flex-direction: column;
gap: 10px;
}
.settings-content h2 {
margin-top: 0;
color: #e1e1e1;
}
/* Modal styles */
#mediaModal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.8);
justify-content: center;
align-items: center;
padding: 20px;
}
#mediaModal img,
#mediaModal video {
max-width: 90%;
max-height: 90%;
border-radius: 10px;
object-fit: contain;
}
#mediaModal .close-btn {
position: absolute;
top: 20px;
right: 30px;
font-size: 30px;
color: white;
cursor: pointer;
z-index: 1001;
}
/* ============================= */
/* Light Theme */
/* ============================= */
body.light-theme {
background-color: #f9f9f9;
color: #1a1a1a;
}
body.light-theme #messages {
background-color: #ffffff;
border-color: #dcdcdc;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
body.light-theme .message-bubble {
background-color: #f1f3f5;
}
body.light-theme input[type="text"] {
background-color: #ffffff;
color: #1a1a1a;
border-color: #ccc;
}
body.light-theme input[type="text"]:focus {
border-color: #4c8bf5;
box-shadow: 0 0 0 2px rgba(76, 139, 245, 0.2);
}
body.light-theme button {
background-color: #4c8bf5;
color: white;
}
body.light-theme button:hover {
background-color: #3978d1;
}
body.light-theme button:active {
background-color: #2962a1;
}
body.light-theme .settings-content {
background-color: #ffffff;
color: #1a1a1a;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
body.light-theme .settings-content h2 {
color: #1a1a1a;
}
body.light-theme .media-img,
body.light-theme .media-video {
border: 1px solid #ddd;
}