/* Avoid title going on 2 lines on tablets */
@media only screen and (min-width: 768px) and (max-width: 959px) {
  header h1, header h2 { width: 540px; }
}

h2 {
    /* Make sure floating images do not overlap headers */
    clear: both;
}

em {
    color: inherit;
}

header h1, header h2 {
  font-family: inherit;
}

/* We don't need the sidebar */
#main-content {
    width: 100%;
}

/* Small buttons also on big displays */
header a.button {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    height: auto;
    padding: 5px 10px;
    margin-top: 15px;
    font-size: 13px;
    line-height: 1;
    color: #2879d0;
    text-align: center;
    background-color: #9ddcff;
    background-image: none;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

header a.secondbutton {
    top: 50px;
}

header a.thirdbutton {
    top: 100px;
}

header a.button:hover {
    color: white;
}

/* Nice small button menu */
.menubuttons a.menubutton {
    font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif;
    font-size: 18px;
    display: inline-block;
    width: auto;
    height: auto;
    padding: 5px 10px;
    margin-bottom: 10px; /* For when they tile */
    line-height: 1;
    color: white;
    text-align: center;
    background-color: #2879d0;
    background-image: none;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

.menubuttons a.menubutton:hover {
    color: #9ddcff;
}

.post-date {
   font-style: italic;
}

.post-read {
   text-align:right;
   font-weight: bold;
}

div.home_post_cnt {
    clear: both;
}

.pimg-right-h, .pimg-right-v {
    float: right;
    padding: 5px 0px 10px 15px;
}

.pimg-left-h, .pimg-left-v {
    float: left;
    padding: 5px 15px 10px 0px;
}

.pimg-left-h img, .pimg-right-h img {
    width: 240px;
    height: auto;
}

.pimg-left-v img, .pimg-right-v img {
    width: 180px;
    height: auto;
}

footer {
    text-align: center;
}

@media only screen and (max-width: 768px) {
    header a.button, header a.secondbutton {
        top: 0;
        position: relative;
        display: inline-block;
    }

    .pimg-left-h, .pimg-left-v, .pimg-right-h, .pimg-right_v {
        padding: 15px 0 15px 0;
        float: none;
        display: block;
        width: 100%;
    }
    .pimg-left-h img, .pimg-left-v img, .pimg-right-h img, .pimg-right_v img {
        width: 100%;
        height: auto;
    }

}