/* Website Design © Copyright © 2009-2026. Chaotic Chat all rights reserved */

body {
	font-family: Arial, Helvetica, sans-serif;
	min-width: 960px;
	margin: 0;
}
img {
	border: 0;
}
.wrapper {
	width: 960px;
	margin: 0 auto;
}

/** Visually hides text for screen readers while keeping it out of the visual layout **/
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
/** Skip link becomes visible when it receives keyboard focus **/
.visually-hidden:focus {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	padding: 8px 16px;
	overflow: visible;
	clip: auto;
	white-space: normal;
	background-color: #09253a;
	color: #fff;
	display: inline-block;
	z-index: 2000;
}
/*------------------------------ HEADER ------------------------------*/
.clearfix:after {
	clear:both;
	content:"";
	display:block;
	height:1%;
}
#header {
	font-family: Arial, Helvetica, sans-serif;
	background-color: #09253a;
	height: 50px;
	padding: 16px 0 10px;
	text-align: right;
}
/** Logo **/
#logo {
	float: left;
	display: inline-block;
	margin-left: 10px;
}
/** Navigation **/
#navigation {
	height: 30px;
	list-style: none;
	margin: 10px; 10px;
	padding: 0;
*width: 516px; /** Needed for IE7 **/
}
#navigation li {
	float: left;
	margin: 0 10px;
}
#navigation li:first-child {
	margin-left: 0;
}
#navigation li a {
	color: #efefef;
	font-size: 17px;
	line-height: 30px;
	padding: 0;
	text-decoration: none;
}
#navigation li a:hover,
#navigation li a:focus,
#navigation li.selected a {
	color: #44b2f1;
}
#navigation li a:focus {
	outline: 2px solid #44b2f1;
	outline-offset: 2px;
}

/*------------------------------ HIGHLIGHT BAR ------------------------------*/
.highlight {
    background: #171a1a url(images/ccheading.jpg) repeat-x left top;
    min-height: 82px; border-color: #000; border-style: solid none; border-width: 1px;
}
.highlight h1 {
    font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #fdfdfd; font-size: 34px; font-style: italic; line-height: 82px; transform: translateX(-50px);
    width: 940px; margin: 0 auto; text-align: center; padding: 0; text-shadow: -3px 0 3px #121413;
}
/*------------------------------ FOOTER ------------------------------*/
#footer {
	font-family: Arial, Helvetica, sans-serif;
	background-color: #09253a;
	border-top: 1px solid #09253a;
}
#footer .body {
	background: #09253a url(images/ccfooter.jpg) no-repeat center top;
	min-height: 136px;
	padding: 36px 0;
	overflow: hidden;
}
#footer p {
	color: #7890a1;
	font-size: 12px;
	line-height: 24px;
	margin: 0;
	padding: 0 0 6px;
}
#links {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 40px;
	list-style: none;
	width: auto;
	float: none;
	margin: 0 0 24px;
	padding: 0;
}
#links li {
	float: none;
	margin: 0;
	background: none;
	padding: 0;
}
.social-link {
	display: block;
	text-align: center;
	color: #7890a1;
	font-size: 12px;
	line-height: 24px;
	text-decoration: none;
}
.social-link:hover,
.social-link:focus {
	color: #e8eff4;
}
#newsletter {
	float: none;
	width: 100%;
	margin: 0;
}
#contents {
	background: #060c19 url(images/cccontent.png) repeat-x center top;
	margin: 0;
	padding: 56px 0 0;
	overflow: hidden;
}
#contents p {
	color: #e8eff4;
	font-size: 16px;
	line-height: 24px;
	margin: 0;
	padding: 0 0 30px;
	text-align: left;
}
#contents p a {
	color: #e8eff4;
}
#contents p a:hover {
	color: #0aa3fa;
}
#contents {
	font-family: Arial, Helvetica, sans-serif;
}
/*------------------------------ ROOM-SPECIFIC (existing) ------------------------------*/
/* Deliberately plain — old-school text chat feel, not a modern app UI. */
body {
  font-family: Georgia, "Times New Roman", Times, serif;
  background: #060c19;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
}
/* Old Xitami rooms filled the whole browser window (a real <frameset>);
   780px looked cramped by comparison. width:97% + a generous max-width
   keeps it nearly full-page on a normal monitor while still capping out
   on an ultrawide, and still centers itself with margin:auto on anything
   narrower. */
#ccwrap {
  width: 97%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 16px;
}
#ccnav {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  background: #10182b;
  padding: 8px 12px;
  border: 1px solid #2a3a5c;
}
#ccnav a {
  color: #8fc7ff;
  text-decoration: none;
}
#ccnav a:hover {
  text-decoration: underline;
}
h1, h2 {
  font-weight: normal;
}
.topic {
  font-style: italic;
  color: #aab8d0;
}
/* Top banner: compose bar + room controls, pinned above the scrolling
   log. Stands in for the old Xitami frameset's BANNER frame. */
#cc-banner {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #10182b;
  border: 1px solid #2a3a5c;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}
#cc-banner .cc-banner-links a {
  color: #8fc7ff;
  text-decoration: none;
}
#cc-banner .cc-banner-links a:hover {
  text-decoration: underline;
}
#cc-banner .cc-banner-links label {
  margin-left: 8px;
  color: #aab8d0;
}
#cc-banner p {
  margin: 6px 0 0;
}
#cc-banner #cc-post-form {
  margin-top: 6px;
  display: flex;
  height: 100px;
  align-items: center;
}
#cc-banner #cc-post-form input[type="text"] {
  flex: 1;
}
#cc-messages {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
  background: #0b1120;
  border: 1px solid #2a3a5c;
  padding: 10px;
  height: 600px;
  overflow-y: auto;
  margin-bottom: 8px;
}
.msg {
  padding: 2px 0;
  border-bottom: 1px solid #141c30;
}
.msg-nick {
  color: #8fc7ff;
  font-weight: bold;
  vertical-align: top;
  max-width: 100%;
}
/* Styled persona names (nickname_html) render as their own full-width
   block instead of a shrink-to-fit inline-block — otherwise a <center>
   tag in the (pre-sanitized) markup only has its own tiny box to center
   within, not the room's actual width, and ends up looking left-aligned
   with just relative indentation between lines. */
.msg-styled .msg-nick {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 2px;
  overflow: hidden; /* contain a floated persona <img align="left/right">, and (for the unified body_html render) the floated .msg-time nested inside this same box, so neither renders overlapping the text below/beside it */
}
/* The <center> tag itself is the other half of this bug: WebKit/Blink's
   UA stylesheet renders <center> with text-align:-webkit-center, which
   shrink-wraps the element to its content width and centers THAT box —
   not the same as centering text within a full-width box. That's why
   the previous fix above (making .msg-nick full width) wasn't enough
   on its own: the <center> tag nested inside it was still shrinking
   itself. Force a plain, full-width text-align:center so it behaves
   the same as it does in every non-WebKit-quirky context. */
.msg-nick center {
  display: block;
  width: 100%;
  text-align: center;
}
/* A persona <img> without explicit width/height attributes renders at its
   native pixel size by default, which can badly overflow the message box
   (the sanitizer clamps width/height IF given — see cc_sanitize_display_html()
   in includes/sanitize.php — but doesn't invent them when absent). Scaling
   down to fit here is a pure CSS safety net on top of that, not a
   replacement for it. */
.msg-nick img {
  max-width: 100%;
  height: auto;
}
.msg-styled .msg-line {
  overflow: hidden; /* contain the floated .msg-time below (legacy split render only — the unified body_html render nests .msg-time inside .msg-nick instead, see above) */
}
.msg-time {
  color: #5a6a8c;
  font-size: 0.85em;
  float: right;
}
.msg-deleted {
  color: #5a6a8c;
  font-style: italic;
}
form input[type="text"],
form input[type="password"],
form input[type="email"] {
  font-family: Consolas, "Courier New", monospace;
  background: #10182b;
  border: 1px solid #2a3a5c;
  color: #e0e0e0;
  padding: 4px 6px;
}
form button {
  font-family: Consolas, "Courier New", monospace;
  background: #1c2a4a;
  color: #e0e0e0;
  border: 1px solid #3a4a70;
  padding: 4px 10px;
  cursor: pointer;
}
form button:hover {
  background: #2a3a5c;
}
form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.notice, .error, .success {
  padding: 6px 10px;
  border: 1px solid;
  margin-bottom: 10px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}
.error   { border-color: #a33; background: #2a1010; color: #ff9a9a; }
.success { border-color: #3a6; background: #0f2a17; color: #9affb0; }
.notice  { border-color: #557; background: #10182b; color: #b8c8e0; }
ul { line-height: 1.8; }
/* Room list page: total-online banner + per-room roster, styled after
   the old whochat.php (a total user count up top, each room showing who's
   currently in it), just adapted to this app's own card/grid look rather
   than reproducing whochat.php's category sections and full owner/mod
   role legend one-for-one. */
.online-banner {
  background: #10182b;
  border: 1px solid #2a3a5c;
  padding: 8px 12px;
  margin-bottom: 16px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
}
.online-banner strong {
  color: #8fc7ff;
}
.room-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.room-card {
  border: 1px solid #2a3a5c;
  background: #0b1120;
  padding: 10px 14px;
}
.room-card h3 {
  margin: 0 0 4px;
  font-weight: normal;
}
.room-card h3 a {
  color: #8fc7ff;
  text-decoration: none;
}
.room-card h3 a:hover {
  text-decoration: underline;
}
.room-topic {
  font-style: italic;
  color: #aab8d0;
  font-size: 0.9em;
  margin: 0 0 8px;
}
.room-here {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  margin: 0;
}
.room-here .empty {
  color: #5a6a8c;
  font-style: italic;
}
.badge {
  display: inline-block;
  font-size: 0.75em;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}
.badge-mod {
  background: #4a3010;
  color: #e0b34d;
  border: 1px solid #6a4a20;
}
.badge-roommod {
  background: #103a3a;
  color: #4dc9c0;
  border: 1px solid #205a5a;
}
/* Persona ("codes") management page. */
.persona-block {
  border: 1px solid #2a3a5c;
  background: #0b1120;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.persona-preview {
  background: #10182b;
  border: 1px solid #2a3a5c;
  padding: 8px 12px;
  min-height: 1.5em;
  overflow: hidden; /* contain a floated <img align="left/right"> so the border wraps the whole preview, not just the text above the image */
}
/* Same overflow safety net as .msg-nick img above, for the persona-editing
   preview on My Personas / the room entry gate. */
.persona-preview img {
  max-width: 100%;
  height: auto;
}

.room-entry-box {
	max-width: 480px;
	margin: 20px auto;
	padding: 20px 24px;
	background: #09253a;
	border: 1px solid #14344d;
	font-family: Georgia, "Times New Roman", Times, serif;
	color: #e8eff4;
}
.room-entry-heading {
	text-align: center;
	margin-bottom: 18px;
	line-height: 1.6;
	color: #e8eff4;
}
.room-entry-box a {
	color: #8fc7ff;
}
.room-entry-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.room-entry-row label {
	width: 110px;
	flex-shrink: 0;
	text-align: left;
}
.room-entry-row select,
.room-entry-row input[type="text"] {
	font-family: Arial, Helvetica, sans-serif;
	padding: 3px 6px;
	border: 1px solid #999;
	background: #fff;
	color: #000;
	flex: 1;
}
.room-entry-hint {
	font-size: 0.85em;
	color: #aab8d0;
	margin: 4px 0 12px;
}
.room-entry-submit {
	margin: 6px 0 0;
}
.room-entry-skip {
	text-align: center;
	margin-top: 12px;
	font-size: 0.9em;
}
