/**
 * Copyright 2015 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

html, body {
  font-family: 'Roboto', 'Amaranth', 'Helvetica', sans-serif;
}
a {
  text-decoration: underline;
  color: #039BE5;
}
.mdl-menu a {
  text-decoration: none;
}
.fp-content {
  max-width: 1024px;
}
.mdl-card {
  display: block;
}
/* Theatre mode */
.fp-theatre {
  display: none;
  background: rgba(0,0,0,0.8);
  padding: 30px;
  text-align: center;
  box-sizing: border-box;
  vertical-align: middle;
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.fp-fullpic {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border: black 10px solid;
  box-sizing: border-box;
}
/* 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,
.fp-header .mdl-textfield__label:after {
  background-color: #FFCA28;
}
.mdl-snackbar__action {
  color: #FFCA28;
}
.mdl-textfield__label:after {
  background-color: #0288D1;
}
.mdl-textfield--floating-label.is-focused .mdl-textfield__label {
  color: #0288D1;
}

/* Header */

.fp-logo {
  font-family: 'Niconne', sans-serif;
}
.fp-logo a {
  color: white;
  text-decoration: none;
}
.fp-logo .material-icons {
  top: 4px;
  font-size: 32px;
  margin-right: -2px;
  position: relative;
}
.fp-header .mdl-layout__header-row {
  max-width: 1024px;
  width: 100%;
  height: auto;
  padding: 10px 20px;
  margin: auto;
  position: relative;
}
@media screen and (max-width: 840px) {
  .fp-header .mdl-layout__header-row.fp-titlebar {
    height: 56px;
  }
  .fp-titlebar h3 {
    font-size: 24px;
  }
  .fp-titlebar h3 .material-icons {
    top: 2.5px;
    font-size: 23px;
  }
}
@media screen and (max-width: 479px) {
  .fp-titlebar h3 {
    margin-left: 40px;
  }
  .mdl-grid {
    padding: 0;
  }
  .mdl-card {
    font-size: 14px;
  }
}

/* Signed-in user */

.fp-signed-in-user-container {
  display: none;
  margin-left: 10px;
}
.fp-avatar {
  height: 32px;
  width: 32px;
  display: inline-block;
  background-size: 32px 32px;
  border-radius: 32px;
  border: 2px white solid;
  margin-right: 10px;
}
.fp-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;
}
.fp-usernamelink {
  padding: 0 10px 0 0;
  border-radius: 19px 5px 5px 19px;
  text-transform: none;
  white-space: nowrap;
}
.mdl-layout__drawer .fp-signed-in-user-container {
  margin: 0;
  padding: 16px;
  height: 44px;
}
.mdl-layout__drawer .fp-signed-in-user-container .fp-avatar {
  height: 40px;
  width: 40px;
  background-size: 40px 40px;
  border-radius: 40px;
  margin-right: 15px;
}
.mdl-layout__drawer .fp-signed-in-user-container .fp-username {
  font-size: 16px;
  line-height: 48px;
}
.mdl-layout__drawer .fp-sign-in-button {
  margin: 10px 0 0 0;
}
.fp-sign-out {
  display: none;
}
.fp-sign-in-button {
  margin-left: 10px;
  color: white;
}
.mdl-layout__drawer .fp-sign-in-button {
  color: black;
}
.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 */

.fp-header .mdl-tab {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: visible;
  position: relative;
  margin: auto;
  max-width: 1024px;
}
.fp-header .fp-tab {
  padding: 0;
  max-width: none;
}
#add {
  position: absolute;
  right: 20px;
  top: 18px;
  z-index: 998;
}
#add-floating {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 998;
}
#fp-mediacapture {
  transform: scale(0.0001);
  opacity: 0;
}

/* 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;
}
.fp-addcontainer .mdl-card__supporting-text {
  padding-top: 0;
  width: auto;
}
#newPictureContainer {
  margin: 0;
  max-width: 100%;
  max-height: 400px;
}
.fp-content .mdl-cell .fp-addcontainer {
  margin: auto;
  max-width: 800px;
  display: block;
  text-align: center;
}
#page-add .fp-addcontainer .fp-overlay {
  opacity: 0.7;
}
#page-add .fp-overlay i {
  font-size: 50px;
}
@media screen and (max-width: 479px) {
  .mdl-snackbar__action {
    margin-right: 60px;
  }
}

/* User Info page */

.fp-user-avatar {
  width: 150px;
  height: 150px;
  display: inline-block;
  background-size: cover;
  background-position: 50% 50%;
}
.fp-user-username {
  font-size: 30px;
  font-weight: 300;
  white-space: nowrap;
  width: 100%;
}
.fp-user-container,
.fp-user-following {
  min-height: 150px;
  height: 150px;
  flex-direction: row;
  align-items: center;
  text-align: right;
  margin: 23px 25px 0 24px;
  display: flex;
  background: #FFF;
  font-size: 16px;
  font-weight: 400;
}
.fp-user-following {
  display: none;
  padding: 30px 10px 10px 10px;
  overflow: visible;
  margin-top: 35px;
  height: auto;
  min-height: 50px;
  text-align: left;
  width: 100%;
}
.fp-user-following .fp-usernamelink {
  margin: 10px;
  width: 215px;
  box-sizing: border-box;
}
.fp-follow, .fp-notifications {
  width: 220px;
  text-align: left;
  margin-top: 20px;
}
.fp-name-follow-container {
  margin-left: 10%;
  display: flex;
  flex-direction: column;
  text-align: left;
}
#page-user-info .fp-image .likes {
  margin-left: 3px;
  margin-right: 20px;
}
#page-user-info .fp-image .comments {
  margin-left: 3px;
}
#page-user-info .fp-user-detail-container {
  display: flex;
  margin-top: 15px;
}
#page-user-info .fp-user-detail {
  margin-right: 15px;
  white-space: nowrap;
  opacity: 0.6;
}
#page-user-info .fp-user-nbposts,
#page-user-info .fp-user-nbfollowers,
#page-user-info .fp-user-nbfollowing {
  font-weight: bold;
}
#page-user-info .fp-user-detail.is-active {
  border-bottom: 2px #FFCA28 solid;
  padding: 5px 5px 3px 5px;
  margin: -5px 10px -5px -5px;
  opacity: 1;
}
#page-user-info .fp-no-posts .mdl-card {
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  color: #555;
}
#page-user-info .fp-user-nbfollowing-container:HOVER {
  cursor: pointer;
  background-color: #eaeaea;
  border-radius: 5px;
  padding: 5px;
  margin: -5px 10px -5px -5px;
  border-bottom: none;
}
#page-user-info .fp-user-nbfollowing-container.is-active:HOVER {
  border-bottom: 2px #FFCA28 solid;
  padding: 5px 5px 3px 5px;
  margin: -5px 10px -5px -5px;
  border-radius: 5px 5px 0 0;
}
.fp-close-following {
  top: -28px;
  background-color: #eee;
  left: calc(50% - 28px);
  position: absolute;
  z-index: 1;
}
.fp-close-following:HOVER {
  background-color: #ddd;
}
@media screen and (max-width: 479px) {
  .fp-name-follow-container {
    margin-left: 5%;
  }
  .fp-user-username {
    font-size: 20px;
  }
  .fp-user-avatar {
    min-width: 80px;
    width: 100px;
    height: 100px;
    background-size: 100px 100px;
    background-position: inherit;
  }
  .fp-user-container {
    min-height: 100px;
    height: 100px;
    margin: 16px 16px 0 16px;
  }
  .fp-user-following {
    margin: 35px 16px 0 16px;
  }
  .fp-follow, .fp-notifications {
    margin-top: 10px;
  }
  #page-user-info .fp-user-detail-container {
    margin-top: 10px;
  }
  #page-user-info .fp-user-detail {
    font-size: 13px;
  }
}

/* User Info photo cards */

#page-user-info .fp-image {
  position: relative;
  cursor: pointer;
}
#page-user-info .fp-image img {
  height: 100%;
  width: 100%;
}
#page-user-info .fp-overlay,
#page-add .fp-overlay {
  opacity: 0;
  background-color: black;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}
#page-user-info .fp-overlay:HOVER {
  opacity: 0.6;
}
#page-user-info .fp-image .mdl-card {
  max-height: 150px;
  background-size: cover;
  background-position: 50% 50%;
  display: flex;
  justify-content: flex-end;
}
.fp-overlay .fp-pic-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  text-align: center;
  background: white;
  color: black;
  opacity: 0.8;
  max-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 5px;
  box-sizing: border-box;
  font-weight: 500;
}
@media screen and (max-width: 840px) {
  #page-user-info .fp-overlay {
    background-color: white;
    color: #666;
    opacity: 0.8;
    height: 30px;
    bottom: 0;
    padding-left: 10px;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow: hidden;
  }
  .fp-overlay .fp-pic-text {
    color: inherit;
    position: relative;
    padding-left: 20px;
    opacity: 1;
    bottom: auto;
    flex-grow: 1;
    left: auto;
    text-align: right;
    padding-right: 10px;
    font-weight: 300;
    width: auto;
  }
}

/* Post */

.fp-post {
  margin-left: auto;
  margin-right: auto;
}
.fp-post .mdl-card {
  height: 100%;
  top: 0;
  left: 0;
  padding-bottom: 10px;
}
.fp-post .fp-image {
  flex: 1;
  background-size: cover;
  background-position: 50% 50%;
  box-sizing: border-box;
  padding-top: 25%;
  position: relative;
  padding-bottom: 25%;
  min-height: 250px;
  cursor: pointer;
}
.fp-post .fp-booth {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
@media screen and (max-width: 840px) {
  .fp-post .fp-image {
    padding-top: 35%;
    padding-bottom: 35%;
  }
}
.fp-post .fp-header {
  padding: 10px;
}
.fp-post .fp-time {
  float: right;
  color: #999;
  margin-top: 8px;
  font-size: 14px;
  margin-right: 5px;
  text-decoration: none;
}
.fp-post .fp-time:HOVER {
  color: black;
}
.fp-post .fp-likes {
  color: #444;
  padding: 10px 10px 0 10px;
  font-weight: bold;
}
.fp-post .fp-morecomments {
  padding: 5px 0 6px 10px;
  cursor: pointer;
  font-size: 14px;
  color: #0288D1;
}
.fp-post .fp-morecomments:HOVER {
  text-decoration: underline;
}
.fp-post .fp-comments {
  padding: 0 10px 0 10px;
}
.fp-post .fp-first-comment {
  padding: 10px 10px 0 10px;
}
.fp-post .fp-comments .fp-author,
.fp-post .fp-first-comment .fp-author {
  text-decoration: none;
  color: #0288D1;
  font-weight: normal;
  padding: 3px 10px 3px 6px;
  margin: 0 -10px 0 -6px;
}
.fp-post .fp-comments .fp-author:HOVER,
.fp-post .fp-first-comment .fp-author:HOVER {
  background-color: rgba(158,158,158,.2);
  border-radius: 4px;
  color: black;
}
.fp-post .fp-comments .fp-text {
  margin-left: 5px;
  color: #444;
  transition: all 0.2s;
}
.fp-post .fp-action {
  padding: 0 10px 0 10px;
  display: flex;
  flex-direction: row;
  margin-bottom: -10px;
}
.fp-post .fp-action .fp-add-comment {
  flex-grow: 1;
}
.fp-post .fp-action .fp-add-comment .mdl-textfield {
  width: 100%;
}
.fp-post .fp-action .fp-like .material-icons {
  font-size: 35px;
  color: #FF5252;
  margin-right: 10px;
  padding-top: 18px;
  cursor: pointer;
}
.fp-post .fp-action .fp-like .material-icons:HOVER {
  opacity: 0.6;
}
.fp-post .fp-action .fp-like .fp-liked {
  display: none;
}
.fp-next-page-button {
  width: 100%;
  margin-bottom: 15px;
  text-align: center;
}
.fp-new-posts-button {
  width: 100%;
  display: flex;
  justify-content: center;
}
.fp-next-page-button button,
.fp-new-posts-button button {
  display: none;
}
.fp-new-posts-button button {
  margin-top: 15px;
  border-radius: 10px;
  text-transform: none;
  font-weight: normal;
}
.fp-delete-post {
  float: right;
  color: red;
  font-size: 12px;
  margin-right: -5px;
  display: none;
}

/* Splash Page */

#page-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #673ab7;
  background: radial-gradient(circle, #9575cd, #673ab7);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  flex-direction: column;
}
#page-splash .fp-caption {
  margin: 20px 0 40px 0;
  font-family: 'Amaranth', sans-serif;
  font-size: 18px;
  opacity: 0.8;
}
#page-splash .fp-skip {
  font-weight:lighter;
  color:white;
  display: block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
#page-splash .fp-skip:HOVER {
  text-decoration: underline;
}
.fp-help {
  margin-left: auto;
  margin-right: auto;
}
.fp-help p {
  font-size: 16px;
}
.fp-help .mdl-card__supporting-text {
  display: flex;
  width: 100%;
  padding-top: 30px;
  padding-left: 30px;
  padding-right: 30px;
  box-sizing: border-box;
}
.fp-help .fp-info {
  font-size: 60px;
  padding-right: 30px;
  min-width: 60px;
}
.fp-help p .material-icons {
  top: 7px;
  position: relative;
  margin-right: 3px;
}
.fp-no-posts {
  display: none;
}

/* Search */

@media screen and (max-width: 840px) {
  .fp-searchcontainer {
    max-width: 140px;
    margin-left: 20px;
  }
  .fp-searchcontainer #fp-searchResults {
    width: calc(100% + 90px);
  }
}
.fp-searchcontainer {
  margin-top: 4px;
  position: relative;
}
#fp-searchResults {
  display: none;
  position: absolute;
  padding: 5px;
  min-height: 0;
  opacity: 0.8;
  width: 100%;
  overflow: hidden;
}
@media screen and (max-width: 480px) {
  .fp-searchcontainer {
    max-width: calc(100% - 195px);
    margin-left: 10px;
  }
  #fp-searchResults {
    width: calc(100% + 70px);
    left: -50px;
  }
}
.fp-searchResultItem.fp-usernamelink {
  position: relative;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding-right:0;
  display: block;
}
#fp-searchResults .fp-searchResultItem .fp-username{
  text-overflow: ellipsis;
  white-space: nowrap;
  width: calc(100% - 50px);
  overflow: hidden;
}

/* Misc */

.fp-initially-hidden {
  display: none;
}
.mdl-snackbar {
  z-index: 101;
}

/* Firebase UI styling */

#firebaseui-auth-container {
  min-width: 251px;
}
.firebaseui-container {
  background: rgba(0,0,0,0.05);
  margin-bottom: 15px;
  min-height: 150px;
  padding-top: 10px;
  border-radius: 20px;
  box-shadow: none;
}
.firebaseui-container.firebaseui-page-provider-sign-in {
  background: transparent;
  box-shadow: none;
  min-height: 0;
  margin-bottom: 0;
  padding-top: 0;
}
.firebaseui-container.firebaseui-id-page-callback {
  background: transparent;
  box-shadow: none;
  margin-top: 40px;
  height: 84px;
  min-height: 0;
  margin-bottom: 0;
  padding-top: 0;
}
.firebaseui-card-header {
  display: none;
}
.firebaseui-subtitle, .firebaseui-text {
  color: rgba(255,255,255,0.87);
}
.firebaseui-form-actions .mdl-button--raised.mdl-button--colored.firebaseui-button {
  background: rgba(0,0,0,0.1);
}
.firebaseui-id-dismiss-info-bar {
  display: block;
}
.firebaseui-info-bar {
  border: 0;
  border-radius: 10px;
  left: 5%;
  right: 5%;
  top: 10%;
  bottom: 10%;
}

/* Firebase UI MDL fixes */

.mdl-layout__tab {
  height: 48px;
  line-height: 48px;
  padding: 0 24px;
  color: rgba(255,255,255,.6);
}
