body {
  padding: 0;
  margin: 0;
  background: #22252a;
  color: #eee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 14pt;
  line-height: 150%;
  height: 100vh; /* Full viewport height */
}

table {
  padding: 0;
  margin: 0;
  border-width: 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: inherit;
  font-family: inherit;
}

a { text-decoration: none; color: #888; }
a:hover { text-decoration: underline; color: #aaa; }

/* State classes */
.hidden {
  display: none !important;
}

.visible {
  display: block;
}

.visible-flex {
  display: flex !important;
}

#connect {
  background: #22252a;
  padding: 1em;
}

#connect fieldset  {
  font-family: DejaVu Sans Mono, fixed; 
  width: 30em;
  border: 0;
}

/* Chat layout */
#chat {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#chat.hidden {
  display: none !important;
}

#log {
  flex: 1;
  overflow-y: auto;
  padding: 0.5em;
  background: inherit;
}

#toolbar {
  background: #733;
  padding: 0.5em;
  color: #fff;
}

#entry {
  width: 100%;
  padding: 0.5em;
  margin: 0;
  background: #22252a;
  color: #eee;
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* Message styles */
.notice td, .join td, .part td, .message .date { color: #555; }
.error td { color: #933; }
.personal .nick, .notice .nick { color: #cd5; }

.message {
  margin: 0.1em 0;
}

.message td {
  vertical-align: top;
}

.nick { 
  font-weight: bold;
  padding: 0 1em 0 0.5em;
}

.nick a {
  color: inherit;
}

#toolbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#toolbar li {
  display: inline-block;
  margin: 0 2em 0 0;
}

#usersLink {
  color: inherit;
}

.connect-info {
  margin-bottom: 2em;
  max-width: 40em;
}

.connect-info h1 {
  color: #cd5;
  font-size: 1.5em;
  margin: 0 0 0.5em 0;
}

.connect-info p {
  margin: 0.8em 0;
  line-height: 1.4;
}

.connect-info ul {
  margin: 0.8em 0;
  padding-left: 1.5em;
  list-style: none;
}

.connect-info li {
  margin: 0.5em 0;
  color: #888;
  position: relative;
  padding-left: 1.5em;
}

.connect-info li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #cd5;
}

.connect-note {
  color: #cd5;
  font-style: italic;
}

.connect-form {
  display: flex;
  gap: 1em;
  align-items: center;
}

#connect input {
  background: #333;
  border: none;
  padding: 0.5em;
  color: #eee;
  font-family: inherit;
  font-size: inherit;
}

#connect input[type="submit"] {
  background: #733;
  cursor: pointer;
}

#connect input[type="submit"]:hover {
  background: #844;
}
