main {
  padding: 16px var(--padding) 256px var(--padding);
}

main .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

main .title h1 {
  font-size: 64px;
}

main .title span {
  font-size: 20px;
  font-weight: 700;
}

main .back {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 16px;
}

main .content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

main .content ul,
main .content ol {
  margin-left: 24px;
}

main .content img {
  max-width: 100%;
  max-height: 500px;
}

main .comments {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

main .comments>h1 {
  margin-bottom: -24px;
}

main .comments .new {
  border: 2px solid var(--border);
  padding: 8px;
  border-radius: 8px;
}

main .comments .new form {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

main .comments .new form input[name=id],
main .comments .new form input[name=reply] {
  display: none;
}

main .comments .new form input[type=text],
main .comments .new form textarea {
  font-size: 16px;
  padding: 8px 16px;
  background-color: var(--background-hl);
  border: 2px solid var(--border);
  border-radius: 8px;
  outline: 0;
}

main .comments .new form textarea {
  resize: vertical;
  min-height: 64px;
}

main .comments .new form input[type=submit] {
  font-size: 16px;
  padding: 8px 16px;
  background-color: var(--background-hl);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;

}

main .comments .other {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
}

main .comments .other .el {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
}

main .comments .other .el .c-title {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

main .comments .other .el .c-title .left {
  display: flex;
  flex-direction: column;
}

main .comments .other .el .c-title .left .replyto {
  color: gray;
}

main .comments .other .el .c-content {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

main .comments .other .el .c-content p {
  overflow-wrap: break-word;
  word-break: normal;
}

main .comments .other .replies {
  margin-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

main .comments .other .replies .replies .replies {
  margin-left: 0;
}

@media screen and (max-width: 900px) {
  main .title {
    flex-direction: column;
    justify-content: center;
  }

  main .title h1 {
    text-align: center;
  }
}

@media screen and (max-width: 500px) {
  :root {
    --padding: 16px;
  }
}

@media screen and (max-width: 400px) {
  :root {
    --padding: 8px;
  }

  main .title h1 {
    font-size: 48px;
  }
}

.not-found {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
