/*
Theme Name: Blog Material
Theme URI: https://github.com/Laruxo/blog-material
Author: Laurynas Baltrenas
Author URI: http://laubal2.stud.if.ktu.lt/
Description: Blog focused theme using Material Design Lite framework. Design of this theme is based on https://getmdl.io/templates/blog/index.html template.
Version: 1.0
License: Apache License, Version 2.0
License URI: https://www.apache.org/licenses/LICENSE-2.0
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
Text Domain: blog-material
*/

@media screen and (max-width: 1024px) {
    .mdl-layout__drawer-button {
        color: #fff;
    }
}

body {
    font-family: 'Roboto', 'Helvetica', sans-serif;
}

body.custom-background {
    background-size: cover;
}

.blog-posts {
    display: -webkit-box;
    display: flex;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    flex-shrink: 0;
}

.mdl-layout-title .custom-logo {
    width: auto;
    max-height: 32px;
}

.mdl-layout__header-row > .mdl-navigation .sub-menu {
    padding: 0;
}

.mdl-layout__header--transparent {
    color: inherit;
}

.mdl-layout__header--transparent ~ .mdl-layout__drawer-button {
    color: inherit;
}

.mdl-layout__header--transparent .mdl-layout__header-row .mdl-navigation__link {
    color: inherit;
    font-weight: 500;
}

.mdl-layout__header--transparent .mdl-layout__header-row .mdl-layout-title {
    font-weight: 600;
}

.menu-item .sub-menu {
    margin: 0;
}

main.mdl-layout__content {
    position: relative;
    padding-top: 230px;
    -webkit-overflow-scrolling: touch;
}

.mdl-card {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    min-height: 360px;
    -webkit-box-align: stretch;
    align-items: stretch;
}

.mdl-card__title {
    padding: 16px;
    background-color: #263238;
    -webkit-box-flex: 1;
    flex-grow: 1;
}

.page .mdl-card__media {
    min-height: 140px;
}

.mdl-card__media {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
    box-sizing: border-box;
    min-height: 280px;
    padding: 24px;
    cursor: pointer;
    background-size: cover;
    -webkit-box-flex: 1;
    flex-grow: 1;
    -webkit-box-align: end;
    align-items: flex-end;
}

.mdl-card__media a,
.mdl-card__title a {
    color: inherit;
}

.mdl-card__supporting-text {
    display: -webkit-box;
    display: flex;
    box-sizing: border-box;
    width: 100%;
    min-height: 64px;
    padding: 16px;
    color: #616161;
    -webkit-box-align: center;
    align-items: center;
}

.mdl-card__supporting-text p {
    margin: 0;
}

.mdl-card__supporting-text blockquote > p {
    font: inherit;
    line-height: inherit;
    display: inline;
    letter-spacing: inherit;
}

body:not(.home) .mdl-card__supporting-text > p,
body:not(.home) .mdl-card__supporting-text > blockquote {
    max-width: 512px;
    margin: 16px auto;
}

.mdl-card__supporting-text pre {
    max-width: 100%;
    overflow: auto;
}

.mdl-card__supporting-text > p {
    font-size: 16px;
    line-height: 28px;
}

.mdl-card__supporting-text figure {
    max-width: 100%;
}

.mdl-card__supporting-text img {
    max-width: 100%;
    height: auto;
}

.mdl-card__supporting-text .bypostauthor {
}

.mdl-card__supporting-text .wp-caption {
    width: 100%;
    margin: 20px 0;
}

.mdl-card__supporting-text .wp-caption-text,
.mdl-card__supporting-text .gallery-caption {
    margin-top: 10px;
}

.mdl-card__supporting-text .alignleft {
    align-self: flex-start;
    float: left;
    margin-right: 10px;
}

.mdl-card__supporting-text .aligncenter {
    text-align: center;
}

.mdl-card__supporting-text .alignright {
    align-self: flex-end;
    float: right;
    margin-left: 10px;
}

.mdl-card__media ~ .mdl-card__supporting-text {
    min-height: 64px;
}

.mdl-card__supporting-text:not(:last-child) {
    box-sizing: border-box;
    min-height: 76px;
}

body:not(.single) .mdl-card__supporting-text ~ .mdl-card__supporting-text {
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.mdl-card__supporting-text--content {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    text-align: justify;
}

.mdl-card__supporting-text--content .page-links .mdl-button {
    margin-right: 10px;
}

.mdl-card__supporting-text--content .page-links > .mdl-button {
    background: rgba(158, 158, 158, .2);
    color: #000;
}

.mdl-card__actions:first-child {
    margin-left: 0;
}

.mdl-card > a {
    font-weight: inherit;
    text-decoration: none;
    color: inherit;
}

.mdl-card h3 {
    margin: 0;
}

.mdl-card h3 a {
    text-decoration: none;
}

.mdl-card.sticky h3 a {
    text-decoration: underline;
}

.mdl-card__media.quote h3:before,
.mdl-card__media.quote h3:after {
    font-size: 3em;
    display: block;
    margin-top: .5em;
}

.mdl-card__media.quote h3:before {
    content: '“';
}

.mdl-card__media.quote h3:after {
    content: '”';
}

.mdl-card__supporting-text--meta {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
    box-sizing: border-box;
    height: auto;
    padding: 16px;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: start;
    justify-content: flex-start;
}

.mdl-card__supporting-text--meta > *:first-child {
    margin-right: 16px;
}

.mdl-card__supporting-text--meta > * {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
}

.mdl-card__supporting-text--meta > .minilogo {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background-size: cover;
}

.mdl-card__supporting-text--meta .section-spacer {
    -webkit-box-flex: 1;
    flex-grow: 1;
}

.mdl-card__supporting-text--meta .post-tags {
    max-height: 54px;
    flex-wrap: wrap-reverse;
}

.mdl-card__supporting-text--meta .post-tags a {
    margin-left: 15px;
}

.mdl-card__supporting-text--comments {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    width: 100%;
    padding: 32px;
    background-color: #eee;
    -webkit-box-pack: start;
    justify-content: flex-start;
    -webkit-box-align: stretch;
    align-items: stretch;
}

.mdl-card__supporting-text--comments .comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-form {
    margin-bottom: 16px;
}

.comment-form__fields {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
}

.comment-form__inputs {
    width: 100%;
    margin-right: 16px;
}

.comment-form__inputs .mdl-textfield input,
.comment-form__inputs .mdl-textfield textarea {
    resize: none;
}

.comment-form button.submit {
    margin: auto;
}

.comment-list .comment,
.comment-list .pingback {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    -webkit-box-align: stretch;
    align-items: stretch;
}

.comment-list .comment > .comment__header,
.comment-list .pingback > .comment__header {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
    margin-bottom: 12px;
    -webkit-box-align: center;
    align-items: center;
}

.comment-list .comment > .comment__header > .comment__avatar,
.comment-list .pingback > .comment__header > .comment__avatar {
    width: 48px;
    height: 48px;
    margin-right: 16px;
    border-radius: 24px;
}

.comment-list .comment > .comment__header > .comment__author,
.comment-list .pingback > .comment__header > .comment__author {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    -webkit-box-flex: 1;
    flex-grow: 1;
}

.comment-list .comment > .comment__text,
.comment-list .pingback > .comment__text {
    line-height: 1.5em;
}

.comment-list .comment > .comment__actions,
.comment-list .pingback > .comment__actions {
    font-size: .8em;
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
    margin-top: 12px;
    -webkit-box-pack: start;
    justify-content: flex-start;
    -webkit-box-align: center;
    align-items: center;
}

.comment-list .comment > .comment__actions button,
.comment-list .pingback > .comment__actions button {
    margin-right: 16px;
    color: rgba(0, 0, 0, .24);
}

.comment-list .comment > .children {
    padding-top: 32px;
    padding-left: 48px;
}

.comment-list .comment ~ .comment,
.comment-list .comment ~ .pingback,
.comment-list .pingback ~ .comment,
.comment-list .pingback ~ .pingback {
    margin-top: 32px;
}

.blog-posts .navigation {
    font-weight: 500;
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
    color: white;
    -webkit-box-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    align-items: center;
}

.blog-posts .comment-navigation {
    width: 100%;
    margin: 16px 0;
}

.blog-posts .navigation a {
    text-decoration: none;
}

.blog-posts .navigation a {
    color: #fff;
}

.blog-posts .navigation.comment-navigation a {
    color: rgba(0, 0, 0, .54);
}

.blog-posts .navigation.post-navigation .mdl-button,
.blog-posts .navigation.posts-navigation .mdl-button {
    color: rgb(33, 33, 33);
    background-color: white;
}

.blog-posts .navigation > .nav-previous .mdl-button {
    margin-right: 16px;
}

.blog-posts .navigation > .nav-next .mdl-button {
    margin-left: 16px;
}

.widget-area .widget {
    padding: 10px 40px;
}

.widget-area h2 {
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .02em;
}

.widget-area ul,
.widget-area ol {
    padding: 0;
    list-style: none;
}

.widget-area ul.children,
.widget-area ol.children {
    padding-left: 15px;
}

.widget-area label {
    display: block;
}

.widget-area .recentcomments a {
    display: block !important;
}

.widget-area .post-date {
    display: block;
}

.search-form span {
    display: none;
}

.search-field {
    font-size: 16px;
    display: block;
    width: 250px;
    margin-bottom: 10px;
    padding: 4px 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
    background: none;
}

.search-submit {
    font-size: 14px;
    line-height: 36px;
    overflow: hidden;
    width: 250px;
    padding: 0 16px;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    background: rgba(158, 158, 158, .2);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
}

.widget-area .search-field,
.widget-area .search-submit {
    width: 100%;
}

.search-submit:active,
.search-submit:hover {
    background-color: rgba(158, 158, 158, .4);
    box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .14), 0 1px 10px 0 rgba(0, 0, 0, .12), 0 2px 4px -1px rgba(0, 0, 0, .2);
}

.social-btn {
    width: 24px;
    height: 24px;
    margin: 0 16px;
    cursor: pointer;
    opacity: .46;
    border-radius: 2px;
    background: transparent no-repeat center;
    background-size: contain;
}

.social-btn__twitter {
    background-image: url('https://www.gstatic.com/images/icons/material/system/2x/post_twitter_black_24dp.png');
}

.social-btn__blogger {
    background-image: url('https://www.gstatic.com/images/icons/material/system/2x/post_facebook_black_24dp.png');
}

.social-btn__gplus {
    background-image: url('https://www.gstatic.com/images/icons/material/system/2x/post_gplus_black_24dp.png');
}

.social-btn__share {
    color: rgba(0, 0, 0, .54);
    background: transparent;
}

.mdl-mini-footer {
    box-sizing: border-box;
    height: 120px;
    margin-top: 80px;
    padding: 40px;
    background-color: white;
    -webkit-box-align: center;
    align-items: center;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar. */
}
