
html, body {
    font-family: 'Roboto Condensed', sans-serif;
}
a {
    text-decoration: underline;
    color: #039BE5;
}
.mdl-menu a {
    text-decoration: none;
}
.content {
    max-width: 1024px;
}
.mdl-card {
    display: block;
}
h3 {
    background: url('app-logo.png') no-repeat;
    background-size: 40px;
    padding-left: 50px;
    background-position-y: -2px;
}
.mdl-textfield {
    width: 100%;
}
.more-post-button-container {
    width: 100%;
    margin: 15px auto;
    text-align: center;
}
#load-more-posts-button {
    font-size: 16px;
    color: #EBEBEB;
    background: #228dc7;
    transition-duration: 0.5s;
    outline: none;
}
#load-more-posts-button:hover {
    background: #01579b;
}
/* Fixes an MDL bug where the header does not scroll on small devices */
.mdl-layout__container .mdl-layout--fixed-header .mdl-layout__content {
    overflow-y: visible;
    overflow-x: visible;
    overflow: visible;
}
/* Overrides MDL colors */
.mdl-layout.is-upgraded .mdl-layout__tab.is-active::after,
.header .mdl-textfield__label:after {
    background-color: #FFCA28;
}
.file-label {
    margin-top: 20px;
    color: #444;
}
.mdl-snackbar__action {
    color: #FFCA28;
}
.mdl-textfield__label:after {
    background-color: #0288D1;
}
.mdl-textfield--floating-label.is-focused .mdl-textfield__label {
    color: rgba(255, 255, 255, 0.8);
}

/* Header */

.logo .material-icons {
    top: 4px;
    font-size: 32px;
    margin-right: -2px;
    position: relative;
}
.header .mdl-layout__header-row {
    max-width: 1024px;
    width: 100%;
    height: auto;
    padding: 10px 20px;
    margin: auto;
    position: relative;
}
.mdl-layout__header-row.titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.admin-block {
    font-size: 22px;
    padding: 8px 10px;
    margin-left: 8px;
    background: #FFCA28;
    border: #ffcb0c;
    color: #444;
}
@media screen and (max-width: 840px) {
    .header .mdl-layout__header-row.titlebar {
        height: 56px;
    }
    .titlebar h3 {
        font-size: 24px;
    }
    .titlebar h3 .material-icons {
        top: 2.5px;
        font-size: 23px;
    }
}
@media screen and (max-width: 479px) {
    .mdl-grid {
        padding: 0;
    }
    .mdl-card {
        font-size: 14px;
    }
}

/* Signed-in user */

.avatar {
    height: 32px;
    width: 32px;
    display: inline-block;
    background-size: 32px 32px;
    border-radius: 32px;
    border: 2px white solid;
    margin-right: 10px;
    background-image: url('./silhouette.jpg');
}
.username {
    display: inline-block;
    line-height: 38px;
    vertical-align: top;
    width: calc(100% - 46px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.mdl-textfield__label,
.mdl-textfield--floating-label.is-dirty .mdl-textfield__label {
    color: rgba(255, 255, 255, 0.8);
}
.sign-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#sign-email-button {
    color: inherit;
    margin-bottom: 15px;
    width: 216px;
}
#sign-google-button {
    color: inherit;
    width: 216px;
}
#sign-out-button {
    margin: 10px;
    color: inherit;
}
.mdl-button .material-icons {
    margin-top: -2px;
}
.mdl-button.mdl-button--icon .material-icons,
.mdl-button.mdl-button--fab .material-icons {
    margin-top: 0;
}

/* Navigation Bar */

.header .mdl-tab {
    padding-left: 23px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    overflow: visible;
    position: relative;
    margin: auto;
    max-width: 1024px;
}
@media screen and (max-width: 609px) {
    .header .mdl-tab {
        width: auto;
    }
}
.header .tab {
    padding: 0;
    max-width: none;
}
.create-post-block {
    width: 100%;
    margin: 10px;
}
.actions-container {
    background: #ffffff;
    padding: 10px;
}
.new-post-title input {
    color: rgb(0, 0, 0, 0.9);
}
#image-review img {
    max-height: 512px;
    max-width: 100%;
}
#image-review {
    width: 100%;
    min-height: 128px;
    text-align: center;
}
.dashed-border {
    background: 
    linear-gradient(to right, #808080 50%, rgba(255, 255, 255, 0) 0%),
    linear-gradient(#808080 50%, rgba(255, 255, 255, 0) 0%),
    linear-gradient(to right, #808080 50%, rgba(255, 255, 255, 0) 0%),
    linear-gradient(#808080 50%, rgba(255, 255, 255, 0) 0%);
    background-position: top, right, bottom, left;
    background-repeat: repeat-x, repeat-y;
    background-size: 20px 2px, 2px 20px;
}
.dragover {
    background: #EBEBEB;
}
.drop-text {
    color: #808080;
    font-size: 20px;
    padding: 10px;
}
.drop-icon {
    position: absolute;
}
@media screen and (max-width: 600px) {
    #image-review img {
        max-height: 256px;
        margin: auto;
    }
}
.show-img {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 10px;
    margin: 10px 0;
}
#new-post-message {
    display: none;
    padding: 20px;
}
#add {
    position: absolute;
    right: 20px;
    top: 18px;
    z-index: 8;
}
@media screen and (max-width: 840px) {
    #add {
        position: fixed;
        bottom: 10px;
        right: 10px;
        z-index: 998;
        top: auto;
    }
}

/* Drawer */

.mdl-layout__drawer-button {
    display: none;
}
.mdl-layout__drawer .mdl-navigation .mdl-navigation__link.is-active,
.is-active .mdl-menu__item {
    color: black;
    background-color: #EBEBEB;
}
.mdl-layout__drawer {
    border-right-width: 0;
}
.mdl-navigation__link .material-icons, .mdl-menu__item .material-icons {
    position: relative;
    margin-top: -2px;
    margin-right: 10px;
}
.mdl-menu__item .material-icons {
    top: 7px;
}
@media screen and (max-width: 479px) {
    .mdl-layout__drawer-button {
        display: block;
        top: 3px;
    }
}

/* New Post Page */

#page-add {
    display: block;
    text-align: center;
}
#page-add .mdl-cell {
    width: auto;
    min-width: 300px;
}
#newPictureContainer {
    margin: 0;
    max-width: 100%;
    max-height: 400px;
}
@media screen and (max-width: 479px) {
    .mdl-snackbar__action {
        margin-right: 60px;
    }
}
.comments-container .username {
    width: auto;
}
.comments-container .comment{
    display: inline-block;
    vertical-align: top;
    padding: 0 15px 0 10px;
    color: grey;
    line-height: 25px;
}
.comments-container .username {
    line-height: 25px;
}
.number-of-comments {
    padding-left: 5px;
    color: #909090;
    font-size: 14px;
}

/* Post */

.post .mdl-card {
    height: 100%;
    top: 0;
    left: 0;
    min-height: 0;
}
.post .header {
    padding: 10px;
    width: calc(100% - 100px);
    display: inline-block;
}
.like-count {
    color: #444;
    padding: 0 10px 0 5px;
    font-weight: bold;
    display: inline-block;
    top: -10px;
    position: relative;
}
.comments-container {
    padding: 0 10px;
}
.post .image {
    width: 100%;
    max-height: 400px;
    cursor: pointer;
}
.post .comments-container-wrap {
    overflow: hidden;
}
.post .comments-container.first {
    max-height: 200px;
    overflow-y: scroll;
    width: calc(100% + 12px);
}
.post .post-info-container {
    padding: 15px 10px 0 10px;
    border-bottom: 1px solid #EBEBEB;
}
.comments-container .text {
    margin-left: 5px;
    color: #444;
    transition: all 0.2s;
}
.add-comment {
    flex-grow: 1;
    padding: 0 10px;
    margin-bottom: -10px;
}
.add-comment.mdl-textfield {
    width: 100%;
}
.post-info-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.remove-post {
    position: absolute;
    top: 10px;
    right: 0;
}
.remove-post input {
    padding: 5px;
    margin-right: 10px;
    background: #ff0c0c;
    border: 1px solid #cf0000;
    color: #2a0000;
    cursor: pointer;
}
.remove-post input:focus {
     outline: none;
}
.like .material-icons {
    font-size: 35px;
    color: #ffcb0c;
    cursor: pointer;
}
.like .material-icons:HOVER {
    opacity: 0.6;
}
.like .likeded {
    display: none;
}
.open-post {
    position: fixed;
    top: 25px;
    margin: auto;
    left: 0;
    right: 0;
    align-items: center;
    z-index: 999;
}
.center {
    margin: auto;
}
.hidden-display {
    position: absolute;
    top: 0px;
    background: rgba(0, 0, 0, 0.87);
    z-index: 888;
    height: 100%;
    padding: 1px;
    width: 100%;
}
.header-hidden {
    display: none !important;
}
.post-wrap {
    z-index: 1000;
    padding: 24px 10px;
}
.one-post-wrap-back {
    position: absolute;
    top: 10px;
    left: 30px;
    border-radius: 100%;
    padding: 18px;
    cursor: pointer;
    transition-duration: 0.5s;
}
.one-post-wrap-back:hover {
    background: #ffca28;
}
.mdl-card.mdl-shadow--2dp {
    margin: auto;
}
#one-post-wrap {
    display: flex;
    align-items: center;
}
.one-post-wrap {
    margin: 50px auto;
    width: 90%;
    max-width: 960px;
    height: 450px;
    display: flex;
    justify-content: center;
}
.one-post-wrap .img {
    max-width: 600px;
    max-height: 600px;
    min-height: 350px;
    min-width: 400px;
    background: #444;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.one-post-wrap .img img {
    width: 100%;
    cursor: default;
}
.one-post-wrap .image,
.one-post-wrap .info {
    max-height: 600px;
}
.one-post-wrap .info {
    min-width: 300px;
    min-height: 350px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.one-post-wrap .post-info-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.one-post-wrap .post-info {
    padding: 10px 0;
    width: 100%;
    border-top: 1px solid #EBEBEB;
    border-bottom: 1px solid #EBEBEB;
}
.one-post-wrap main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.likes-and-comments {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.one-post-wrap .comments-container-wrap {
    border-top: 1px solid #EBEBEB;
    height: 230px;
    overflow: hidden;
}
.one-post-wrap .comments-container {
    height: 100%;
    margin-right: -20px; 
    overflow-y: scroll;
}
.one-post-wrap .like, 
.one-post-wrap .number-of-comments,
.one-post-wrap .date {
    padding: 0 10px;
}
.one-post-wrap .write-comment {
    width: 100%;
}
@media only screen and (max-width: 720px) {
    .one-post-wrap {
        flex-direction: column;
        width: 100%;
        height: 100%;
    }
    .one-post-wrap .info, .one-post-wrap .img {
        min-width: 320px;
        width: 100%;
        max-height: 100%;
        max-width: 100%;
    }
    .one-post-wrap .img {
        max-height: 650px;
        display: flex;
        align-items: center;
    }
    .one-post-wrap .img img {
        max-height: 100%;
    }
    .post-wrap, .one-post-wrap {
        padding: 0;
        margin: 0;
    }
    .one-post-wrap .comments-container-wrap {
        max-height: 150px;
        overflow-y: scroll;
        width: calc(100% + 20px);
    }
    .one-post-wrap-back {
        display: none;
    }
}

/* Login page */

 #login-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0288D1;
    background: radial-gradient(circle, #039BE5, #01579b);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    flex-direction: column;
}

/* Loading page */

#loading-page {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    z-index: 100;
}