.devblog-container {
    width: 100%;
    margin: 0 auto;
}

.devblog-container a {
    text-decoration: none;
    color: white;
}

.devblog-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    width: 100%;
    border: 2px solid white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-sizing: border-box;
    background-color: #292929;
}

.devblog-item img {
    border-radius: 10px;
    width: 80px;
    height: auto;
    flex-shrink: 0;
    margin: 0.25rem 0.5rem 0.25rem 0.5rem;
}

.devblog-text {
    font-family: OpenSans;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

.devblog-title-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.devblog-text h1 {
    margin: 0.5rem 0 0.25rem 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

.devblog-text h3 {
    margin: 0.5rem 0 0.25rem 0;
    font-size: 1rem;
    line-height: 1.2;
    position: static;
}

.devblog-text hr {
    border: none;
    width: 75%;
    height: 2px;
    background-color: white;
    margin: 0.25rem 0 0.5rem 0;
}

.devblog-text p {
    margin: 0.5rem 0 0.5rem 0;
    font-size: 1rem;
}

.attachment {
    display: inline-block;
    background-color: #333333;
    padding: 1em;
    border-radius: 10px;
    margin-top: 20px;
}

.blog-post {
    background-color: #181818;
    box-sizing: border-box;
    margin: 3rem calc(30vw - 175px);
    padding: 2vw;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    font-family: OpenSans;
    color: #E0E0E0;
    line-height: 1.8em;
}

.blog-post a {
    color: #ffa500;
}

.blog-post h1, 
.blog-post h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.blog-post code {
    font-family: 'JetBrains';
    background-color: #2e2e2e;
    padding: 0.2rem 0.4rem;
    border-radius: 5px;
}

.blog-post hr {
    border: none;
    height: 2px;
    background-color: #444;
    margin: 2rem 0;
}

.blog-post .attachment {
    display: inline-block;
    background-color: #333333;
    padding: 1em;
    border-radius: 10px;
    margin-top: 20px;
}

.blog-post ul {
    line-height: 2.3rem;
}

.blog-post table {
    display: block;
    margin: auto;
    width: max-content;
    max-width: 100%;
    border: 1px solid white;
    border-spacing: 0 0;
    border-collapse: collapse;
    overflow-x: scroll;
}

.blog-post td {
    border: 1px solid rgba(255, 255, 255, 0.421);
    padding: 5px;
}

.blog-post th {
    padding: 5px;
    border: 1px solid white;
}

.blog-post img {
    display: block;
    margin: auto;
}

.inline-path {
    font-family: 'JetBrains';
    display: inline;
    margin: auto;
    background-color: #292929;
    border-radius: 4px;
    padding: 0.1em 0.4em;
}

.inline-path img {
    display: inline-block;
    margin-right: 2px;
    margin-top: -3px;
    vertical-align: middle;
    height: 1.2rem;
}

.imgcap {
    display: flex;
    align-items: center;
    gap: 25px;
    padding-inline: 20px;
    max-width: 100%;
    height: min-content;
}

.imgcap img {
    float: left;
    max-width: 45%;
    height: auto;
    margin: 0;
}

.imgcap p {
    max-width: 55%;
}

.blog-post pre code {
    border-radius: 10px;
}

@media (max-width: 768px) {
    html,
    .blog-post {
        overflow-x: clip;
    }
    .blog-post {
        margin: 0;
    }
    .blog-post {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }
    .blog-post {
        max-width: none;
        width: 100%;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        box-sizing: border-box;
    }
    .imgcap {
        flex-direction: column;
        align-items: flex-start;
    }
    .imgcap img {
        max-width: 100%;
        height: auto;
    }
    .imgcap p {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .devblog-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .devblog-item img {
        align-self: center;
        width: 30%;
        margin: 0 0 0.5rem 0;
    }
    .devblog-text h1 {
        font-size: 1.25rem;
    }
    .devblog-text p {
        font-size: 0.9rem;
    }
}
