body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f8ff;
}

* {
    margin: 0;
    padding: 0;
}

ul li, ol li {
     padding-bottom:0.5em;
}

ul, ol {
     margin-left:2em;
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    margin: 0.6em 0.2em 0.2em 0.2em;
}

p, pre {
    margin: 0.5em;
}

h1 a {
    text-decoration: none;
}

table {
    border-collapse: collapse;
}

td, th {
    border: 1px solid black;
    padding: 0.2em;
}

/* Grid definitions */
.grid-container {
    display: grid;
    justify-items: center;
    justify-content: center;
    grid-template-areas:
    'header header'
    'sidetop main'
    'sidebot main'
    'footer footer';
    grid-template-rows: auto auto 1fr auto;
    grid-template-columns: 270px minmax(0, 1000px);
}

@media (max-width: 1000px) {
    .grid-container {
        grid-template-columns: 200px minmax(0, 1000px);
    }
}
@media (max-width: 700px) {
    .grid-container {
        grid-template-areas:
        'header'
        'sidetop'
        'main'
        'sidebot'
        'footer';
        grid-template-rows: auto;
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Side bar (or top/bottom menu on mobile) styling */
.grid-sidetop { grid-area: sidetop; }
.grid-sidebot { grid-area: sidebot; }

.grid-sidetop, .grid-sidebot {
    width: 100%;
}

.navibox {
    margin: 0.5em;
    padding: 0.5em;
    box-shadow: 0px 1px 4px #888;
    background-color: #e8e8e8;
    border-radius: 0.5em;
}

.navibox h1 {
    font-size: 120%;
    line-height: 1.5em;
}

.sponsorbox h1 {
    font-size: 120%;
    margin-left: 1em;
    line-height: 1.2em;
}

ul.postlist {
    list-style-type: none;
}

.postlist li {
    border-bottom: 1px dashed #ccc;
    margin: 0.5em 0;
}

.postlist li a {
    text-decoration: none;
}

/* Main area styling */
.grid-main {
    grid-area: main;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* Header styling */
.grid-header {
    grid-area: header;
    width: 100%;
    text-align: center;
    /*background-color: #ddd;*/
    font-family: 'Roboto', sans-serif;
}

.grid-header h1 {
    font-size: 240%;
    text-shadow: 1px 1px 2px #ccc;
}

.grid-header h1 a {
    text-decoration: none;
    color: black;
}

.grid-header p {
    margin-bottom: 0.5em;
    padding-bottom: 0.5em;
    color: #888;
    font-size: 80%;
}

/* Content styling */
.post-info {
    color: #888;
    border-bottom: 1px solid #888;
    font-size: 80%;
}

.post-date {
    font-weight: bold;
}

img {
    max-width: 100%;
}

a.cta {
    color: #080;
    padding: 0.3em 0;
    margin: 0.3em 0;
    font-size: 125%;
}

.post {
    border-radius: 0.5em;
    margin: 0.5em;
    padding: 0.5em;
    box-shadow: 0px 1px 4px #888;
    background-color: white;
}

.post h1 {
    font-size: 175%;
}

.comment {
    margin: 0.5em;
    padding: 0.5em;
    background-color: #ccc;
    border-radius: 0.5em;
}

.comment-author {
    font-weight: bold;
}

/* Footer styling */
.grid-footer {
    grid-area: footer;
    width: 100%;
}

.grid-footer {
    text-align: center;
}
