* {
  box-sizing: border-box;
}

input[type="checkbox"] {
  transform: scale(1.5);
  margin-top: 0.5rem;
  cursor: pointer;
}

label {
  cursor: pointer;
}

#heading {
  padding-bottom: 0;
}

#topWrapper, #topWidthLimit {
  position: relative;
}

#messageWrapper {
  pointer-events: none;
  position: absolute;
  top: -1rem;
  left: 0;
  width: 100%;
  min-height: 2rem;
  height: auto;
  z-index: 10;

  display: flex;
  flex-direction: column;
  align-items: center;
}

#message {
  font-size: 1.2rem;
  background-color: var(--color-primary-light);
}

div.guide {
  font-size: 1.1rem;
  font-weight: normal;
}

#banner.guide {
  font-size: 1.2rem;
  font-weight: bold;
}

div.guideOff {
  font-size: 1.1rem;
  font-weight: normal;
}

#teacherWrapper, #parentWrapper {
  grid-row: 3 / span 1;
  grid-column: 3 / span 3;

  padding: 0;
  padding-bottom: 0;
}

#singleSectionTeacher, #singleSectionParent {
  max-width: 44rem;
}

#singleSectionTeacher.pro {
  max-width: 55rem;
}

#singleSectionParent,
#singleSectionParent.pro {  max-width: 33rem;
}

#todoWW {
  font-size: 1rem;
  font-weight: normal;
  position: absolute;
  display: flex;
  justify-content: center;
}

#todoWW.more {
  position: static;
}

#todoW {
  margin: 0 0.5rem 0.2rem 0;
  border-left: 0.2rem solid var(--color-secondary-text);
  padding: 0 0 0 0.5rem;
  max-width: 30rem;

  display: flex;
  flex-direction: column;
}

#todoW.empty {
  visibility: hidden;
}

#todoH {
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 0.5rem;

  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#todo0 {
  margin-top: 0;
}

#todoIcon {
  width: 2rem;
  margin-right: 0.5rem;
}

.todo {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
}

#todoButton {
  margin-left: 1rem;
  height: 2rem;
  padding: 0;
}

#todoButton > span > div > img {
  max-height: 65%;
  max-width: 65%;
}

#nMoreW {
  margin-top: 0.5rem;
  width: 100%;

  display: flex;
  justify-content: flex-end;
}

#nMore {
  cursor: pointer;
  font-size: 0.9rem;
  border: none;
}

.quickLink {
  padding: 0.3rem;
}

#showQuickStartW {
  position: absolute;
  height: 2rem;
  background-color: var(--color-primary-fill);
  padding: 0.5rem;

  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;

  display: flex;
  align-items: center;
}

#showQuickStartW.open {
  width: 100%;
  background-color: var(--color-transparent);
  justify-content: flex-end;
}

#showQuickStart {
  font-size: 0.8rem;
  padding: 0 0.2rem 0 0.4rem;
  margin: 0.5rem;
  cursor: pointer;
  background-color: var(--color-primary-light);
  border: none;
}

#todoW.retracted,
#showQuickStartW.retracted,
#quickStart.retracted {
  display: none;
}

#quickStart {
  padding: 0;
  padding-right: 0.5rem;

  background-color: var(--color-primary-fill);
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;

  display: grid;
  grid-gap: 0.5rem;
  /* 5 columns */
  grid-template-columns: minmax(auto, 10%) auto min-content minmax(min-content, max-content) minmax(auto, 10%);
  /* 2 rows */
  grid-template-rows: minmax(min-content, max-content) minmax(min-content, max-content);
}

#firstStepsHeading {
  grid-column: 2 / span 3;
  grid-row: 1 / span 1;

  font-size: 2rem;
  font-weight: bold;

  margin-top: 1rem;
  margin-bottom: 1rem;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#learn {
  position: relative;
  margin: 1rem;
  white-space: nowrap;
}

#learnTempo {
  position: absolute;
  top: 3.2rem;
  right: 3rem;
  font-size: 1rem;
}

#learnSight {
  position: absolute;
  top: -1.3rem;
  right: -0.7rem;
  font-size: 1rem;
}

#learnGroove {
  position: absolute;
  top: 2.8rem;
  right: -2.5rem;
  font-size: 1rem;
}

#firstStepsText {
  grid-column: 2 / span 3;
  grid-row: 2 / span 1;

  margin-top: 0.5rem;
  margin-bottom: 0.5rem;

  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#todoLearn {
  position: absolute;
  top: -1rem; /* into #firstStepsOut margin-top */
  left: 0;

  font-size: 0.9rem;

  width: 100%;
  display: flex;
  justify-content: center;
}

#todoLearn > a {
  margin-left: 0.5rem;
}

#todoLearn > :first-child {
  margin-left: 0;
}

#firstStepsText > div {
  margin-bottom: 1rem;
}

#firstStepsText :last-child {
  margin-bottom: 0;
}

#firstStepsGuide {
  grid-column: 2 / span 1;
  grid-row: 3 / span 1;

  white-space: nowrap;
  font-weight: bold;

  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

#firstStepsGuide.complete {
  font-weight: normal;
  font-style: oblique;
}

img#start {
  width: 3rem;
  padding: 0.5rem;
}

#firstStepsArrow {
  grid-column: 3 / span 1;
  grid-row: 3 / span 1;

  font-size: 2rem;
  opacity: 0.9;

  display: flex;
  justify-content: center;
  align-items: center;
}

#firstStepsArrowI {
  width: 2rem;
  height: 2rem;
}

#firstStepsArrowPath {
  fill: var(--color-secondary-text);
}

#firstStepsButtonWrapper {
  grid-column: 4 / span 1;
  grid-row: 3 / span 1;
}

#firstStepsButton {
  height: 4rem;
  min-width: 8rem;
  padding: 0.5rem;
  background-color: var(--color-primary-light);
}

#firstStepsButton.more {
  margin-bottom: 0.5rem;
  height: 2rem;
  padding: 0;
}

#firstStepsButton.emphasis {
  background-color: var(--color-emphasis-fill);
}

#firstStepsButton.hasTodo {
  background-color: var(--color-primary-fill);
}

#firstStepsOut {
  position: relative; /* for #todoLearn */
  grid-column: 2 / span 3;
  grid-row: 4 / span 1;

  margin-top: 1rem;
  margin-bottom: 0.5rem;

  display: flex;
  justify-content: center;
}

#firstStepsOutGuide {
  font-weight: bold;
}

.gridRight {
  margin-left: auto;
}

#sectionsWrapper {
  margin-top: 1rem;
  width: 100%;
  /* Else adds hor scroll because in wrapper. */
  padding: 0;
}

.sectionUnifier {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
}

div.sectionWrapper {
  max-width: 35rem;
  width: 100%;

  margin: 0.5rem;
  margin-top: 2.5rem;

  display: grid;
  grid-gap: 0.5rem;
  /* 1 column. */
  grid-template-columns: auto;
}

div.sectionWrapper.singleSection {
  max-width: 100%;
}

div.sectionHeading {
  font-weight: bold;
  font-size: 1.3rem;

  margin-bottom: 1rem;
}

.sectionSubHeadings {
  width: 100%;
}

.sectionSubHeadings, .sectionSubHeading {
  display: flex;
  font-weight: bold;
}

.sectionSubHeading {
  background-color: var(--color-primary-fill);
  padding: 0.9rem;
  margin-bottom: 0.5rem;
}

.sectionSubHeading.on {
  background-color: var(--color-transparent);
  pointer-events: none;
}

.sectionSubHeading.off {
  user-select: none;
  cursor: pointer;
  opacity: 0.3;
}

#bwWrapper {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

#bwPattern, #bwTempo {
  grid-row: 1 / span 1;
  grid-column: 1 / span 1;
}

div.buttonWrapper {
  display: grid;
  grid-gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
}

div.buttonWrapper.teacherSupport {
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
}

#rhythmCentralButtons {
  grid-gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

#progressW {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
}

#loginForProgressLogin {
  font-weight: bold;
  font-size: 1.3rem;
}

#loginForProgress {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

div#loginForProgress {
  font-size: 0.9rem;

  position: absolute;
  z-index: 999;
}

#teacherButtonStudentsWrapper {
  position: relative;
}

#loginForTeachers {
  font-size: 0.9rem;

  position: absolute;
  z-index: 999;
  bottom: 0;
}

#loginLink {
  font-weight: bold;
  opacity: 0.7;
  font-size: 1.05rem;
}

#sectionTeachers {
  margin-top: 1.5rem;
}

#sectionTrainers {
  max-width: 44rem;
  grid-template-rows: auto auto auto;
}

#sectionTools {
  max-width: 33rem;
}

form#send {
  background-color: yellow;
  grid-row: 1;
}

button.home {
  display: block;
  width: 100%;
  height: 100%;
  padding: 1rem;
}

div.name {
  font-weight: bold;
  margin-bottom: 0.8rem;
  pointer-events: none;
}

#progressGrid {
  display: grid;
  grid-gap: 1rem;
  /* 2 column. */
  grid-template-columns: 6rem auto;
  grid-template-rows: auto;
}

#chartWrapper {
  grid-column: 1 / span 1;
  grid-row: 1 / span 1;
}

img.chartImg {
  opacity: 0.85;
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}

#progressWrapper {
  grid-column: 2 / span 1;
  grid-row: 1 / span 1;
}

img.homeIcon {
  pointer-events: none;
  opacity: 0.85;
  width: 2.2rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}

img.homeIconSmall {
  margin-bottom: 0.5rem;
  margin-left: auto;
  margin-right: auto;
}

img.homeIconSingle {
  pointer-events: none;
  opacity: 0.85;
  width: 2.2rem;
  margin-left: auto;
}

img.homeIcon.rCentral {
  width: 2rem;
}

#sectionNews {
  justify-items: center;
  margin-bottom: 2rem;
}

#newsWrapper {
  max-width: 30rem;

  display: flex;
  flex-direction: column;
}

.newsLine {
  margin-top: 0.2rem;
  display: flex;
  flex-direction: row;
  line-height: 1.4;
}

.newsDate {
  display: flex;
  font-style: italic;
  margin-right: 1rem;
  min-width: max-content;
}

.newsImg {
  height: 1rem;
  vertical-align: text-top;
}

.newsImgBig {
  height: 1.4rem;
  vertical-align: text-top;
}

#newsMore {
  font-size: 0.9rem;
  width: 100%;
  text-align: right;
}

#todoLearn.retracted,
#firstStepsOut.retracted,
#firstStepsText.retracted,
#firstStepsGuide.retracted,
#firstStepsArrow.retracted,
#firstStepsHeading.retracted,
#progressW.retracted,
div.retracted {
  display: none;
}

#beeLinkWrapper {
  width: 2.5rem;
}

.beeLinkImg {
  width: 100%;
}

.smallHomeButtonText {
  width: 100%;
  margin-left: 0.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#teacherButtonGuides, #teacherButtonTags {
  height: auto;
  padding: 0;
}

img.guidesIcon, img.tagsIcon {
  padding-left: 0;
  margin-left: 0;
}

#teacherButtonContactW, #teacherButtonShopW, #teacherButtonGuidesW, #teacherButtonTagsW {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

#teacherButtonContact, #teacherButtonShop {
  height: auto;
  padding: 0;
}

#teacherButtonShop {
  margin-right: 0.25rem;
}

#teacherButtonContact {
  margin-left: 0.25rem;
}

.buttonPara {
  text-align: left;
  margin-top: 0.6rem;

  display: flex;
  justify-content: flex-start;
}

#welcome {
  margin-top: 0;
  font-size: 1.3rem;
}

#sig {
  margin-top: 2rem;
  display: flex;
  width: 100%;
}

#matt {
  pointer-events: none;
  width: 3rem;
  margin-right: 0.5rem;
  border-radius: 50%;
}

#sigName {
  margin-top: 0.5rem;
}

.speech {
  position: relative;
  width: 100%;
  padding: 0.5rem;
  border-radius: 2rem 2rem 2rem 2rem;
  border: 0.2rem solid var(--color-secondary-text);
  background-color: var(--color-primary-fill);
}

.speech::before, .speech::after {
  content: " ";
  position: absolute;
  width: 0;
  height: 0;
}

.speech::before {
  left: 2rem;
  bottom: 0;
  transform: translateY(100%);
  border: 0.6rem solid;
  border-color: var(--color-secondary-text) transparent transparent var(--color-secondary-text);
}

.speech::after {
  left: 2.2rem;
  bottom: -0.2px;
  transform: translateY(100%);
  border: 0.4rem solid;
  border-color: var(--color-primary-fill) transparent transparent var(--color-primary-fill);
}

.proLine, .proButton {
  margin: 0.5rem;
}

.proLineBig {
  margin: 1rem 1rem 2rem 1rem;
  font-size: 1.1rem;
}

.proGrid {
  margin-left: 0.5rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: min-content auto;
  grid-gap: 0.8rem;
  align-items: flex-start;
}

.proButton {
  padding: 0.5rem;
}

.proQuestion {
  font-size: 1.2rem;
  margin-top: 1rem;
}

#teacherQueryWrapper {
  margin-top: 1rem;
  flex-direction: column;
}

#teacherSurveyWrapper {
  margin-top: 1rem;
  flex-direction: column;
}

.toon {
  margin: 0.5rem;
  max-width: 25rem;
}

#proTeacher {
  font-style: italic;
}

#teacherButtonFeed {
  position: relative;
}

span.mediumClean {
  display: flex;
}

.mediumName {
  padding: 1rem 0 0 1rem;
}

.mediumIconW {
  margin-left: auto;
  padding-right: 0.5rem;
}

#footerTerms, #footerPrivacy {
  font-size: 1.05rem;
}

#ttButton {
  background-color: var(--color-primary-light);
}

@media screen and (max-width: 30rem) {
  #firstStepsHeading {
    grid-column: 1 / span 4;
    margin-left: 0.5rem;
  }

  #teacherButtonGuides,
  #teacherButtonTags,
  button.home {
    padding: 0.5rem 0.2rem 0.5rem 0.5rem;
  }

  #teacherButtonShop,
  #teacherButtonContact {
    padding: 0.5rem;
  }

  .quickLink {
    display: none;
  }

  #sectionsWrapper {
    margin-top: 0;
  }

  div.sectionWrapper {
    margin-top: 1rem;
  }

  div.sectionHeading {
    margin-bottom: 0;
  }

  .sectionSubHeading {
    padding: 0 0.6rem 0 0;
  }

  span.teacherButtonClean, span.listButtonClean {
    display: flex;
  }

  div.tName, .listButtonClean > div.name {
    font-weight: normal;
  }

  .mediumName {
    padding: 0;
  }

  .mediumIconW {
    padding: 0;
  }

  .tIconW, .homeIconW, .mediumIconW {
    margin-left: auto;
    display: flex;
    justify-content: center;
  }

  img.tIcon, img.homeIcon {
    margin: 0;
    margin-left: 0.2rem;
    padding: 0;
  }

  img.shopIcon, img.contactIcon {
    margin-left: 0;
  }

  img.tIcon, img.homeIconSmall, img.homeIcon {
    width: 1.8rem;
  }

  .teacherButtonDescr, .buttonDescr {
    display: none;
  }
}
