body {
  font-family: arial, helvetica, sans-serif;
  color: rgb(30, 30, 30);
  font-size: 14px;
  background-color: rgb(240, 240, 240);
}

hr {
  border: none;
  border-top: 1px solid #aaa;
  margin: 6px 0;
}

a {
  color: blue;
}

a:hover {
  color: red;
}

.post {
  background: #f0e0d6;
  border: 1px solid #d9bfb7;
  padding: 8px;
  margin: 8px 0;
  display: inline-block;
}

div {
  display: block;
  unicode-bidi: isolate;
}

h1 {
  font-size: 26px;
  text-align: center;
}

h3 {
  font-size: 16px;
  margin: 3px;
}

textarea {
  font:
    13px arial,
    helvetica,
    sans-serif;
  width: 300px;
  height: 150px;
}

#what-is {
  max-width: 600px;
  background-color: #fff;
  border: 1px solid #444;
  padding: 10px;
  margin: auto;
}

#board-select {
  max-width: 600px;
  background-color: #fff;
  border: 1px solid #444;
  padding: 10px;
  margin: auto;
  margin-top: 20px;
  text-align: center;
}

#recent-images {
  max-width: 600px;
  background-color: #fff;
  border: 1px solid #444;
  padding: 10px;
  margin: auto;
  margin-top: 16px;
}

#recent-images h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
}

#recent-images-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

#recent-images-grid a img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  display: block;
  border: 1px solid #ccc;
}

#recent-images-grid a img:hover {
  opacity: 0.8;
}

#recent-posts {
  max-width: 600px;
  background-color: #fff;
  border: 1px solid #444;
  padding: 10px;
  margin: auto;
  margin-top: 16px;
}

#recent-posts h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
}

.recent-post {
  display: flex;
  flex-direction: column;
  padding: 5px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}

.recent-post:last-child {
  border-bottom: none;
}

.recent-post-deleted {
  opacity: 0.4;
}

.recent-post-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.recent-post-time {
  color: #888;
  font-size: 11px;
}

.recent-post-content {
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#header {
  text-align: center;
  padding: 40px 20px;
}

#board-description {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #555;
}

#start-thread-link-container {
  margin-top: 50px;
}

#start-thread-link {
  font-size: 20px;
  text-decoration: none;
  font-weight: bold;
}

.post-form {
  margin-left: auto;
  margin-right: auto;
}

#div-list {
  text-align: center;
  font-size: 13px;
}

.post-container {
  vertical-align: top;
  display: inline-block;
  width: 130px;
  height: 250px;
  margin: 10px 20px;
  text-overflow: ellipsis;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.thread-img {
  min-width: 50px;
  min-height: 50px;
}

.small {
  font-size: 12px;
}

.small-threadview {
  font-size: 11px;
}

#static-page {
  max-width: 600px;
  margin: 30px auto;
  background: #fff;
  border: 1px solid #444;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.6;
}

#static-page h2 {
  margin-top: 0;
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
}

#static-page h3 {
  margin-top: 20px;
  font-size: 14px;
}

#static-page ol,
#static-page ul {
  padding-left: 20px;
}

#site-stats {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-top: 16px;
}

#footer {
  padding-top: 30px;
  margin: auto;
  margin-top: 20px;
  text-align: center;
  font-size: 10px;
}

.post-container-threadview {
  padding: 2px 10px 2px 2px;
  display: block;
  margin: 3px 1px;
  width: 98%;
  max-width: 100%;
}

.post-threadview {
  display: inline-block;
  background-color: rgb(220, 220, 220);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.file-thumb {
  float: left;
  margin: 0px 10px 5px 10px;
}

.post-message {
  margin: 10px 15px;
  white-space: pre-wrap;
}

.op-post {
  background-color: rgb(220, 240, 220);
}

.post-info {
  padding: 2px 10px 2px 10px;
}

.bold {
  font-weight: bold;
}

.name {
  color: rgb(245, 70, 70);
}

.post-num {
  color: rgb(10, 120, 20);
  cursor: pointer;
}

.file-info {
  margin: 2px 10px 2px 10px;
}

.infobox-txt {
  float: right;
}

#post-reply-desk {
  text-align: center;
  width: 200px;
  position: absolute;
  margin-left: 50%;
  left: -100px;
}

.popup-hidden {
  display: none;
}

.popup-active {
  display: block;
  position: fixed;
  top: 5px;
  right: 5px;
  z-index: 1000;
  background-color: rgb(220, 220, 220);
  border: 1px solid #b7c5d9;
  padding: 10px;
  min-width: 280px;
}

.popup-reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-weight: bold;
  border-bottom: 1px solid #b7c5d9;
  padding-bottom: 4px;
}

.popup-reply-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.popup-reply-form input[type="text"],
.popup-reply-form textarea {
  width: 100%;
  box-sizing: border-box;
  font:
    13px arial,
    helvetica,
    sans-serif;
}

.popup-reply-form textarea {
  height: 100px;
  resize: vertical;
}

.popup-reply-form button {
  align-self: flex-start;
}

.backlinks {
  padding: 0 10px;
  font-size: 11px;
}

.post-actions {
  font-size: 11px;
  padding: 0 4px;
}

.post-actions button {
  background-color: #eeeeee;
  border: none;
  font-size: 11px;
  padding: 0 4px;
}

.post-actions button:hover {
  background: #c0c8e8;
}

.greentext {
  color: rgb(10, 120, 20);
}

.quote-link {
  text-decoration: none;
}

.quote-link:hover {
  text-decoration: underline;
}

.quote-highlighted,
.quote-hovered {
  background-color: rgb(200, 200, 220);
}

#quote-preview {
  position: absolute;
  z-index: 3000;
  pointer-events: none;
  padding: 4px;
  border: 1px solid #b7c5d9;
  background: rgb(220, 220, 220);
  max-width: 500px;
}

@media only screen and (max-width: 480px) {
  .post-container {
    margin: 10px 8px;
  }

  textarea {
    width: 230px;
  }

  .post-info {
    background-color: rgb(200, 200, 200);
    border-bottom: 1px solid rgb(200, 200, 200);
  }
  .post-threadview {
    width: 100%;
  }
  .infobox {
    font-size: 12px;
  }
  #post-reply-desk {
    display: none;
  }
}
