body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #e4e0e0
}

#entry_toggle {
  order: 1;
}

#image_display {
  order: 2;
}

#comment_form_div {
  order: 3;
}

#outerCommentSection {
  order: 4;
}

#comment_buttons {
  order: 5;
}

#image_display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
}

#buttons {
  display: flex;
  justify-content: space-between;
  width: 220px;
}

#backwards {
  order: 1;
}

#delete {
  order: 2;
}

#forwards {
  order: 3;
}

#comment_buttons {
  display: flex;
  justify-content: space-between;
  width: 220px;
  margin-top: 20px;
}

#comment_backwards {
  order: 1;
}

#comment_forwards {
  order: 2;
}

#buttons > div,
#comment_buttons > div {
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}

#buttons > div:hover,
#comment_buttons > div:hover {
  transform: scale(1.1);
  opacity: 0.7;
}


#entry_toggle {
  padding: 10px 16px;
  border: 1px solid #333;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#entry_toggle:hover {
  background: #333;
  color: #fff;
}


#comment_form_div,
#image_entry {
  width: 650px;
  margin-top: 20px;
}

#comment_form,
#image_form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
}

form button {
  padding: 10px;
  border: none;
  border-radius: 4px;
  background: #333;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

form button:hover {
  background: #555;
}


#curr_titile {
  margin-top: 16px;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
}

#curr_author {
  margin-top: 4px;
  font-size: 0.9rem;
  font-style: italic;
  color: #666;
}


#outerCommentSection {
  width: 650px;
  margin-top: 24px;
}

#comment_section {
  font-size: 1.1rem;
  font-weight: 600;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid #ccc;
}

#outerCommentSection p {
  margin: 0 0 4px;
  /* line-height: 1.4; */
}


.comment {
  margin-bottom: 16px;
}

.comment_content {
  font-weight: 500;
}

.comment_author,
.comment_date {
  font-size: 0.85rem;
  color: #777;
}

.comment_delete {
  font-size: 0.8rem;
  color: #b33;
  cursor: pointer;
  transition: color 0.15s ease;
}