:root {
    --pico-typography-spacing-vertical: 1.5rem;
    --pico-form-element-spacing-vertical: 1rem;
    --pico-form-element-spacing-horizontal: 1.25rem;
}

button[type="submit"] {
  width: inherit;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.post-item {
  display: flex;
  flex-direction: row;
}

.post-item-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.post-item h2 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.post-item h2 small {
  font-size: 0.7em;
  padding-left: 0.5rem;
  line-height: 1.2em;
  color: var(--text-secondary);
}

.post-item h3 {
  font-size: 1rem;
  margin:0px;
  min-width: 1.7rem;
  text-align: right;
}

.post-item-content > main {
  flex: 1;
}

.comment-meta {
  line-height: 1.5rem;
}

.post-item-vote, .comment-item-vote {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.4rem;
  margin-left: 0.2rem;
  cursor: pointer;

  img {
    width: 80%;
    height: 80%;
    vertical-align: top;
    margin: 10%;
  }
}

.item-meta {
  font-size: 0.7rem;
}


/* rotate classes 90 180, 270 */
.rotate-90 {
  transform: rotate(90deg);
}
.rotate-180 {
  transform: rotate(180deg);
}
.rotate-270 {
  transform: rotate(270deg);
}

a.link-button {
  cursor: pointer;
  text-decoration: none !important;
}

.comment-form {
  max-width: 500px;
}

.item-view {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  h1 {
    font-size: 1.5rem;
    margin-bottom: 0px;
  }
}

.comment-content {
  display: flex;
}

.comment {
  p {
    margin: 0px;
    font-size: 1rem;
  }

  a {
    font-size: 0.8rem;
  }
}

.comments {
  display: flex;
  flex-direction: row;
}

.comment-item-vote {
  margin-top: 0.2rem;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  background-image: url('/static/bg.svg');
  background-repeat: repeat;
}

body > main {
  flex: 1;
}