html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
.grid-container {
    display: inline-grid;
    grid-template-columns: [header] 40% [content] 2fr [footer] 1fr;
    grid-column: 1fr;
    height: 100vh;
    width: 100%;
}
.header, .footer {
    color: gray;
    background-color: black;
}
.header {
    padding-left: 2em;
    background-image: url("/theme/imgs/zomia.png"), linear-gradient(to top, black, #fffdf1);
    background-size: cover, auto;
    background-position-y: bottom;
    background-repeat: no-repeat;
}

.footer {
    padding: 1em;
}
.footer a {
    color: gray;
}
.footer a:visited {
    color: gray;
}

.footer .subscribe {
    display: block;
    padding-bottom: 0.5em;
    fill: currentColor;
}
.footer .subscribe svg {
    vertical-align: bottom;
}
.footer .subscribe a {
    margin: 0 0.1em;
    transition: color 0.3s;
}
.footer .subscribe a:hover, .footer .social-links a:focus {
    color: #fffdf1;
}

.footer .social-links {
    display: block;
    padding: 0;
    fill: currentColor;
}
.footer .social-links svg {
    vertical-align: middle;
}
.footer .social-links a {
    margin: 0 0.1em;
    transition: color 0.3s;
}
.footer .social-links a:hover, .footer .social-links a:focus {
    color: #fffdf1;
}

.content {
    padding: 1em;
    max-width: 100%;
    overflow-x: auto;
    font-family: i8serif, Helvetica Neue, Arial, sans-serif;
}
.content img {
    max-width: 100%;
    height: auto;
    padding-top: 1em;
}
@media (max-width: 768px) {
    .grid-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: [header] auto [content] 1fr [footer] auto;
        height: 100vh;
    }
    .header, .content, .footer {
        overflow: visible;
    }
}
hr {
    height: 1px;
    color: black;
    border: 0px;
    background-image: linear-gradient(to right, gray, black, gray);
    margin-left: 5%;
    margin-right: 5%;
}
pre code {
    display: block;
    white-space: pre-wrap;
    overflow-x: auto;
    padding: 1em;
}
blockquote {
    font-style: italic;
}
article {
    padding-top: 1em;
}
article h3 {
    font: 22px/16px i8serif, Helvetica Nueve, Arial, sans-serif;
}
.header h1 a, .header h1 a:visited, article h3 a, article h3 a:visited {
    color: gray;
    text-decoration: none;

}
article a {
    color: gray;
}

/* Pagination */
ul.actions.pagination {
    list-style-type: none; /* Remove default list styling */
    padding: 0; /* Remove default padding */
    text-align: center; /* Center the pagination buttons */
    margin: 20px 0; /* Add some margin above and below the pagination */
}

ul.actions.pagination li {
    display: inline-block; /* Display list items inline */
    margin-right: 5px; /* Add some space between buttons */
}

ul.actions.pagination li a {
    text-decoration: none; /* Remove underline from links */
    color: #FFFFFF; /* Set text color */
    background-color: gray; /* Set background color */
    padding: 0px 20px; /* Add padding around the text */
    padding-bottom: 5px;
    border-radius: 2px; /* Add rounded corners to the buttons */
    font-size: xx-large;
    transition: background-color 0.8s; /* Smooth background color transition */
}

ul.actions.pagination li a:hover {
    background-color: black; /* Darken the button background on hover */
}
