Spaces:
Running
Running
/* Base styles */ | |
body { | |
font-family: sans-serif; | |
background: #f0f0f0; | |
padding: 10px; | |
margin: 0; | |
} | |
#chatContainer { | |
max-width: 100%; | |
width: 100%; | |
max-width: 420px; | |
margin: 10px auto; | |
background: #fff; | |
padding: 12px; | |
border-radius: 10px; | |
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | |
} | |
/* Title */ | |
#chatroom-title { | |
font-weight: bold; | |
text-align: center; | |
margin-bottom: 10px; | |
font-size: 1.2rem; | |
} | |
/* Chat box */ | |
#chat { | |
height: 60vh; | |
overflow-y: auto; | |
border: 1px solid #333; | |
background: #f9f9f9; | |
padding: 10px; | |
border-radius: 6px; | |
box-sizing: border-box; | |
} | |
/* Messages */ | |
#chat .me { | |
color: blue; | |
font-weight: bold; | |
word-wrap: break-word; | |
} | |
#chat .other { | |
color: green; | |
font-weight: bold; | |
word-wrap: break-word; | |
} | |
#chat .status { | |
color: gray; | |
font-style: italic; | |
word-wrap: break-word; | |
} | |
/* Input & Buttons */ | |
input[type="text"], input[type="number"], select { | |
width: 100%; | |
padding: 8px; | |
margin: 6px 0; | |
box-sizing: border-box; | |
border: 1px solid #ccc; | |
border-radius: 6px; | |
font-size: 1rem; | |
} | |
button { | |
width: 100%; | |
padding: 10px; | |
margin-top: 6px; | |
font-size: 1rem; | |
background-color: #4285f4; | |
color: white; | |
border: none; | |
border-radius: 6px; | |
cursor: pointer; | |
} | |
button:hover { | |
background-color: #3367d6; | |
} | |
/* Responsive tweaks */ | |
@media screen and (max-width: 480px) { | |
#chatContainer { | |
margin: 5px; | |
padding: 10px; | |
box-shadow: none; | |
} | |
#chatroom-title { | |
font-size: 1rem; | |
} | |
button { | |
font-size: 0.95rem; | |
padding: 9px; | |
} | |
} |