* {
  box-sizing: border-box;
}



h1, h2, h3 {
  text-align: center;
  color: #ffc107;
  text-shadow: 0 0 6px #ffc10788;
}

textarea {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  border: none;
  margin: 10px 0;
  padding: 10px;
  font-size: 16px;
  resize: none;
}

input, button {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
}

button {
  background: #222;
  color: #ffc107;
  border: 1px solid #ffc10744;
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: background 0.3s ease;
}

button:hover {
  background: #ffc10722;
}

.post {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 12px;
  margin: 15px 0;
  box-shadow: 0 0 4px #000;
  transition: all 0.3s ease;
}

.reaction {
  color: #ff6f61;
  margin-top: 8px;
  font-size: 14px;
  cursor: pointer;
}

.post.sad { border-left: 5px solid #7f5af0; }
.post.angry { border-left: 5px solid #ff3c38; }
.post.healed { border-left: 5px solid #38b000; }
.post.toxic { border-left: 5px solid #ff0054; }
.post.love { border-left: 5px solid #ff77ff; }
.post.random { border-left: 5px solid #00f7ff; }

.mood-select {
  margin: 8px 0;
  font-size: 14px;
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.filter-buttons button {
  flex: 1 1 30%;
  padding: 8px;
  font-size: 14px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
}

.typing {
  overflow: hidden;
  white-space: nowrap;
  border-right: .15em solid #ffc107;
  animation: typing 2s steps(30, end), blink .8s infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent }
}

.fade-in {
  animation: fade 0.4s ease-in-out forwards;
  opacity: 0;
}

@keyframes fade {
  to { opacity: 1 }
}

.alt-avatar-preview {
  margin: 12px 0;
  padding: 20px;
  text-align: center;
  font-size: 36px;
  border-radius: 12px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease;
}

.comment-toggle {
  margin-top: 8px;
  color: #aaa;
  cursor: pointer;
  font-size: 14px;
}

.comments {
  padding-left: 10px;
  margin-top: 6px;
}

.comment {
  background: #222;
  border-left: 3px solid #444;
  margin-top: 6px;
  padding: 8px;
  border-radius: 6px;
}

.comment-form {
  margin-top: 6px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  margin: 4px 0;
  padding: 6px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
}

.comment-toggle {
  margin-top: 8px;
  color: #aaa;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.comments {
  padding-left: 10px;
  margin-top: 6px;
  animation: fadeIn 0.3s ease;
}

.comment {
  background: #1b1b1b;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 5px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  margin: 4px 0;
  padding: 6px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
}

.loading {
  font-size: 14px;
  color: #aaa;
  margin: 5px 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

#innerLog {
  margin-top: 10px;
}

.inner-message {
  border-left: 5px solid;
  padding: 8px;
  margin-bottom: 10px;
  background: #1f1f1f;
  border-radius: 8px;
}

.inner-message h4 {
  margin: 0 0 4px 0;
}

.inner-message p {
  margin: 0;
}

#feedScreen button {
  margin-top: 10px;
  padding: 8px 12px;
  background: #292929;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

