.reddit-posts-container {
  margin-top: 20px;
  max-width: 100%;

  .reddit-posts {
    margin-top: 1em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }

  h3 {
    margin-bottom: 15px;
    color: var(--colour-neutral-000);
  }

  .reddit-post-link {
    text-decoration: none;
    color: inherit;
    max-width: 100%;
    flex-basis: 30em;
    flex-grow: 0;
    flex-shrink: 0;
  }

  .reddit-post {
    display: flex;
    gap: 1rem;
    background-color: var(--colour-neutral-1000);
    padding: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;

    .upvote-container {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
      align-items: center;
      justify-content: center;
    }

    &:hover {
      background-color: var(--colour-neutral-900);
      cursor: pointer;
    }

    h4 {
      margin: 0;
      color: var(--colour-neutral-000);
    }

    p {
      margin: 5px 0;
      color: var(--colour-neutral-400);
    }
  }

  .loading,
  .error {
    color: var(--colour-neutral-000);
  }
}
