/**
 * 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', 'Helvetica', sans-serif;
}
.demo-avatar {
  width: 96px;
  height: 96px;
  border-radius: 12px;
}
.demo-layout .mdl-layout__header .mdl-layout__drawer-button {
  color: rgba(255, 255, 255, 0.75);
}
.mdl-layout__drawer .avatar {
  margin-bottom: 16px;
}
.demo-drawer {
  border: none;
}
/* iOS Safari specific workaround */
.demo-drawer .mdl-menu__container {
  z-index: -1;
}
.demo-drawer .demo-navigation {
  z-index: -2;
}
/* END iOS Safari specific workaround */
.demo-drawer .mdl-menu .mdl-menu__item {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}
.demo-drawer-header {
    /*background-image: url('img/fondotorta.jpg');*/
    box-sizing: border-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
    -webkit-justify-content: flex-end;
      -ms-flex-pack: end;
          justify-content: flex-end;
    padding: 16px;
    height: 151px;
}
.demo-avatar-dropdown {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    -webkit-flex-direction: row;
      -ms-flex-direction: row;
          flex-direction: row;
    -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
    width: 100%;
}

.mdl-mini-footer--left-section {
    padding-left: 240px;
}


@media screen and (max-width: 512px){
    .android-search-box:focus-within .android-title {
        display: none;
    }
}

@media screen and (max-width: 1024px){
    .mdl-mini-footer--left-section {
        padding-left: 0px;
    }
}

.mdl-badge[data-badge]:after {
  background-color: #ff4081;
  color: white;
}

.mdl-card__media {
  margin: 0;
  background-color: #FFF;
  text-align: center;
}
.mdl-card__media > img {
  max-width: 100%;
  max-height:155px;
}

.demo-navigation {
  -webkit-flex-grow: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}
.demo-layout .demo-navigation .mdl-navigation__link {
  display: -webkit-flex !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-flex-direction: row;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}
.demo-layout .demo-navigation .mdl-navigation__link:hover {
  background-color: #00BCD4;
  color: #37474F;
}
.demo-navigation .mdl-navigation__link .material-icons {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.75);
  margin-right: 32px;
}

.demo-content {
  max-width: 1080px;
}

.demo-charts {
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}
.demo-chart:nth-child(1) {
  color: #ACEC00;
}
.demo-chart:nth-child(2) {
  color: #00BBD6;
}
.demo-chart:nth-child(3) {
  color: #BA65C9;
}
.demo-chart:nth-child(4) {
  color: #EF3C79;
}
.demo-graphs {
  padding: 16px 24px;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-align-items: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}
/* TODO: Find a proper solution to have the graphs
 * not float around outside their container in IE10/11.
 * Using a browserhacks.com solution for now.
 */
_:-ms-input-placeholder, :root .demo-graphs {
  min-height: 664px;
}
_:-ms-input-placeholder, :root .demo-graph {
  max-height: 300px;
}
/* TODO end */
.demo-graph:nth-child(1) {
  color: #00b9d8;
}
.demo-graph:nth-child(2) {
  color: #d9006e;
}

.demo-cards {
  -webkit-align-items: flex-start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-align-content: flex-start;
      -ms-flex-line-pack: start;
          align-content: flex-start;
}
.demo-cards .demo-separator {
  height: 32px;
}
.demo-cards .mdl-card__title.mdl-card__title {
  color: white;
  font-size: 24px;
  font-weight: 400;
}
.demo-cards ul {
  padding: 0;
}
.demo-cards h3 {
  font-size: 1em;
}
.demo-updates .mdl-card__title {
  min-height: 200px;
  background-image: url('images/dog.png');
  background-position: 90% 100%;
  background-repeat: no-repeat;
}
.demo-cards .mdl-card__actions a {
  color: #00BCD4;
  text-decoration: none;
}

.demo-options h3 {
  margin: 0;
}
.demo-options .mdl-checkbox__box-outline {
  border-color: rgba(255, 255, 255, 0.89);
}
.demo-options ul {
  margin: 0;
  list-style-type: none;
}
.demo-options li {
  margin: 4px 0;
}
.demo-options .material-icons {
  color: rgba(255, 255, 255, 0.89);
}
.demo-options .mdl-card__actions {
  height: 64px;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  box-sizing: border-box;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}

/*------------------------------------------------------------------
[ Button sign in with ]*/
#customBtn {
  display: inline-block;
  background: #F8F8F8;
  color: #444;
  width: 250px;
  border-radius: 5px;
  border: thin solid #888;
  box-shadow: 1px 1px 1px grey;
  white-space: nowrap;
}
#customBtn:hover {
  cursor: pointer;
}
span.label {
  font-family: serif;
  font-weight: normal;
}
span.icon {
  background: url('../img/icon-google2.png') transparent 5px 50% no-repeat;
  display: inline-block;
  vertical-align: middle;
  width: 36px;
  height: 36px;
}
span.buttonText {
  display: inline-block;
  vertical-align: middle;
  padding-left: 42px;
  padding-right: 42px;
  font-size: 16px;
  font-weight: bold;
  /* Use the Roboto font that is loaded in the <head> */
  font-family: 'Roboto', sans-serif;
}

/*-------------- MDL Dialog ------------------ */
/* https://jsfiddle.net/w5cpw7yf/ */
/* library */
.dialog-container,
.loading-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: scroll;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
}

.dialog-container > div {
    position: relative;
    width: 90%;
    max-width: 500px;
    min-height: 25px;
    margin: 15% auto;
    z-index: 99999;
    padding: 16px 16px 0;
}

@media screen and (max-width: 512px){
    .dialog-container > div {
         margin: 50% auto;
    }
}

.dialog-button-bar {
    text-align: right;
    margin-top: 8px;
}

.loading-container > div {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 10% auto;
    z-index: 99999;
}

.loading-container > div > div {
    width: 100%;
    height: 100%;
}

/*-------- DATATABLE BOOTSTRAP PERSONALIZE ------- */

.mdc-data-table {
    border-width: 0px;
}
.mdc-button {
    min-width: 32px;
}
.mdl-data-table tbody tr {
    height: 24px;
}
.mdl-data-table td {
    height: 24px;
}
.mdl-data-table tbody tr:nth-child(2n) {
  /*background-color: white;*/
}
.mdl-data-table tbody tr:nth-child(2n+1) {
  background-color: #FAF5FF;
}
.pagination .mdc-button {
    border-radius: 48px;
}
.top {
    display: flex; 
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}
.bottom {
    display: flex; 
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}
#example_filter input {
    border-radius: 5px;
    border: 1px solid #ce93d8; 
    box-shadow: 0 0 0 1px #ce93d8;
    background-color: #FAF5FF;
    padding: 5px;
}
#example_filter input:focus {
    border-color: #ce93d8;
    box-shadow: 0 0 8px 0 #ce93d8;
}

/* ------------- SNIPDEMO -------------*/
.snippet-captions {
    text-align: center;
}

.snippet-demo {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    margin: 0
}

.snippet-demo-padding {
    text-align: center;
    padding: 0
}

.snippet-demo-padding, .snippet-caption, .snippet-caption-padding {
    display: table-cell;
    vertical-align: middle;
    margin: 0
}

.snippet-caption-padding {
    text-align: center;
    padding: 0
}

.snippet-caption {
    font-size: 13px;
    padding: 0 40px;
    white-space: nowrap;
    text-align: center;
    position: relative
}

.snippet-demo {
    padding: 0 40px;
}

.snippet-demos .snippet-demo-padding {
    width: 50%
}

_:-ms-input-placeholder, :root .snippet-demo {
    width: 1px
}

_:-ms-input-placeholder, :root .snippet-demos .snippet-demo-padding {
    width: auto
}


@media (max-width: 850px) {
    .snippet-demo {
        padding-left: 5px;
        padding-right: 5px
    }
    .mdl-textfield{
        width: 130px;
    }
}

.snippet-group.is-full-width .snippet-demo-container {
    width: 100%
}

.snippet-group.is-full-width .snippet-demos > .snippet-demo {
    width: 100%;
    padding-left: 0;
    padding-right: 0
}

.snippet-group.is-full-width .snippet-demo-padding {
    width: 0;
    padding: 8px;
    margin: 0
}


