

html, body {
  font-family: 'Roboto', 'Helvetica', sans-serif;
}
a {
  text-decoration: underline;
  color: #039BE5;
}
.mdl-menu a {
  text-decoration: none;
}

.mdl-card {
  display: block;
  background: #eee;
}
/* 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;
  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;
  background: #BDBDBD;
}
/* Overrides MDL colors */
.mdl-layout.is-upgraded .mdl-layout__tab.is-active::after,
.fp-header .mdl-textfield__label:after {
  background-color: #fff;
}
.mdl-snackbar__action {
  color: #FFCA28;
}
.mdl-textfield__label:after {
  background-color: #0288D1;
}
.mdl-textfield--floating-label.is-focused .mdl-textfield__label {
  color: #0288D1;
}

.fp-content, .mdl-layout__header-row, .mdl-tab {
	max-width: 1280px;
}



/* Header */
.mdl-layout__header {
background: url('../images/log.svg') no-repeat center center #24b375;
background-size: 169px 42px;
}	


.fp-logo a {
  color: white;
  text-decoration: none;
}

.fp-logo .material-icons {
  top: 4px;
  font-size: 28px;
  margin-right: -2px;
  position: relative;
}

.fp-header .mdl-layout__header-row {
  width: 100%;
  height: auto;
  padding: 10px 20px;
  margin: auto;
  position: relative;
}



.fp-titlebar h3 {
	margin-left: 12px;
	font-size: 26px;
	font-weight: 400;
	opacity: .6;
}



@media screen and (max-width: 840px) {
  .fp-titlebar h3 {
    font-size: 20px;
    font-weight: 200;
  }
  .fp-titlebar h3 .material-icons {
    top: 2px;
    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: 26px;
  width: 26px;
  display: inline-block;
  background-size: 28px 28px;
  background-position: 27px 27px;
  border-radius: 50%;
  margin-right: 1px;
  margin-top: 4px;

}
.fp-username {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.fp-usernamelink {
  padding: 0 20px 0 0;
  border-radius: 10px;

  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 {
  color: white;
  margin-right: 10px;
  margin-top: 5px;
}
.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;
}
.fp-header .fp-tab {
  padding: 0;
  max-width: none;
}
#add {
  position: absolute;
 top: 0;
 left: 54px;
}

#fp-mediacapture {
  transform: scale(0.0001);
  opacity: 0;
}

.mdl-tab {
	left: 25px;
}

/* 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;
  color: #263238;
}
.mdl-menu__item {
  color: #263238;
}



@media screen and (max-width: 479px) {
  .mdl-layout__drawer-button {
    display: block;
    top: 2px;
  }
    .fp-sign-in-button {

  margin-right: 0;
}

}


.start-center {
	width: 267px;
	height: 310px;
    position: absolute;
    margin: 0 auto;
    left: 50%;
    right: 50%;
	top: 50%;
	bottom: 50%;
	transform: translate(-50%, -50%);
	background: url('../images/start-center.svg') no-repeat center center;
}


.about-center {
	width: 269px;
	height: 275px;
    position: absolute;
    margin: 0 auto;
    left: 50%;
    right: 50%;
	top: 50%;
	bottom: 50%;
	transform: translate(-50%, -50%);
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="269" height="275" viewBox="434 396 269 275"><g fill="none" fill-rule="evenodd"><path fill="#FFF" d="M519 454.3c-8.7 7.8-22 12.7-36.7 12.7-26.3 0-47.6-15.7-47.6-35 0-19.4 21.3-35.2 47.6-35.2 26.4 0 47.7 15.8 47.7 35 0 5.5-1.7 10.7-4.6 15.2l12.6 12.5-19-5.2z"/><path fill="#82858A" d="M468.2 417.8h28.2V446h-28.2z"/></g><g fill="none" fill-rule="evenodd"><path fill="#FFF" d="M621.3 447.8c-2-3-3-6.3-3-9.8 0-12.6 13.8-22.8 31-22.8 17 0 30.8 10.2 30.8 22.8 0 12.6-13 22.7-30 22.7-9 0-18-3.2-24-8.2l-12 3.3 8-8z"/><path fill="#82858A" d="M659.2 445.2H638l10.6-18.3"/></g><text fill="none" font-family="Roboto-Medium, Roboto" font-size="24" font-weight="400"><tspan x="571.1" y="664.9" fill="#5C5D61">Its me?</tspan></text><path fill="#444" fill-rule="evenodd" d="M692.8 580v-9.4h-9.3v-9.3h-9.3s-20.4-45.6-46.4-46.4h-28s-16.5 2-27.7 18v-37h11c10 0 18-8 18-18v-10c0-5-4-10-9-10h-28c-5 0-9 4-9 9v112l9 9v19h18v-18h10v19h18v-19h18v19h19v-19h10v19h18v-19h28v-9h-10zM581.4 468.4h9.3v9.3h-9.3v-9.3zm18.5 74.3v-9.3h9v9.3h-9zm27 27.8h-18v-9.3h18v9.3zm9-27.8h-9v-9.3h9v9.3zm18 18.5h-9V552h9v9.3z" opacity=".6"/></svg>') no-repeat center center;
}

/* 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-menu {
	margin-left: 20px;
	margin-right: 15px;
}



.fp-user-avatar {
  width: 96px;
  height: 96px;
  display: inline-block;
  background-size: cover;
  background-position: 50% 50%;
  margin-left: 20px;
  border-radius: 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: rgba(255, 255, 255, 0.27);
  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: 145px;
  box-sizing: border-box;
}
.fp-follow {
  width: 120px;
  text-align: left;
  margin-top: 20px;
}
.fp-name-follow-container {
  margin-left: 5%;
  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 #d0d0d0 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: #fafafa;
  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 #c3c3c3 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: 50px;
    height: 50px;
    margin-left: 5px;
    background-size: 50px 50px;
    background-position: center center bottom;
    background-repeat: no-repeat;
  }
  .fp-user-container {
    min-height: 100px;
    height: 100px;
    margin: 16px 16px 0 16px;
  }
  .fp-user-following {
    margin: 35px 16px 0 16px;
  }
  .fp-follow {
    margin-top: 10px;
  }
  #page-user-info .fp-user-detail-container {
    margin-top: 10px;
  }
  #page-user-info .fp-user-detail {
    font-size: 13px;
  }
    #fp-menu {
	margin-right: 0;
}
}

/* 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: white;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #263238;
}
#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;
  }
}


.mdl-switch.is-checked .mdl-switch__thumb {
    background: #263238;
   }
   
   .mdl-switch.is-checked .mdl-switch__track {
    background: rgba(0, 0, 0, 0.2);
}

.mdl-switch__ripple-container .mdl-ripple {
    background: #5c5c5c;
}

/* Post */
.mdl-textfield__label:after {
	background-color: #263238;
}

.fp-post .mdl-card {
  height: 100%;
  top: 0;
  left: 0;
  padding-bottom: 10px;
}
.fp-post .fp-image {
  flex: 1;
  background-size: cover;
  background-position: center top;
  box-sizing: border-box;
  padding-top: 25%;
  position: relative;
  padding-bottom: 25%;
  min-height: 250px;
  cursor: pointer;
}
@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: grey;
  margin-top: 7px;
  font-size: 14px;
  margin-right: 12px;
  text-decoration: none;
}
.fp-post .fp-time:HOVER {
  color: #263238;
}
.fp-post .fp-likes {
  color: #263238;
  padding: 10px 10px 0 10px;
  font-size: 14px;

}
.fp-post .fp-morecomments {
  position: absolute;
  bottom: 40px;
  text-align: center;
  padding: 10px;
  margin: 10px;
  width: 90%;
  cursor: pointer;
  font-size: 12px;
  color: gray;
  z-index: 9999;
}
.fp-post .fp-morecomments:HOVER {
  text-decoration: none;
  color: #263238;
}
.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: gray;
  font-size: 12px;
  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 {
  color: #263238;
}
.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;
  margin-top: 20px;
}
.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: #263238;
  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 */

h2 {
	font-size:55px;
	position:absolute;
	top:0;
	display:flex;
	justify-content:center;
	align-items:center;
	width:100%;
	height:100%;
	margin:0 auto
}


.center {
	width:100%;
	display:flex;
	justify-content:center;
	align-items:center;
	height:30%;
	bottom:0;
	position:absolute;
}


@keyframes scrollBad {
	0% {
		background-position:0 0
	}
	
	100% {
		background-position:0 -320px
	}
}

h2 {
	background-image:url(../images/bg.svg);
	background-position:center center;
	background-size:500px;
	animation:scrollBad 5s linear infinite
}



#page-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #24b375;

  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-size: 18px;
  opacity: 0.8;
}
#page-splash .fp-skip {
  font-weight:lighter;
  color:white;
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  font-weight: 400;
}
#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 */

::-webkit-input-placeholder {color:#fff;}
::-moz-placeholder          {color:#fff;}
:-moz-placeholder           {color:#fff;}
:-ms-input-placeholder      {color:#fff;}

@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-id-page-callback {
  background: transparent;
  box-shadow: none;
  margin-top: 40px;
  height: 84px;
  min-height: 0;
}
.firebaseui-id-page-federated-linking {
  background: rgba(0,0,0,0.05);
  margin-bottom: 15px;
  min-height: 150px;
  padding-top: 10px;
  border-radius: 20px;
  box-shadow: none;
}
.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);
  border-radius: 0;
}
.mdl-menu__item a {
	colo: gray;
}


.demo-card-wide.mdl-card {
  max-width: 512px;
  width: auto;
  margin: 0 auto;
}
.demo-card-wide > .mdl-card__title {
  color: #fff;
  height: 176px;
  background: center / cover;
}
.demo-card-wide > .mdl-card__menu {
  color: #fff;
}
