/** Custom CSS for UI chrome around card. */

html,
body {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    background-color: rgb(242, 242, 246);
    padding: 20px;
    overflow-x: hidden;
}

body {
    background-color: white;
    max-width: 825px;
    margin-top: 70px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    padding: 0 15px 3rem 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    overflow-x: hidden;

    /** Make sure that remarks position relative to the <body> tag. */
    position: relative;
}

/** Tablets in landscape mode. */
@media only screen and (min-width: 860px) {
    body {
        padding-left: 120px;
        padding-right: 120px;
    }
}

/** Tablets in portrait mode. */
@media only screen and (min-width: 760px) {
    body {
        padding-left: 70px;
        padding-right: 70px;
    }
}

/** Smartphones in landscape or portrait. */
@media only screen and (max-width: 480px) {
    body {
        margin-top: 31px;
    }
}

/** Smartphones in portrait. */
@media only screen and (max-width: 320px) {
    /* Currently no rules. */
}

/** Blog Top Bar. */

.blog-header,
.blog-header * {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.blog-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    margin: 0 auto;
    padding: 0 40px;
    background: white;
    z-index: 10;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;

    display: -webkit-box;      /* Old - iOS 6-, Safari 3.1-6 */
    display: -ms-flexbox;      /* IE 10 */
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    -webkit-flex-direction: row;
    -moz-flex-direction: row;
    flex-direction: row;

    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.blog-header h1,
.blog-header p {
    margin-top: auto;
    margin-bottom: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    -webkit-box-flex: 1;      /* Old - iOS 6-, Safari 3.1-6 */
    width: 50%;               /* For old syntax, otherwise collapses. */
    -webkit-flex: 1 1 auto;
    -moz-flex: 1 1 auto;
    flex: 1 1 auto;
}

.blog-header h1 {
    position: relative;
    top: 4px;
    font: bold 280%/0.8em "Source Sans Pro", Verdana, Helvetica, sans;
    text-transform: lowercase;
    height: 1em;
}

.blog-header p {
    position: relative;
    top: 2px;
    margin-left: 2em;
    line-height: 64px;
    color: #929292;
    text-align: right;
}

/** Smartphones in landscape or portrait. */
@media only screen and (max-width: 480px) {
    .blog-header {
        height: 30px;
    }

    .blog-header h1 {
        font-size: 140%;
        height: 100%;
        top: 6px;
        text-align: center;
    }

    .blog-header p {
        display: none;
    }
}
