body {
  margin: 0;
  background-color: #eeeeee;
  color: #222222;
  font-family: Lato, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  background-color: #ffffff;
  min-height: 100vh;
  box-sizing: border-box;
}

h2 {
  font-weight: 900;
}

td {
  padding: 8px;
  vertical-align: top;
}

.custom-topbar a, .custom-mainbox a {
  color: inherit;
}

.custom-forum a.custom-fakelink, .custom-forum .custom-fakelink {
  color: #0000ff;
}

.custom-forum-thread-profile img {
  display: block;
  width: 128px;
  height: 128px;
}

.custom-center {
  text-align: center !important;
}

.custom-subtitle {
  font-size: 8;
  font-style: italic;
  margin-top: 0;
}

.custom-fakelink {
  text-decoration: underline;
  display: inline;
  white-space: nowrap;
}

.custom-topbar {
  background-color: #dbc8d9;
  border: 1px solid #300548;
  text-align: center;
  color: white;
  margin-bottom: 1rem;
  width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

.custom-topbar h2 {
  margin-bottom: 0;
}

.custom-mainbox {
  background-color: #dbc8d9;
  border: 1px solid #300548;
  text-align: center;
  color: white;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.custom-forum .custom-fakelink {
  color: #0000ff;
}

.custom-forumcontrols span {
  margin-left: 0.2rem;
  margin-right: 0.2rem;
}

.custom-thread-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

tr.custom-table-header {
  background-color: #dbc8d9;
  border: 1px solid #300548;
}

tr.custom-table-header td {
  font-weight: bold;
}

td.custom-forum-pages {
  text-align: right;
}

td.custom-table-pages {
  background-color: #a0a0a0;
  color: white;
  border: 1px solid #300548 !important;
}

.custom-reply-button {
  display: inline-block;
  background: linear-gradient(to bottom, #dbc8d9, #300548);
  margin-left: auto;
  padding: 0.5rem;
  color: white;
  border: 1px #300548;
}

.custom-forum-post-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background-color: #dbc8d9;
}

.custom-post-timestamp {
  font-size: 12px;
}

.custom-forum-thread-profile {
  width: 10rem;
  border-right: 1px solid #300548 !important;
  background-color: #dbc8d9;
}

.custom-profile-subtitle {
  font-size: 13px;
}

.custom-forum-thread-post-meta-row {
  height: 1.5rem;
}

.custom-specialrole {
  color: red;
}

.custom-forum-footer {
  display: flex;
  margin-top: 3rem;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: #aaaaaa;
  font-size: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0 !important;
}

tr {
  border: 1px solid #300548 !important;
}

td {
  border: none !important;
}

@media(max-width: 600px) {
  .custom-thread-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .custom-forum-thread-profile {
    width: 5rem;
  }

}

.forum-quote {
  margin: 0.5rem 0 1rem;
  padding: 0.5rem 0.75rem;
  background-color: #f3eef3;
  border: 1px solid #300548;
  font-size: 14px;
}

.forum-quote-title {
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 0.25rem;
}

.forum-quote p {
  margin: 0.25rem 0;
}

.forum-edited {
  font-size: 12px;
  color: #777777;
  font-style: italic;
}

.forum-post-inner {
  display: flex;
  flex-direction: column;
  min-height: 190px;
}

.forum-post-content {
  margin-bottom: 1.5rem;
}

.forum-signature {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed #b9a6b7;
  font-size: 12px;
  color: #555555;
}

.mod-warning {
  color: red;
  font-weight: bold;
}

.forum-stats {
  margin-top: 1.5rem !important;
  font-size: 14px;
}

.forum-banned {
  color: #999999;
  text-decoration: line-through;
}

.forum-attachments {
  margin: 1rem 0;
  padding: 0.5rem 0.75rem;
  border: 1px dashed #b9a6b7;
  font-size: 12px;
  color: #555555;
}

.forum-attachments-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.forum-attachment img {
  max-width: 100%;
  height: auto;
}

.forum-notice {
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  background-color: #dbc8d9;
  border: 1px solid #300548;
  text-align: center;
}

span.custom-fakelink, p.custom-fakelink, div.custom-fakelink {
  color: #8c8494 !important;
  text-decoration: underline dotted;
  cursor: not-allowed;
}

.custom-topbar span.custom-fakelink, .custom-mainbox span.custom-fakelink {
  color: #ffffff !important;
  opacity: 0.55;
}

.forum-post-content img {
  max-width: 100%;
  height: auto;
}

.custom-youtube-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  border: 0;
}

.forum-lost-image {
  width: 320px;
  max-width: 100%;
  height: 240px;
  margin-bottom: 4px;
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid #b9a6b7;
  background-color: #f3eef3;
  color: #8c8494;
  font-size: 12px;
  overflow: hidden;
}

.forum-profile {
  margin-bottom: 1rem;
}

.forum-profile td.custom-forum-thread-profile {
  vertical-align: middle;
}

.forum-profile td.custom-forum-thread-profile img {
  margin: 0 auto;
}

.forum-profile-fields {
  font-size: 14px;
}

.forum-profile-fields tr {
  border: none !important;
}

.forum-profile-fields td {
  padding: 3px 6px;
}

.forum-profile-fields td:first-child {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  font-weight: bold;
}

.forum-profile-split {
  display: flex;
  gap: 1rem;
}

.forum-profile-split .forum-profile {
  flex: 1;
  align-self: flex-start;
}

@media (max-width: 600px) {
  .page {
    padding: 10px 8px 30px;
  }

  .wide-only {
    display: none;
  }

  .custom-forum-thread-profile img {
    width: 100%;
    height: auto;
  }

  .custom-forum-thread-profile {
    font-size: 12px;
  }

  .custom-topbar {
    width: auto;
  }

  .forum-lost-image {
    height: 160px;
  }

  .custom-fakelink, .custom-post-timestamp {
    white-space: normal;
  }

  .forum-post-content, .forum-signature {
    overflow-wrap: break-word;
  }

  .custom-forum-thread-profile {
    min-width: 5.5rem;
  }

  .forum-lost-image {
    width: 100%;
  }

  .forum-profile-split {
    display: block;
  }

  .forum-profile-fields td {
    overflow-wrap: anywhere;
  }
}
