/*
  MDL
*/
.mdl-card {
  margin: 20px 8px;
}

.mdl-layout__title, .mdl-layout-title {
  font-weight: 200;
}

.mdl-textfield-color--white:after {
  background-color: white !important;
}

.mdl-textfield {
  margin-left: 8px;
  margin-right: 8px;
}

.mdl-dialog {
  width: 30vw;
}

.mdl-textfield__error {
  position: relative;
  visibility: visible;
}

/*
  Header
*/
.header {

}

.header-navigation__link {
  opacity: 1;
}

.header-navigation__link--active,
    .header-navigation__link:hover {
  color: yellow !important;
}

.header-navigation__link .material-icons {
  height: 32px;
  width: 32px;
}

/*
  Drawer
*/
.drawer-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  padding: 16px 0px;
  /*height: 151px;*/
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: white;
}

.drawer-navigation {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

.drawer-link {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: white !important;
  font-weight: 500;
  padding: 16px 18px !important;
}

.drawer-link--disabled {
  background-color: #1E2E36 !important;
}

.drawer-link:hover {
  background-color: #1E2E36 !important;
  color: #37474F;
}

.drawer-link .material-icons {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.56);
  margin-right: 32px;
}

.drawer-link:hover .material-icons {
  color: #4caf50 !important;
}

.mdl-layout__drawer {
  border: none;
}

/*
  Courses list
*/
.courses {

}

.courses-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 95%;
}

.courses-card__title {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding: 16px 0;
    height: 150px;
    background-position: center;
    background-size: cover;
}

.courses-card__content p {
  margin: 0;
  height: 40px;
  overflow: hidden;
  line-height: 1.3em;
}

.courses-card__grade {
  color: grey;
}

.courses-card__grade:hover {
  color: gold;
}

.courses-card__button {
  width: 100%;
  padding: 0;
}

.courses-card__actions {
  display: flex;
  justify-content: space-between;
}

.courses-card__rate {
  display: flex;
  flex-direction: row-reverse;
}

.courses-card__grade:hover,
.courses-card__grade:hover ~ .courses-card__grade {
  color: gold;
}

.courses-card__share, .courses-card__like {
  color: grey;
  margin-left: 10px;
}

.courses-card__share:hover, .courses-card__like:hover, .courses-card__like.active {
  color: #ff4081;
}

/*
  Course
*/
.course {

}

.course-card {
  width: auto;
}

.course-card__text {
  max-width: 100%;
  width: auto;
}

.course-card__title {
  text-align: center;
}

.course-card__lection_title {
  width: 90%;
}

.course-card__lection_edit {
  width: 10%;
  text-align: right
}

/*
  Cabinet
*/
.cabinet {

}

.cabinet-card {
  width: 95%;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.cabinet-avatar__container {
  text-align: center;
}

.cabinet-title {
  padding: 5px;
  font-size: 2rem;
}

.cabinet-course__image {
  height: auto;
  width: 100%;
}

.cabinet-course__row {
  padding: 16px;
}

.cabinet-course__progress {
  margin: 8px;
  width: 100%;
}

@media screen and (min-width: 62em) {
  .cabinet-user__name--left {
    text-align: left;
  }

  .cabinet-user__name--right {
    text-align: right;
  }
}

/*
  Lection
*/
.lection-material__card {
  width: 100%;
  margin: 10px auto 0 auto;
  min-height: 90vh;
}

.lection-material__card_title {
  padding: 8px;
}

.lection-material__card_title > h3 {
  font-size: 28px;
  margin: 0 auto;
}

.lection-material__card_content {
  margin: 0 auto;
}

.lection-material__card_video {
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.lection-material__list_item {
  text-align: left;
}

.lection-material__list_item--disabled a {
  background-color: #2196F3;
  cursor: default;
  color: white;
  text-decoration: none;
}

.lection-material__list_item--donate a, .course-card__lection_title--donate {
  color: #ccc;
}

.lection-material__list_item--donate a:before, .course-card__lection_title--donate:before {
  content: '\0024 \0020';
}

.books-card__form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.books-card__form_input {
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
}

@media screen and (max-width: 48em) {
  .mdl-dialog {
    width: 90vw !important;
  }

  .mdl-layout--fixed-tabs .mdl-layout__tab {
    font-size: 10px;
  }
}

@media screen and (min-width: 48em) {
  .mdl-dialog {
    width: 70vw !important;
  }
}

@media screen and (min-width: 64em) {
  .mdl-dialog {
    width: 40vw !important;
  }
}

@media screen and (max-width: 62em) {
  .lection-material__card_title h3 {
    font-size: 24px;
  }
}