body {
    background-color: #a8a3c5;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.sec {
    display: inline-block;
    background-color: #a5b3e6;
    margin-bottom: 15px;
    border-radius: 10px;
    padding: 5px 15px;
    text-align: justify;
}

footer {
    display: inline-block;
    background-color: #a5b3e6;
    padding: 10px;
    margin-left: 162px;
    border-radius: 5px;
}

a.button {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 10px;
    background-color: #2a3ca4;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

a.button:hover {
    background-color: #888fb1;
    color: #355eaa;
    border: solid 0.25px black;
}

.link-box {
    display: inline-block;
    margin: 10px;
    padding: 10px;
}

ul {
    list-style-type: none;
}

li {
    margin-bottom: 5px;
}

.post {
    display: grid;
    gap: 25px;
    padding-bottom: 20px;
    border-bottom: 5px solid;
    margin-bottom: 20px;
}

.post-content {
    width: 100%;
}

.post-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-featured-image {
    margin: 0;
}

.post-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    padding: 10px;
    background-color: #5a6d90;
    border: 2px solid black;
    box-shadow: 5px 3px 3px black;
}

footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.wrapper {
    width: 672px;
    margin: 0 auto;
    padding: 20px;
    background-color: #8597c0;
}


@media screen and (max-width: 450px) {
    .sec, footer, .wrapper {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    a.button {
        width: 70%;
        text-align: center;
    }

    footer {
        margin-left: 0;
        justify-content: center;
    }

    .post {
        display: block;
    }
}


@media screen and (min-width: 768px) {
    .post {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-content {
        order: -1;
    }
}
