/* critserve - web 1.0 aesthetic */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f5f5f0;
  color: #111;
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 16px;
  line-height: 1.6;
}

/* HEADER */

header {
  text-align: center;
  margin-bottom: 12px;
}

#logo {
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  font-weight: bold;
  color: #111;
  display: inline-block;
  border: 1px solid #111;
  padding: 2px 6px;
}

#motto {
  font-style: italic;
  font-size: 12px;
  color: #111;
  margin-top: 2px;
}

/* NAV */

nav {
  margin: 12px 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  text-align: left;
}

.nav-right {
  text-align: right;
  color: #555;
}

nav a {
  color: #111;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

.divider {
  margin: 0 8px;
  color: #999;
}

/* HR */

hr {
  border: none;
  border-top: 1px solid #bbb;
  margin: 16px 0;
}

/* MAIN */

main {
  margin-top: 16px;
}

/* FLASH MESSAGES */

.flash-messages {
  margin: 8px 0;
}

.flash {
  font-size: 12px;
  color: #7a3030;
  font-style: italic;
  margin-bottom: 4px;
}

/* REGISTER / LOGIN */

#register h2 {
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  font-weight: normal;
  margin-bottom: 12px;
  text-transform: lowercase;
  letter-spacing: normal;
}

#register form label,
#register label {
  font-size: 12px;
  color: #111;
}

#register form input[type="text"],
#register form input[type="password"],
#register input[type="text"],
#register input[type="password"] {
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  border: 1px solid #aaa;
  padding: 4px 6px;
  width: 280px;
  background: #fff;
}

#register form input[type="submit"],
#register input[type="submit"] {
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  background: #f5f5f0;
  color: #111;
  border: 1px solid #aaa;
  padding: 6px 16px;
  cursor: pointer;
}

#register form input[type="submit"]:hover,
#register input[type="submit"]:hover {
  background: #e0e0d8;
}

.small {
  font-size: 12px;
  color: #555;
  margin-top: 8px;
}

.small a {
  color: #111;
}

.optional {
  color: #999;
  font-style: italic;
}

/* CRITTER */

#critter-section {
  margin: 16px 0;
}

#critter-wrap {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

#speech-bubble {
  position: relative;
  border: 1px solid #111;
  padding: 8px 12px;
  font-size: 12px;
  max-width: 320px;
  background: #fff;
}

#speech-bubble::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid #111;
}

#speech-bubble a {
  color: #111;
}

#critter {
  width: 30px;
  image-rendering: pixelated;
  order: -1;
  transform: scaleX(-1);
}

/* CRITTER RIGHT */

#critter-wrap-right {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  justify-content: flex-end;
}

#speech-bubble-right {
  position: relative;
  border: 1px solid #111;
  padding: 8px 12px;
  font-size: 12px;
  max-width: 320px;
  background: #fff;
}

#speech-bubble-right::after {
  content: "";
  position: absolute;
  bottom: 12px;
  right: -8px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid #111;
}

#critter-right {
  width: 30px;
  image-rendering: pixelated;
}

/* EXHIBITIONS / DISCUSSION TABLE */

h2 {
  font-size: 12px;
  font-weight: normal;
  margin-bottom: 16px;
}

.thread-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.thread-table thead tr {
  background: #ddd;
}

.thread-table th {
  text-align: left;
  padding: 6px 8px;
  font-weight: bold;
  border: 1px solid #bbb;
}

.thread-table td {
  padding: 6px 8px;
  border: 1px solid #bbb;
  vertical-align: top;
}

.thread-row {
  background: #f5f5f0;
}

.thread-row.alt {
  background: #e8e8e2;
}

.thread-table a {
  color: #111;
  text-decoration: none;
}

.thread-table a:hover {
  text-decoration: underline;
}

.col-gallery { width: 14%; }
.col-exhibition { width: 28%; }
.col-artists { width: 22%; }
.col-dates { width: 18%; }
.col-crits { width: 6%; text-align: center; }
.col-activity { width: 12%; text-align: right; }

/* DISCUSSION TABLE */
.col-thread-title { width: 52%; }
.col-thread-author { width: 20%; }

/* NEW THREAD FORM */

.new-thread-wrap {
  margin-bottom: 12px;
}

.new-thread-form {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.new-thread-form input[type="text"] {
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  border: 1px solid #aaa;
  padding: 4px 6px;
  background: #fff;
  flex: 1;
  min-width: 180px;
}

.new-thread-form input[type="submit"] {
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  background: #f5f5f0;
  color: #111;
  border: 1px solid #aaa;
  padding: 4px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.new-thread-form input[type="submit"]:hover {
  background: #e0e0d8;
}

/* THREAD / POST VIEW */

.thread-header h2 {
  margin-bottom: 4px;
}

.thread-header h2 a {
  color: #111;
  text-decoration: none;
}

.thread-header h2 a:hover {
  text-decoration: underline;
}

.thread-meta {
  font-size: 12px;
  color: #666;
  font-style: italic;
  margin-bottom: 0;
}

.thread-meta a {
  color: #666;
}

.post {
  margin: 0;
  padding: 8px 0;
}

.post-deleted {
  opacity: 0.6;
}

.post-meta {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.post-author {
  font-weight: bold;
  color: #111;
}

.post-flair {
  font-style: italic;
  color: #777;
  font-size: 11px;
}

.post-ts {
  color: #999;
}

.post-content {
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-divider {
  margin: 8px 0;
}

/* DELETE BUTTON */

.delete-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.delete-btn {
  font-family: "Times New Roman", Times, serif;
  font-size: 11px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.delete-btn:hover {
  color: #7a3030;
}

/* POST FORM */

.post-form-wrap {
  margin-top: 16px;
}

.post-form-wrap h2 {
  margin-bottom: 10px;
}

.form-row {
  margin-bottom: 5px;
}

.form-row label {
  font-size: 12px;
  color: #555;
  display: block;
  margin-bottom: 3px;
}

.form-row label strong {
  color: #111;
}

.form-row input[type="text"],
.form-row input[type="password"] {
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  border: 1px solid #aaa;
  padding: 4px 6px;
  width: 280px;
  background: #fff;
}

.form-row textarea {
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  border: 1px solid #aaa;
  padding: 6px 8px;
  width: 100%;
  background: #fff;
  resize: vertical;
  line-height: 1.6;
}

.form-row input[type="submit"] {
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  background: #f5f5f0;
  color: #111;
  border: 1px solid #aaa;
  padding: 6px 16px;
  cursor: pointer;
}

.form-row input[type="submit"]:hover {
  background: #e0e0d8;
}

/* RECENT */

#recent h2 {
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  font-weight: normal;
  margin-bottom: 12px;
  text-transform: lowercase;
  letter-spacing: normal;
}

.placeholder {
  font-size: 12px;
  color: #999;
  font-style: italic;
}

/* REGISTER LAYOUT */

#register-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

#register-form-col {
  flex: 0 0 auto;
}

#register-preview-col {
  flex: 0 0 auto;
  padding-top: 2px;
}

.preview-label {
  font-size: 12px;
  color: #999;
  font-style: italic;
  margin-bottom: 8px;
}

#profile-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #bbb;
  padding: 10px 12px;
  background: #fff;
  min-width: 180px;
}

#preview-pfp-wrap {
  width: 48px;
  height: 48px;
  border: 1px solid #aaa;
  background: #e8e8e2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

#preview-pfp-wrap:hover {
  border-color: #111;
}

#preview-pfp {
  width: 48px;
  height: 48px;
  object-fit: cover;
  display: block;
}

#preview-pfp-placeholder {
  font-size: 20px;
  color: #999;
  line-height: 1;
}

#preview-info {
  font-size: 12px;
}

#preview-username {
  font-weight: bold;
  color: #111;
}

#preview-flair {
  font-style: italic;
  color: #777;
  font-size: 11px;
  display: block;
  margin-top: 2px;
}

/* PROFILE PAGE */

#profile-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-pfp {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid #bbb;
  display: block;
}

.profile-pfp-placeholder {
  width: 64px;
  height: 64px;
  border: 1px solid #bbb;
  background: #e8e8e2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #bbb;
  flex-shrink: 0;
}

.profile-header-info h2 {
  margin-bottom: 2px;
}

.profile-flair {
  font-style: italic;
  color: #777;
  font-size: 11px;
  margin-bottom: 2px;
}

.profile-since {
  color: #999;
  font-size: 11px;
}

/* CRITTER FIXED */

#critter-fixed {
  position: fixed;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  z-index: 100;
}

#speech-bubble-fixed {
  position: relative;
  border: 1px solid #111;
  padding: 8px 12px;
  font-size: 12px;
  max-width: 280px;
  background: #fff;
  font-family: "Times New Roman", Times, serif;
}

#speech-bubble-fixed::after {
  content: "";
  position: absolute;
  bottom: 12px;
  right: -8px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid #111;
}

#speech-bubble-fixed:empty {
  display: none;
}

#critter-fixed-img {
  width: 30px;
  image-rendering: pixelated;
}

/* FOOTER */

footer {
  text-align: left;
  font-size: 12px;
  color: #999;
  font-family: "Times New Roman", Times, serif;
  margin-top: 8px;
}
