/*
 * Hercules modifications
*/

/* Add border underneath social row in footer */

.h-c-social {
  border-bottom: 1px solid #e2e2e2;
}

.svg-assets {
  display: none;
}

.acs-breadcrumb {
  padding-left: 24px;
  padding-right: 24px;
}

/*
 * Utilities
*/

.acs-center-block {
  margin-left: auto;
  margin-right: auto;
}

.h-c-headline.no-hyphen {
  hyphens: none;
}

.acs-center-flex {
  justify-content: center;
}

/*
 * Components
*/

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

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

.acs-content-block {
  padding-bottom: 20px;
  padding-top: 20px;
}

.acs-text-intro.h-c-headline {
  margin-left: auto;
  margin-right: auto;
  max-width: 1000px;
}

.acs-text-intro {
  max-width: 800px;
}

.acs-text-intro--small {
  max-width: 650px;
}

.acs-hero {
  background-color: #757575;
  background-position: center;
  background-size: cover;
}

.acs-hero .h-c-headline {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.50);
}


@media (min-width: 600px) {

  .acs-content-block {
    padding-bottom: 40px;
    padding-top: 40px;
  }

  .acs-hero-block {
    padding-bottom: 40px;
    padding-top: 40px;
  }

}

@media (min-width: 1024px) {

  .acs-content-block {
    padding-bottom: 60px;
    padding-top: 60px;
  }

  .acs-hero-block {
    padding-bottom: 80px;
    padding-top: 80px;
  }

}

/*
 * Home page
*/

.acs-course-details {
  background: #f2f2f2;
  padding: 24px;
}

/* App demo section */

.home-appdemos {
  background: #f2f2f2;
}

.appdemo-container {
  display: flex;
  margin: 48px 0;
}

.appdemo {
  background-image: url(../img/phone.png);
  background-repeat: no-repeat;
  background-size: 305px 600px;
  height: 600px;
  margin-right: 24px;
  padding: 51px 15px 0;
  width: 305px;
}

.appdemo video {
  width: 273px;
}

.appdemo-cards {
  align-content: center;
  justify-content: center;
  margin: 0 -8px;
  display: flex;
  flex-wrap: wrap;
}

.appdemo-cards--card {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 8px;
  padding: 8px;
  transition: box-shadow .2s;
  width: 180px;
}

.appdemo-cards--card:hover,
.appdemo-cards--card.active {
  box-shadow: 0 16px 24px 2px rgba(0,0,0,0.14), 0 6px 30px 5px rgba(0,0,0,0.12), 0 8px 10px 0 rgba(0,0,0,0.20);
  cursor: pointer;
}

.appdemo-cards--card-title {
  margin-top: 8px;
  font-weight: 500;
  text-transform: uppercase;
}

.acs-hiw img {
  max-width: 250px;
}

@media (max-width: 980px) {

  .appdemo {display: none;}

}

/*
 * For Facilitators
*/

.cs-2col {
  display: flex;
  position: relative;
}

.cs-2col__sidebar {
  border-right: 1px solid #e0e0e0;
  flex-shrink: 0;
  margin-right: 36px;
  min-width: 230px;
  padding-right: 24px;
}

.cs-2col__sidebar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.cs-2col__sidebar li {
  margin-bottom: 8px;
}

.cs-2col__sidebar li a {
  font-weight: 500;
  text-decoration: none;
}

.cs-2col__sidebar li a.cs-active {
  color: rgba(0,0,0,.87);
  font-weight: 700;
}

.cs-2col__sidebar .cs-section__feature--card-title {
  margin-bottom: 8px;
}

@media (max-width: 768px) {

  .cs-2col {
    flex-wrap: wrap;
  }

  .cs-2col__sidebar {
    border-bottom: 1px solid #e0e0e0;
    border-right: none;
    flex: 1;
    margin-bottom: 16px;
    margin-right: 0;
    margin-top: -32px;
    padding-bottom: 12px;
    padding-right: 0;
  }

  .cs-2col__sidebar li {
    float: left;
    margin-right: 16px;
  }

}

.video-aspect-ratio {
  padding-top: 56.25%;
  position: relative;
  width: 100%;
}

.video-aspect-ratio iframe {
  height: 100%;
  position: absolute;
  top: 0;
  width: 100%;
}


/*
 * Syllabus page
*/

.track-menu a {
  display: inline-block;
  padding: 8px 16px;
}

.track-menu {
  border-bottom: 2px solid #f2f2f2;
  list-style-type: none;
  margin: 0 0 36px;
  padding: 0;
  z-index: 10;
}

.track-menu li {
  display: inline-block;
}

.track-option.selected {
  background: rgba(0,0,0,.05);
  color: rgba(0,0,0,.87);
}

.syllabus-cards {
  display: block;
  margin-bottom: 64px;
  margin-top: 24px;
}

div.syllabus-card {
  background: #fafafa;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  position: relative;
  margin-bottom: 24px;
  max-height: 500px;
  box-sizing: border-box;
  transition: .2s;
}

p.track-desc {
  margin-bottom: 16px;
}

p.syllabus-card.not-in-track {
  display: none;
}

.syllabus-unit {
  padding: 0 16px;
}

.syllabus-card-title {
  margin-top: 16px;
  margin-bottom: 4px;
}

.syllabus-cards .not-in-track:after {
  background: rgba(255,255,255,.54);
  content: '';
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.syllabus-cards .not-in-track {
  margin-bottom: 16px;
  max-height: 36px;
  overflow: hidden;
}

.syllabus-cards .not-in-track .syllabus-lesson-plan {
  display: none;
}

.syllabus-lesson-plan.h-c-button.h-c-button--flat {
  background: #fafafa; /* Nicer overlap with title */
  padding: 8px 16px;
  position: absolute;
  right: 4px;
  top: 8px;
}

.syllabus-card-icon {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  min-height: 130px;
  width: 130px;
}

.syllabus-card-icon img {
  width: 100%;
}

#scarnes-dice-app .syllabus-card-icon,
#scarnes-dice .syllabus-card-icon {
  background: #db4437;
}

#anagrams .syllabus-card-icon {
  background: #FFEB3B;
}

#ghost .syllabus-card-icon,
#ghost-ii .syllabus-card-icon {
  background: #FF9800;
}

#word-stack .syllabus-card-icon {
  background: #4CAF50;
}

#puzzle-8 .syllabus-card-icon {
  background: #00BCD4;
}
#word-ladder .syllabus-card-icon {
  background: #9C27B0;
}

#black-hole .syllabus-card-icon {
  background: #546E7A;
}

#continental-divide .syllabus-card-icon {
  background: #3F51B5;
}

#code-sprint .syllabus-card-icon {
  background: #CDDC39;
}

#binary-tree .syllabus-card-icon {
  background: #009688;
}

#touring-musician .syllabus-card-icon {
  background: #673AB7;
}

p.unit-skills {
  color: rgba(0,0,0,.54);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

@media (max-width: 768px) {

  .syllabus-lesson-plan.h-c-button.h-c-button--flat {
    margin-bottom: 8px;
    position: relative;
    right: 16px;
    top: 0;
  }

}

@media (max-width: 414px) {

  .syllabus-card {
    flex-wrap: wrap;
  }

  .syllabus-card-icon {
    flex: 1;
    height: 64px;
    min-height: none;
    overflow: hidden;
  }

  .syllabus-cards .not-in-track .syllabus-card-icon {
    display: none;
  }

}

/*
 * For Faculty
*/

.acs-faculty.acs-hero {
  background-image: url(../img/case-studies.jpg)
}

.acs-cta {
  background: #3367d6;
}

.acs-cta .h-c-headline {
  color: #fff;
}

/*
 * FAQ
*/

.acs-faq.acs-hero {
  background-image: url(../img/hero-faq.jpg)
}

.acs-faq img {
  max-height: 200px;
}

/* Dropdown and FAQ functionality taken from Educator Grants */

.eg-faq {
  max-width: 1000px;
}

/* Dropdown Selector */

#eg-select-container {
  display: inline-block;
  position: relative;
}

#eg-select {
  -webkit-appearance: none;
  -webkit-font-smoothing: antialiased;
  background: none;
  border: none;
  border-bottom: 1px solid #3367d6;
  color: #3367d6;
  font-size: 24px;
  padding-bottom: 0;
}

#eg-select-options {
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 24px 0 rgba(0,0,0,.1);
  color: #676c72;
  display: block;
  max-height: 400px;
  padding: 16px 0;
  position: absolute;
  right: 0;
  top: -100px;
  transition: .3s;
  width: 250px;
  z-index: 5;
}

#eg-select-options li a {
  color: #676c72;
  display: block;
  padding: 12px 20px;
}

#eg-select-options li a.active {
  color: #3367d6;
  text-decoration: underline;
}

#eg-select-options li a:hover {
  color: #000;
}

#eg-select-options.closed {
  box-shadow: none;
  max-height: 0;
  padding-bottom: 0;
  padding-top: 0;
  overflow: hidden;
}

#eg-select-options ul {
  list-style-type: none;
  margin: 0;
}

#eg-select-options li {
  overflow: hidden;
  text-align: left;
  transition: .3s;
}

#eg-select-options.closed li {
  height: 0;
  padding-bottom: 0;
  padding-top: 0;
}

#eg-select-content .closed {
  display: none;
}

/* Match select size to .h-c-headline--two */

@media (min-width: 600px) {
  #eg-select {font-size: 32px;}
}

@media (min-width: 1024px) {
  #eg-select {font-size: 44px;}
}

/*
 * Embedded iframes
*/

.lesson-plan-embed {
  border: 0;
  height: calc(100vh - 252px);
  width: 100%;
}

.add-to-drive.h-c-button.h-c-button--primary {
  background-color: #212121;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  bottom: 130px;
  margin: 24px;
  padding-left: 48px;
  position: absolute;
  right: 0;
}

.add-to-drive svg {
  left: 12px;
  position: absolute;
  top: 12px;
}

.h-c-footer__logo {
  align-items: center;
  display: flex;
  flex-basis: 320px;
  font-size: 14px;
  font-weight: 500;
  justify-content: flex-start;
  min-width: 260px;
}

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

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