/* ==========================================================================
   Oekaki page layout
   ========================================================================== */

/* ChickenPaint container */
.win98-box {
  border: 2px inset #808080;
  background-color: #d4d0c8;
  padding: 12px;
  margin-top: 10px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   Post info form (username / description above ChickenPaint)
   ========================================================================== */

.oekaki-post-form {
  background-color: #d4d0c8;
  border: 2px inset #808080;
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oekaki-form-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.oekaki-form-row label {
  min-width: 90px;
  font-weight: bold;
  font-size: 14px;
  padding-top: 4px;
}

.oekaki-form-row input,
.oekaki-form-row textarea {
  flex: 1;
  min-width: 0;
  font-family: "Tahoma", "Verdana", sans-serif;
  font-size: 13px;
  padding: 4px 6px;
  border: 2px inset #808080;
  background-color: #fff;
  resize: vertical;
  box-sizing: border-box;
}

/* ==========================================================================
   Oekaki board (post listing)
   ========================================================================== */

.oekaki-board {
  border: 2px inset #808080;
  background-color: #d4d0c8;
  padding: 0;
  margin-top: 10px;
}

#oekaki-board .title-bar {
  background: linear-gradient(to right, #000080, #0000a0);
  color: white;
  padding: 4px 8px;
  font-weight: bold;
  font-size: 14px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px;
}

.oekaki-empty {
  text-align: center;
  padding: 24px;
  color: #555;
  font-style: italic;
}

/* ==========================================================================
   Individual post
   ========================================================================== */

.oekaki-post {
  background-color: #ffffff;
  border: 2px inset #808080;
  margin-bottom: 12px;
}

.oekaki-post-header {
  background-color: #c0c0c0;
  border-bottom: 1px solid #808080;
  padding: 6px 10px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.oekaki-post-username {
  color: #000080;
  font-size: 14px;
}

.oekaki-timestamp {
  color: #555;
  font-size: 11px;
}

.oekaki-post-image-wrap {
  padding: 10px;
  text-align: center;
  background-color: #f0f0f0;
  border-bottom: 1px solid #d0d0d0;
}

.oekaki-post-image {
  max-width: 100%;
  max-height: 600px;
  height: auto;
  display: inline-block;
  border: 2px inset #808080;
  cursor: pointer;
}

.oekaki-post-description {
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  border-bottom: 1px solid #d0d0d0;
}

/* ==========================================================================
   Comments section
   ========================================================================== */

.oekaki-comments-section {
  padding: 8px 10px 10px;
}

.oekaki-comments-title {
  font-weight: bold;
  font-size: 13px;
  color: #000080;
  border-bottom: 1px solid #c0c0c0;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.oekaki-comments-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.oekaki-no-comments {
  font-size: 12px;
  color: #888;
  font-style: italic;
  padding: 4px 0;
}

.oekaki-comment {
  background-color: #f5f5f5;
  border: 1px solid #d0d0d0;
  padding: 6px 8px;
  font-size: 13px;
}

.oekaki-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.oekaki-comment-header strong {
  color: #000080;
  font-size: 12px;
}

.oekaki-comment-text {
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Comment form */
.oekaki-comment-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid #c0c0c0;
  padding-top: 8px;
}

.oekaki-comment-name {
  font-family: "Tahoma", "Verdana", sans-serif;
  font-size: 12px;
  padding: 3px 5px;
  border: 2px inset #808080;
  background-color: #fff;
  max-width: 200px;
}

.oekaki-comment-input {
  font-family: "Tahoma", "Verdana", sans-serif;
  font-size: 12px;
  padding: 4px 6px;
  border: 2px inset #808080;
  background-color: #fff;
  resize: vertical;
  min-height: 36px;
}

.oekaki-comment-submit {
  align-self: flex-end;
  font-size: 12px;
  padding: 3px 12px;
}
