/* ====== Generic Reusable Styles ===== */

.no-margin {
    margin: 0;
}

.no-padding {
    padding: 0;
}

.flex {
    display: flex;
}

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

/* =========== Base Styles ============*/

.mdl-layout-title .mdl-navigation__link {
    font-size: inherit;
    font-weight: inherit;
}

.mdl-layout__drawer-button {
    /* Same as mdl-color-text-grey-800 */
    color: #424242 !important;
}

.mdl-layout__drawer-button .material-icons {
    /* Fix for drawer icon not displaying properly */
    line-height: 49px;
}

.bg-ribbon {
    width: 100%;
    height: 350px;
    background-color: rgb(63,81,133);
    flex-shrink: 0;
}

.page-content {
    background-color: #f5f5f5 !important;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -325px;
    flex-shrink: 0;
}

/* ============ Edit Button ===========*/

.edit-btn {
    position: fixed;
    display: block;
    right: 0;
    bottom: 0;
    margin-right: 40px;
    margin-bottom: 40px;
    z-index: 900;
}

/*
.edit-btn {
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
    overflow: hidden;
}
*/

/* ========= Top Page =================*/

.hero {
    max-width:1200px;
}

.hero-card {
    min-height: 350px;
}

.hero-card .mdl-cell {
    text-align: center;
}

.hero-card .hero-bio p {
    font-size: 24px;
}

.hero-card .hero-bio p .hero-name {
    font-size: 30px;
}

.hero-cell {
    margin-left: 0;
    margin-right: 0;
}

.hero-post {
    margin: 0 auto;
}

.hero-post .mdl-card {
    width: 100%;
}

.hero-post .mdl-card, .post-list .mdl-card, .talk-list .mdl-card {
    min-height: 0;
}

.hero-post .mdl-card__title, .post-list .mdl-card__title, .talk-list .mdl-card__title {
    padding-bottom: 0;
}

.hero-post .mdl-card__title h4 {
    font-size: 20px;
    margin: 0;
}

.post-list .mdl-card__title h4, .talk-list .mdl-card__title h4 {
    font-size: 28px;
    margin: 0;
}

.hero-post .mdl-card__media, .post-list .mdl-card__media {
    display: flex;
    flex-grow: 1;
    flex-direction: row;
    align-items: flex-end;
    box-sizing: border-box;
}

.post-list .mdl-card__actions .mdl-chip {
    margin-right: 5px;
}

.hero-post .mdl-card__media, .post-list .mdl-card__media {
    background-color: rgba(0,0,0,.05);
    border-bottom: 1px solid rgba(0,0,0,.1);
}

/* ========= Post Detail Page ========= */

.base-layout.is-small-screen .post-detail {
    padding: 30px 18px;
}

.post-detail {
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    padding: 80px 56px;
    margin-bottom: 80px;
}

.post-detail .title {
    margin-top: -20px;
}


/* ========= Post Content ========= */

.post-detail h1 {
    font-size: 45px;
}

.post-detail h2 {
    font-size: 34px;
}

.post-detail h3 {
    font-size: 24px;
}

.post-detail h4 {
    font-size: 20px;
}

.post-content, .post-content p, .post-content ul, .post-content ol {
    font-size: 18px;
}

.post-content img {
    max-width: 100%;
}

.post-content pre {
    /* font-size: 12.025px; */
    display: block;
    padding: 15px;
    margin: 0 0 9px;
    line-height: 18px;
    word-break: break-all;
    word-wrap: break-word;
    white-space: pre;
    white-space: pre-wrap;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border: 1px solid rgba(0,0,0,0.15);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

/* Adds a grey bar to the left of the blockquote
   much like bootstrap */
.post-content blockquote {
    padding: 0 0 0 15px;
    margin: 0 0 18px;
    border-left: 5px solid #eee;
}

.post-content blockquote p, .post-content blockquote pre {
    font-size: 16px;
    font-weight: 300;
    line-height: 22.5px;
}

/* This blockquote before & after removes quotes
   around blockquotes that MDL adds. */
.post-content blockquote::before {
    position: static;
    left: 0;
    content: "";
}

.post-content blockquote::after {
    content: "";
    margin-left: 0;
}

/* Alignment classes used by images in
   blog posts */
.post-content .align-center {
    display: block;
    margin: 0 auto;
}

.post-content .align-left {
    display: block;
    float: left;
    /* Add margin to separate from text on the right */
    margin-right: 2em;
}

.post-content .align-right {
    display: block;
    float: right;
    /* Add margin to separate from text on the left */
    margin-left: 2em; 
}

/* ======== Notes in ReST ============ */

.post-content .note {
    position: relative;
    margin: 15px 0;
    padding: 39px 19px 14px;
    background-color: white;
    border: 1px solid #DDD;

    -webkit-border-radius: 4px;
       -moz-border-radius: 4px;
            border-radius: 4px;
}

.post-content .admonition-title {
    /* content: "Note"; */
    position: absolute;
    top: -1px;
    left: -1px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: bold;
    background-color: whiteSmoke;
    border: 1px solid #DDD;
    color: #9DA0A4;

    -webkit-border-radius: 4px 0 4px 0;
       -moz-border-radius: 4px 0 4px 0;
            border-radius: 4px 0 4px 0;
}

/* ========= Talks ================ */

.talk-detail .mdl-card__title h3 {
    margin-bottom: 0;
}

.talk-detail .mdl-card__subtitle-text {
    padding-left: 16px;
}
    
.talk-detail .talk-abstract {
    padding: 16px;
}

/* ========= Pagination =========== */

.pagination {
    text-align: center;
}

.pagination ul {
    display: inline-block;
    padding: 0;
}

.pagination li {
    display: inline;
    list-style: none;
}

.pagination .mdl-button {
    min-width: 10px;
}
