/* Reset & base layout */
html, body {
    height: 100%;
    margin: 0;
    padding:0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #222;
}

/* Header */
header {
    background-color: #7482ae;
    color: #ffffff;
    margin:0;
    padding:0;
    text-align: center;
    font-size:1.4rem;
}

header h1 {
    margin: 10px 0 10px 15px;
    font-size: 2.4rem;
}


header h2 {
    margin: 10px 0 15px 15px;
    font-size: 2.0rem;
}

header p {
    margin: 0;
    opacity: 0.95;
}

/* Navigation */
nav {
    background-color: #4c4c61;
    width: 100%;
    font-size:1.4rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    justify-content: center;
}

nav li {
    margin-left: 15px;
    margin-right:15px;
}

nav a {
    display: block;
    padding: 15px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.mainheader {
    width: 100%;
    background-image: url('../logo.png');
    background-repeat: repeat-x;
    background-attachment: fixed;
    background-position: 0 30px;
    opacity: 0.9;
    z-index:1;
    margin-top:0px;
    margin-bottom:0px;
}

.mainheadercontent {
    width: 100%;
    overflow:auto;
    z-index:100;
    padding-top:20px;
}

.mainheadercontent a {
    text-decoration: none;
    color: #ffffff;
}

/* Blog post */
.post {
    text-align: left;
    margin-top: 10px;
}

.post h2 {
    margin-top: 0;
}

.post-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.post-content {
    line-height: 1.6;
    margin-bottom: 1em;
    font-size:1.1rem;
}

.post-content p {
    line-height: 1.6;
    margin-bottom: 1em;
}

.post-tags {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #555;
}

img[src*='#left'] {
    float: left;
    margin-right: 15px;
}
img[src*='#right'] {
    float: right;
    margin-left: 15px;
}
img[src*='#center'] {
    display: block;
    margin-left: 15px;
    margin-right: 15px;
}

.pagination {
	list-style: none;
	padding: 0;
	margin: 3rem 0 1rem;
	text-align: center;
	color: #aaa;
}

.pagination li {
	display: inline-block;
	border: 1px solid #eee;
}

.pagination a, .pagination span {
	display: inline-block;
	padding: 4px 15px;
}

main,
.post-content {
    max-width: 100%;
    box-sizing: border-box;
    margin: 15px;
    font-size:1.1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.contact a:link,
.contact a:active,
.contact a:hover,
.contact a:visited
{
    color: #ffffff;
    text-decoration: none;
}

/* Main content */
main {
    flex: 1; /* pushes footer to bottom on short pages */
    padding-bottom: 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Footer */
footer {
    background-color: #62627c;
    color: #e0e0e0;
    text-align: center;
    padding: 15px 10px;
    font-size: 0.9rem;
}
