/**
 * 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: 100%;
  height: 100%;
  max-width: 38px;
  max-height: 38px;
  border-radius: 50%;
}
.mdl-layout {
  min-height: 100vh;
}
.demo-layout .mdl-layout__header .mdl-layout__drawer-button {
  color: rgba(0, 0, 0, 0.54);
}
.mdl-layout__drawer .mdl-navigation .mdl-navigation__link {
  padding: 16px;
}
.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 {
  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%;
}

.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.9);
  font-weight: normal;
}
.demo-layout .demo-navigation .mdl-navigation__link:hover {
  background-color: #ffc107;
  color: #333;
}
.demo-navigation .mdl-navigation__link .material-icons {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.56);
  margin-right: 32px;
}

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

.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 32px;
  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;
}
.mdl-layout__header-row .demo-options .material-icons {
  color: #424242;
}
.mdl-layout__drawer  .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;
}

/* Modal Dialog 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: 800px;
    min-height: 25px;
    margin: 10% auto;
    z-index: 99999;
    padding: 16px 16px 0;
}

.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%;
}

/* Modal Dialog Library */

.masonry-container {
  padding:0 !important;
}

.mdl-card__title.img-header {
  background-color: #666;
  color: #fff;
  height: 150px;
  text-shadow: 0px 0px 5px #000;
}

.add-btn {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 2;
  box-shadow: 0 0 3px rgba(0,0,0,.3), -4px 5px 15px rgba(0,0,0,.24);
}
.add-btn i {
  transition: transform 300ms;
}
.add-btn:hover i {
  transform: translate(-12px, -12px) rotateZ(180deg);
}

.mdl-menu__item a {
  width: 100%;
}

input[type="color"] {
  height: 35px;
}

.lesson-checkboxes {
    -webkit-appearance: none;
    border: 2px solid #666;
    border-radius: 2px;
    padding: 6px;
    margin: 2px 6px;
    vertical-align: text-bottom;
}

.lesson-checkboxes:checked {
    background: rgb(255,193,7)url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K");
    border-color: rgb(255,193,7);
}

.mdl-chip {
  height: 21px;
}
.mdl-chip .mdl-chip__text {
  margin-top: -10px;
}

.mdl-color--primary > .mdl-chip__text, .mdl-color--accent > .mdl-chip__text {
  color: #fff;
}

ol.sortable {
  list-style: none;
  padding-left: 0;
}
li.placeholder {
  height: 24px !important;
}

.maketest {
  cursor: pointer;
}

.mdl-menu__item a {
  display: block;
}

.morris-hover {
  position: absolute;
  background: rgba(255,255,255,.5);
}

.mdl-layout__tab-bar {
  width: 100%;
  padding: 0;
}
.mdl-layout__tab-bar-button {
  width: 40px;
  transition: opacity 300ms ease;
}
.mdl-layout__tab-bar-button:not(.is-active) {
  opacity: 0;
  pointer-events: none;
}
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px white inset;
}
.mdl-cell.center > div {
  margin: 0 auto;
  width: auto;
  max-width: 90%;
}
.mdl-textfield__label {
  color: #999;
}
.help-block {
  color: #c00000;
}
.zopim {
  bottom: 40px !important;
  left: 30px !important;
  border-radius: 5px;
}
/* .mdl-snackbar {
  z-index: 7 !important;
} */
.mdl-grid {
  width: 100%;
  box-sizing: border-box;
}
.edit-lesson-title i.material-icons {
  vertical-align: middle;
}
/* Hide jumbled field labels while the page is loading */
.mdl-js-textfield:not(.is-upgraded) > .mdl-textfield__label {opacity: 0;}
.mdl-js-selectfield:not(.is-upgraded) > .mdl-selectfield__label {opacity: 0;}

.mdl-selectfield__label:after {display: none !important;}

.mdl-tabs__tab-bar .mdl-tabs__tab {
  position: relative;
  display: inline-block;
  padding: 10px;
  white-space: nowrap;
  padding-top: 0;
  padding-bottom: 0;
}

.mdl-tabs__tab-bar .mdl-tabs__tab::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 45px;
  width: 15px; /* Adjust the width of the fading effect */
  background: linear-gradient(to left, rgba(245, 245, 245, 1), rgba(245, 245, 245, 0));
}

@media print {
  .mdl-tabs__tab-bar .mdl-tabs__tab:not(.is-active) {
    display: none;
  }
}

.thisweek p {
  line-height: 1.2;
}

.nowrap {
  white-space: nowrap;
}