/* --------------------- Open Props --------------------------- */

/* the props */
@import "https://unpkg.com/open-props";

/* optional imports that use the props */
@import "https://unpkg.com/open-props/normalize.min.css";
@import "https://unpkg.com/open-props/buttons.min.css";

/* ------------------------------------------------------------ */

body {
    font-family: sans-serif;
    text-align: center;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

/* Container for the list of posts */
.posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between cards */
    padding: 20px; /* Padding around the container */
    justify-content: center; /* Center align the posts */
}

/* Individual post card */
.post-card {
    background-color: #fff; /* White background */
    border-radius: 10px; /* Rounded edges */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    overflow: hidden; /* Clip children to rounded edges */
    width: 300px; /* Fixed width for cards */
    padding: 20px; /* Padding inside the card */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2px;
}

/* Title of the post */
.post-title {
    font-size: 1.5em; /* Larger font size for title */
    font-weight: bold; /* Bold text */
    margin-bottom: 10px; /* Space below the title */
    text-align: center;
}

/* Content of the post */
.post-content {
    font-size: 1em; /* Normal font size for content */
    margin-bottom: 10px; /* Space below the content */
    text-align: center;
}

/* Author of the post */
.post-author {
    font-size: 0.9em; /* Slightly smaller font size for author */
    color: #555; /* Gray color for author text */
    text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-align: center;
    margin: 0 auto;
    padding: 2rem;
}

p,
button {
    margin: var(--size-6);
}

body > picture,
button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin: 2rem;
}

pre {
    white-space: pre-wrap; /* CSS3 */
    white-space: -moz-pre-wrap; /* Mozilla */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
}
