/*
 * Styles used in base.html template
 */

html, body {
  font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 14px;
}

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

.strong {
  font-weight: bold;
}

#feedback-button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

/*
 * MDL customizations
 */

.mdl-textfield--wide {
  width: 500px;
}

.mdl-textfield__input {
  font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.mdl-checkbox {
  height: auto;
}

.mdl-button--primary.mdl-button--primary {
  color: #4285f4;
}

.mdl-button--raised.mdl-button--colored {
  background-color: #4285f4;
}

.mdl-button--colored.mdl-button--raised:hover {
  background-color: #2962ff;
}

.mdl-menu a {
  text-decoration: none;
}

.mdl-button--colored.mdl-button--raised:hover[disabled] {
  background-color: rgba(0,0,0,.12);
  pointer-events: none;
}


/* Footer */

.footer {
  background-color: #f6f6f6;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
}

.footer .lockup {
  margin-right: 56px;
}

.mdl-mini-footer--link-list li, .mdl-mini-footer__link-list li {
  margin-right: 24px;
}

.mdl-mini-footer--left-section, .mdl-mini-footer__left-section {
  /* Vertically center footer logo */
  align-items: center;
  display: flex;
}

.mdl-mini-footer a {
  color: #414141;
  font-weight: 400;
  letter-spacing: .25;
}

.mdl-mini-footer a:hover {
  color: #757575;
}

@media (max-width: 787px) {

  .cs-header .mdl-layout__header-row {
    padding: 0 16px;
  }

  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mdl-mini-footer--left-section, .mdl-mini-footer__left-section {
    display: block;
  }

  .footer .lockup, .mdl-mini-footer__link-list {
    flex-wrap: wrap;
    margin-bottom: 16px;
  }

}

/* Masthead */

.cs-header.mdl-layout__header {
  background-color: #fff;
  color: #757575;
}
.cs-header .mdl-layout__header-row {
  padding: 0 24px;
}

.cs-header .mdl-layout__header-row .mdl-navigation__link, .cs-header.mdl-layout__header .mdl-layout__drawer-button {
  color: #757575;
  opacity: 1;
}

.cs-header .mdl-navigation__link.cs-cta, .cs-mobilenav .cs-cta a {
  background-color: #4285f4;
  color: #fff;
  text-transform: uppercase;
}

.cs-header a.mdl-navigation__link.cs-cta-minor, .cs-mobilenav li.cs-cta-minor a {
  color: #4285f4;
  font-weight: 600;
  text-transform: uppercase;
}

.cs-header .mdl-navigation__link.cs-active {
  color: #000;
  cursor: default;
  pointer-events: none;
}

.cs-header .mdl-navigation__link.cs-active:after {
  background-color: #4285f4;
  bottom: 0;
  content: ' ';
  height: 4px;
  left: 18px;
  position: absolute;
  width: calc(100% - 35px);
}

.cs-header .mdl-navigation__link.cs-cta:hover {
  color: #fff;
  background-color: #2962ff;
}

.cs-header a.mdl-navigation__link.cs-cta-minor:hover {
  background-color: #f5f5f5;
  color: #2962ff;
}

.cs-header .mdl-layout__header-row .mdl-navigation__link {
  position: relative;
  transition-duration: .3s;
  transition-property: color, background-color;
  transition-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
}
.cs-header .mdl-navigation__link:hover {
  color: #000;
}

.page-content {
  background-color: #f2f2f2;
  padding: 36px 0;
  min-height: calc(100vh - 236px);
}

.page-content.white {
  background-color: #fff;
}

.page-title {
  margin-bottom: 40px;
  opacity: 0.54;
  text-align: center;
}

a.lockup {
  text-decoration: none;
}

.lockup-logo {
  background-image: url('/img/cwg-logo-attribution-grey.png');
  background-size: 250px 21px;
  height: 21px;
  margin-right: 4px;
  width: 250px;
}

.lockup-logo.lockup-dark {
  background-image: url('/img/cwg-logo-attribution-grey.png');
  opacity: 0.54;
}

.lockup-logo,
.lockup-text {
  display: inline-block;
}

.va {
  line-height: 0;
  vertical-align: middle;
}
/* Lockup text container */
.lockup-text {
  /* Set colour! */
  color: #757575;
  /* Fallback to fonts with broader language support */
  font-family: 'Product Sans', Arial, Helvetica, sans-serif;

  /* Subpixel font sizes are required to match spec. In the single density case,
     this sets the brand's x-height 1px below the Google logo's, with intentional
     anti-aliasing. */
  font-size: 23px;

  padding-right: 24px;

  /* Enables kerning and ligatures */
  text-rendering: optimizeLegibility;

  /* Improves consistency of text rendering on OSX browsers */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.extra-header-row {
  background-color: #f5f5f5;
}

.extra-header-row .mdl-navigation__link.header-up {
  padding-left: 0;
}

.dropdown {
  color: rgba(0,0,0,.54);
  cursor: pointer;
  transition: color .3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.dropdown:hover {
  color: rgba(0,0,0,1);
}

a {
  color: #4285f4;
  transition-duration: .3s;
  transition-property: color, background-color;
  transition-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
}

a:hover {
  color: #2962ff;
}

@media (max-width: 839px) {

  .cs-header .mdl-layout__header-row {
    padding: 0 16px;
  }

  .lockup-text {
    font-size: 18px;
  }

  .lockup-logo {
    background-size: 59px 19px;
    height: 19px;
    width: 59px;
  }

}

/*
 * Styles used on the landing page.
 */

.syllabus {
  max-width: 900px;
  margin: 0 auto 64px;
}

.track-select {
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,.2);
  display: flex;
  font-size: 14px;
  margin-bottom: 36px;
  margin-top: 48px;
  padding: 0 36px;
}

.track-text {
  margin-right: 16px;
}

.track-text .material-icons {
  color: rgba(0,0,0,.3);
  cursor: default;
  font-size: 16px;
}

.track {
  background: rgba(0,0,0,.1);
  cursor: pointer;
  margin: 0 8px;
  padding: 8px 16px;
}

.track:first-child {
  margin-left: 0;
}

.track:last-child {
  margin-right: 0;
}

.track.active {
  background: #0f9d58;
  color: #fff;
  cursor: default;
  font-weight: 400;
}

.unit {
  display: flex;
  transition: opacity .3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.unit.fadeout {
  opacity: .2;
}

.syllabus-unit-title {
  font-size: 18px;
  line-height: 1.54;
  margin: 0;
  text-align: right;
}

.syllabus-left {
  border-right: 1px solid rgba(0,0,0,.1);
  padding: 16px 24px 16px 0;
  position: relative;
  width: 20%;
}

.syllabus-left:after {
  background: #bdbdbd;
  border-radius: 16px;
  content: '';
  display: block;
  height: 16px;
  position: absolute;
  right: -8px;
  top: 21px;
  width: 16px;
}

.syllabus-right {
  padding: 16px 0 16px 24px;
  width: 80%;
}

.syllabus-right p {
  margin: 0;
}

/*
 * Styles used on the  student portal.
 */

.portal-container {
  max-width: 1024px;
  margin: 0 auto;
}

.portal-box {
  background: #fff;
  color: rgba(0,0,0,.75);
  margin-bottom: 24px;
  position: relative;
}

.portal-box.next.course-complete {
  background: #0f9d58;
}

.portal-box-section {
  border-bottom: 1px solid rgba(0,0,0,.1);
  padding: 24px;
  position: relative;
}

.portal-box-section:last-child {
  border: 0;
}

.connect .portal-box-section p:last-of-type {
  margin-bottom: 0;
}

.portal-box.next {
  background: #4285f4;
  color: #fff;
}

.portal-box.next .portal-box-subheader {
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}

.portal-box.next .portal-box-header.small {
  font-size: 16px;
  margin-bottom: 8px;
}

.material-icons, .material-icons-extended {
  vertical-align: middle;
}

.portal-box-header {
  font-size: 21px;
}

.portal-box-subheader {
  color: rgba(0,0,0,.4);
  font-size: 14px;
  margin-bottom: 8px;
}

.portal-box-header-link {
  color: #4285f4;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.clickbox {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  transition-property: box-shadow;
  transition-duration: .3s;
  transition-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
}

.clickbox:hover {
  box-shadow: 0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12),0 2px 4px -1px rgba(0,0,0,.2);
  cursor: pointer;
}

.clickbox.no-shadow:hover {
  box-shadow: none;
}

.announce-view-all {
  position: absolute;
  right: 16px;
  top: 16px;
}
.announce-dismiss {
  cursor: pointer;
  display: inline-block;
  margin-top: 8px;
}

.portal-box-section.flex-between {
  display: flex;
  justify-content: space-between;
}

.course-progress-percent {
  color: #ff9800;
  display: inline-block;
  margin-left: 8px;
}

.course-progress-percent.complete {
  color: #0f9d58;
}

@media (max-width: 839px) {

  .portal-content {
    order: 1
  }

  .portal-sidebar {
    order: 2;
  }

}

/* Course Progress Stepper */

.progress {
  display: inline-block;
  min-width: 250px;
}

.progress-step {
  padding-bottom: 8px;
  position: relative;
}

.progress-step:before {
  background: #e0e0e0;
  content: '';
  height: 100%;
  left: 20px;
  position: absolute;
  top: 0;
  width: 1px;
  z-index: 0;
}

.progress-step:last-of-type:before {
  content: none;
}

.progress-step-number {
  background: #bdbdbd;
  border-radius: 24px;
  color: #fff;
  font-size: 12px;
  font-weight: 300;
  height: 24px;
  left: 0;
  line-height: 24px;
  margin: 4px 0 4px 8px;
  position: absolute;
  text-align: center;
  top: 0;
  width: 24px;
  z-index: 1;
}

.progress-step-number.complete {
  background: #0f9d58;
}

.progress-step-number.in-progress {
  background: #ff9800;
}

.progress-step-number .material-icons {
  font-size: 18px;
}

.progress-step-title {
  cursor: pointer;
  font-size: 16px;
  line-height: 32px;
  padding-left: 42px;
  padding-right: 8px;
}

.progress-step-title:hover {
  background: rgba(0,0,0,.05);
}

.progress-step-title a {
  color: rgba(0,0,0,.75);
  cursor: pointer;
  display: block;
  font-weight: 400;
  text-decoration: none;
}

.progress-step-nested {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.progress-step-nested.show {
  max-height: 400px;
}

.progress-step-nested ul {
  padding-left: 48px;
  margin: 0;
}

.progress-step-nested li {
  cursor: pointer;
  list-style-type: none;
  padding: 4px 8px;
}

.progress-step-nested li:hover {
  background: rgba(0,0,0,.05);
}

.progress-step-nested a {
  color: rgba(0,0,0,.75);
  cursor: pointer;
  display: block;
  font-weight: 400;
  text-decoration: none;
}

.cert-required {
  background-image: url('../img/ribbon-grey.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  height: 24px;
  vertical-align: middle;
  width: 24px;
}

.cert-required.complete {
  background-image: url('../img/ribbon-green.png');
}

.material-icons.complete {
  color: #0f9d58;
}

.get-certificate {
  margin-bottom: 16px;
}

.cert-incomplete {
  width: 13px;
}


/*
 * Styles for course content pages
*/

.course-sidebar {
  bottom: 0;
  left: 0;
  overflow: auto;
  padding: 24px 0 136px 36px;
  position: fixed;
  top: 64px;
  width: 276px;
}

.course-sidebar-title {
  color: rgba(0,0,0,.54);
  font-size: 16px;
  font-weight: 500;
  line-height: 36px;
  margin: 8px 0;
  padding-right: 24px;
  text-align: right;
}

.course-sidebar-link {
  color: rgba(0,0,0,.54);
  cursor: pointer;
  display: block;
  font-size: 16px;
  line-height: 36px;
  margin: 8px 0;
  text-decoration: none;
}

.progress-step-nested a.current {
  font-weight: bold;
}

.course-sidebar-link:hover, .course-sidebar-link.active {
  color: #000;
}

.course-sidebar-link .material-icons {
  margin-right: 8px;
}

.course-sidebar-link .expando-arrow:before {
  content: 'keyboard_arrow_right';
}

.course-sidebar-link.expanded .expando-arrow:before {
  content: 'keyboard_arrow_down';
}

.course-sidebar .expando {
  margin-left: 26px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.course-sidebar .expando.show {
  max-height: 1500px;
}

.course-toc ul {
  margin: 0;
  list-style-type: none;
  padding-left: 12px;
}

.course-toc li[role="button"] {
  cursor: pointer;
}

.course-sidebar .progress-step-title {
  font-size: 14px;
  line-height: 28px;
}
.course-sidebar .progress-step-number {
  border-radius: 22px;
  font-size: 12px;
  height: 22px;
  line-height: 22px;
  width: 22px;
}

.course-content {
  background: #fff;
  margin: 0 36px 64px 324px;
}

.course-content .portal-box-section {
  border-left: 2px solid transparent;
  padding: 36px;
}

.course-content .portal-box-section.active {
  border-left-color: #4285f4;
}

.course-header {
  background: #4285f4;
  color: #fff;
  padding: 36px;
}

.course-header .unit-name {
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}

.course-header .section-name {
  font-size: 21px;
}

.toc-header, [data-toc-item] {
  background: rgba(0,0,0,.08);
  display: inline-block;
  font-size: 21px;
  margin-bottom: 24px;
  margin-left: -38px;
  padding: 16px 36px;
}

.prev-next {
  display: flex;
  justify-content: space-between;
}

.prev-next .direction {
  color: rgba(0,0,0,.3);
  margin-bottom: 8px;
}

.prev-next p {
  color: #4285f4;
  font-size: 16px;
  transition: color .3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.prev-next .material-icons {
  color: #4285f4;
  position: absolute;
  transition: color .3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.prev-next .prev:hover .material-icons, .prev-next .prev:hover p, .prev-next .next:hover .material-icons, .prev-next .next:hover p {
  color: #2962ff;
}

.prev-next .prev .material-icons {
  left: 0;
  top: 28px;
}

.prev-next .next .material-icons {
  right: 0;
  top: 28px;
}

.prev-next .prev {
  cursor: pointer;
  padding-left: 36px;
  position: relative;
}

.prev-next .next {
  cursor: pointer;
  padding-right: 36px;
  position: relative;
}

/* Callouts */

.callout {
  background: #cfd8dc;
  margin: 16px -36px;
  padding: 24px 36px 24px 76px;
  position: relative;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-title {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: bold;
}

.callout .material-icons {
  color: #90a4ae;
  font-size: 42px;
  left: 24px;
  position: absolute;
  top: 18px;
}

.callout .material-icons:before {
  content: 'notifications';
}

.callout.hint {
  background: #fff9c4;
}

.callout.hint .material-icons {
  color: #ffc107;
}

.callout.hint .material-icons:before {
  content: 'lightbulb_outline';
}

.callout.checkpoint {
  background: #fbe9e7;
}

.callout.checkpoint .material-icons {
  color: #eda29b;
}

.callout.checkpoint .material-icons:before {
  content: 'pause_circle_filled';
}

.callout.info {
  background: #e0f7fa;
}

.callout.info .material-icons {
  color: #80deea;
}

.callout.info .material-icons:before {
  content: 'info';
}

.callout.affirmation {
  background: #e8f5e9;
}

.callout.affirmation .material-icons {
  color: #a5d6a7;
}

.callout.affirmation .material-icons:before {
  content: 'sentiment_very_satisfied';
}

.callout.warning {
  background: #ffe0b2;
}

.callout.warning .material-icons {
  color: #ff9800;
}

.callout.warning .material-icons:before {
  content: 'warning';
}

.callout.consider {
  background: #e0f2f1;
}

.callout.consider .material-icons {
  color: #80cbc4;
}

.callout.consider .material-icons:before {
  content: 'extension';
}

.callout.starter-code {
  background: #424242;
  color: #fff;
}

.callout.starter-code .material-icons, .callout.starter-code a {
  color: #76ff03;
}

.callout.starter-code .material-icons:before {
  content: 'code';
}

.mark-complete {
  text-align: center;
  padding: 16px;
  font-size: 16px;
  background: #f4c7c3;
  transition: background-color .3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mark-complete .material-icons:before {
  content: 'check_box_outline_blank';
}

.mark-complete.complete {
  background: #b7e1cd;
}

.mark-complete.complete .material-icons:before {
  content: 'check_box';
}

.mark-complete a {
  cursor: pointer;
  color: rgba(0,0,0,.75);
  font-weight: 400;
  transition: color .3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mark-complete a:hover {
  color: #000;
}

/* Hide the CB native completion button on lessons */
.manual-progress-lesson {
  display: none;
}

/* Hide sidebar on mobile */

@media (max-width: 839px) {

  .course-sidebar {
    display: none;
  }

  .course-content {
    margin: 0 16px 48px;
  }

}


/*
 * Styles for questions on registration and questionnaires.
*/

.registration {
  max-width: 800px;
  margin: 0 auto;
}

.registration-form p {
  font-size: 16px;
  margin-bottom: 0;
}

.question {
  margin: 30px 0;
}

.invalid.question p {
  color: #ff0000;
}

.required.question > p:after {
  content: '\00a0*'; /* \00a0 == &nbsp; */
  color: #ff0000;
}

.journey-A,
.journey-B1,
.journey-B2,
.journey-C,
.journey-D,
.journey-E {
  display: none;
}

.show-journey-A .journey-A,
.show-journey-B1 .journey-B1,
.show-journey-B2 .journey-B2,
.show-journey-C .journey-C,
.show-journey-D .journey-D,
.show-journey-E .journey-E {
  display: block;
}

.checkbox-question .mdl-checkbox,
.radio-question .mdl-radio {
  display: block;
  height: inherit; /* Permit multi-line labels. */
}

.likert-question__row {
    display: flex;
    flex-direction: row;
}

.likert-question__row .mdl-radio {
  height: inherit; /* Permit multi-line labels. */
  margin: 10px 15px 0 15px;
  padding: 24px 0 0 0;
  text-align: center;
}

.likert-question__row .mdl-radio__inner-circle,
.likert-question__row .mdl-radio__outer-circle {
  margin-left: 50%;
}

.header-question {
  font-size: 21px;
}


/*
 * Styles for facilitator portal
*/

.course-sidebar.facilitator {
  width: 250px;
}

.course-sidebar.facilitator .course-sidebar-link.current {
  color: #000;
}

.portal-box.facilitator {
  margin-left: 300px;
  margin-right: 36px;
}

.portal-box.todo-list .mdl-checkbox {
  min-height: 28px;
}

.portal-box.todo-list .mdl-checkbox.is-checked .mdl-checkbox__label {
  color: rgba(0,0,0,.4);
  text-decoration: line-through;
}

.portal-box.todo-list .mdl-checkbox.is-checked .mdl-checkbox__label a {
  color: rgba(0,0,0,.4);
  pointer-events: none;
}

.todo-category .portal-box-subheader {
  cursor: pointer;
}

.todo-category .portal-box-subheader:before {
  content: "[\2013 ] ";
}

.todo-category.collapsed .portal-box-subheader:before {
  content: "[+] ";
}

.todo-category {
  max-height: 300px;
  overflow: hidden;
  transition-duration: .3s;
  transition-property: max-height;
  transition-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
}

.todo-category.collapsed {
  max-height: 38px;
}

.todo-category .portal-box-subheader {
  margin-bottom: 8px;
  margin-top: 16px;
}


.resource {
  background: rgba(0,0,0,.6);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 8px;
  min-height: 175px;
  padding: 16px;
  position: relative;
  transition: background-color .3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.resource:hover {
  background: #009688;
}

.resource.docs:hover {
  background: #4285f4;
}

.resource.slides:hover {
  background: #ff9800;
}

.resource.sheets:hover {
  background: #0f9d58;
}

.resource.forms:hover {
  background: #673ab7;
}

.resource.drawings:hover {
  background: #db4437;
}

@media (min-width: 840px) {
  .resource-tiles .mdl-cell--4-col {
    width: 33.3333333333%;
  }
}
.resource-title {
  font-size: 18px;
  line-height: 1.54;
  margin-bottom: 16px;
}

.resource-desc {
  line-height: 1.54;
}

.resource-icons {
  text-align: right;
}

.resource-icons img {
  width: 24px;
}

.portal-box-header a {
  text-decoration: none;
  font-weight: 400;
  color: rgba(0,0,0,.75);
}

.portal-box-header a:hover {
  color: rgba(0,0,0,.75);
}

/*
 * Styles for individual resource page
*/
/*
.portal-box.resource-header {
  text-align: center;
  background: transparent;
  padding-bottom: 0;
  padding-top: 0;
}
*/


/*
 * Questionnaires
 */
.acswa-questionnaire {
  margin-bottom: 50px;
}


/*
 * The Ajax spinner
 */
.spinner {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}
.spinner .background {
  background-color: #fff;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}

/*
 * The message bar about the legacy course on the registration page.
 */
.legacy-course-message {
  background: rgba(68, 68, 68, 0.9);
  color: #fff;
  font-size: 18px;
  line-height: 22px;
  padding: 20px 40px 20px 10px;
  position: fixed;
  top: 56px;
  width: calc(100% - 50px);
  z-index: 100;
}

.legacy-course-message button {
  background: inherit;
  border: none;
  color: inherit;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 10px;
}

.legacy-course-message h2 {
  font-size: 22px;
  margin: 10px 0;
  line-height: normal;
}

.legacy-course-message em {
  font-style: normal;
  font-weight: bold;
}

.legacy-course-message a {
  color: #FDD835;
}

.legacy-course-message + .portal-container {
  margin-top: 180px;
}

/* Yellow butterbar */

.acs-butterbar {
  background: #fff7e1;
  border-bottom: 1px solid #feefc3;
  padding: 12px 0;
  text-align: center;
}

.acs-butterbar p {
  color: #292d33;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 16px;
}

.acs-butterbar a {
  font-weight: 500;
}

/* Fit 4 cards to a row for case studies */

@media (min-width: 1024px) {
  .h-c-tile-set {
    margin: -14px;
  }
}
