/* The #main div is shown when viewing pages, as teacher or student, but not when editing */
#main #sticky-container {
  border-right: 1px solid #c7cdd1;
}
#main #content-wrapper,
#main #right-side-wrapper,
#main .header-bar,
#main .module-sequence-footer .module-sequence-footer-content {
  background-color: #fffbf7;
}
#main .course-title,
#main .page-title {
  color: #0f4661;
  font-weight: bold;
  border-bottom: 4px solid #0f4661;
}
#main h3 {
  margin: 1em 0;
}
#main .gym-flex>div>h3:first-child {
  margin-top: 0.2em;
}
#main p {
  line-height: 1.6;
  margin: 1.6em 0;
}
#main details summary {
  color: #0f4661;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
}
#main details summary:hover {
  text-decoration: underline;
}
#main hr {
  border-top: 6px solid #fdc896;
}
/* custom elements (headings etc) */
h2.gym-bordered {
  text-align: center;
  border: 4px solid #b6dec0;
  border-width: 4px 0;
}
h3.gym-underlined {
  width: 100%;
  border-bottom: 3px solid #0f4661;
}
div.gym-learning-intentions {
  border: 1px solid #fdc896;
  background-color: rgba(252, 199, 149, 0.53);
  padding: 8px;
}
#main .gym-outcome-set h3 {
  font-size: 1.2em;
  margin: 0.8em 0 0.2em;
}
#main .gym-outcome-set p {
  margin: 0.2em 0;
  font-size: 0.9em;
}
.gym-outcome-label {
  font-size: 0.9em;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 0px 4px;
  margin: 1px;
}
/* our custom layout blocks */
div.gym-flex {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
  margin: 1.6em 0;
}
div.gym-flex-1 {
  flex-basis: 200px;
}
div.gym-flex-2 {
  flex-basis: 400px;
}
div.gym-flex-3 {
  flex-basis: 600px;
}
div.gym-flex-4 {
  flex-basis: 800px;
}
div.gym-flex.gym-tile {
  max-width: 1280px;
  margin: 1.6em auto;
}
div.gym-flex.gym-tile>div {
  border: 1px dotted #0f4661;
  border-radius: 0.5em;
  padding: .5em;
}

#main table.gym-search-index {
  border-collapse: collapse;
  width: 100%;
}
#main table.gym-search-index th {
  padding: 6px 4px;
  text-align: left;
}
#main table.gym-search-index th a {
  display: block;
  font-size: 0.9em;
}
#main table.gym-search-index td {
  border: 1px dotted #fedec0;
  border-width: 1px 0;
  padding: 4px;
}
span.gym-label {
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 0px 4px;
  margin: 1px;
  font-size: 0.9em;
  display: inline-block;
}
#main table.gym-search-index td a {
  margin: 0.1em;
}
#main table.gym-search-index span.gym-outcome-label {
  font-size: 0.8em;
  float: left;
}
dialog.dialog-filter {
  max-width: 80%;
}
dialog.dialog-filter input {
  margin: 0 3px 0 0;
}
dialog.dialog-filter ul {
  list-style: none;
  margin: 0.5em 0;
  padding: 0;
  columns: 2 12em;
}
dialog#dialog-filterOutcomes ul {
  columns: 3 12em;
}
dialog.dialog-filter li {
  padding: 0 3px;
  line-height: 1.2;
}
dialog.dialog-filter label {
  margin-left: 0;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
}
dialog.dialog-filter button {
  display: block;
}
a#gym-page-info {
  margin-left: 0.4em;
  text-decoration: none;
  cursor: pointer;
}

/* highlights when loaded inside the RCE */
body.mce-content-body div.gym-flex,
body.mce-content-body div.gym-flex>div,
body.mce-content-body div.gym-outcome-set { 
  border: 1px dashed #ccc; padding: 1em; 
}
/* admin widget */
#gym-menu {
  display: block;
  position: fixed;
  top: 1em;
  right: 1em;
  z-index: 9999;
  background-color: #b6dec0;
  background-image: url(https://info.growyourmind.life/kid-paintbrush.png);
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 200px;
  height: 120px;
  background-size: 100px;
  background-repeat: no-repeat;
  background-position-x: right;
  background-origin: content-box;
  padding: 0.5em;
}
#gym-menu p {
  font-weight: bold;
}
#gym-dialog {
  background-color: #fffbf7;
}
#gym-dialog button {
  margin-bottom: 0.3em;
}
#gym-dialog details div {
  position: absolute;
  margin-left: 10em;
  margin-top: -1.6em;
  background-color: #fffbf7;
  border: 1px solid #ccc;
  border-radius: 0.4em;
  padding: 0.4em
}
#gym-dialog details {
  cursor: pointer;
}
#gym-dialog details:hover summary {
  color: #0f4661;
}
/* Resource widgets */
a.gym-button {
  display: inline-block;
  padding: 1em;
  border-radius: 1em;
}
a.gym-button-songs, #tinymce.mce-content-body a.gym-button-songs[data-mce-selected=inline-boundary] {
  background-color: #f37b78;
  color: #fffbf7;
}
a.gym-button-audio, #tinymce.mce-content-body a.gym-button-audio[data-mce-selected=inline-boundary] {
  background-color: #b6dec0;
  color: #0f4661;
}
a.gym-button-movement, #tinymce.mce-content-body a.gym-button-movement[data-mce-selected=inline-boundary] {
  background-color: #70abc7;
  color: #fffbf7;
}
a.gym-button-callresponse, #tinymce.mce-content-body a.gym-button-callresponse[data-mce-selected=inline-boundary] {
  background-color: #dbf0f2;
  color: #0f4661;
}
a.gym-button-slides, #tinymce.mce-content-body a.gym-button-slides[data-mce-selected=inline-boundary] {
  background-color: #e1c847;
  color: #0f4661;
}
a.gym-button-worksheets, #tinymce.mce-content-body a.gym-button-worksheets[data-mce-selected=inline-boundary] {
  background-color: #fdc896;
  color: #0f4661;
}
a.gym-button-nav, #tinymce.mce-content-body a.gym-button-nav[data-mce-selected=inline-boundary] {
  background-color: #0f4661;
  color: #fffbf7;
}
div.gym-container {
  padding: 1em;
}
div.gym-container>div {
  max-width: 800px;
  border-radius: 1.5em;
  padding: 1.5em;
  text-align: center;
  margin: 0 auto;
}
div.gym-container-songs>div {
  background-color: #f37b78
}
div.gym-container-audio>div {
  background-color: #b6dec0;
}
div.gym-container-movement>div {
  background-color: #70abc7;
}
div.gym-container-callresponse>div {
  background-color: #dbf0f2;
}
div.gym-container-slides>div {
  background-color: #e1c847;
}
div.gym-container-worksheets>div {
  background-color: #fdc896;
}
/* Print rules */
.gym-print {
  text-align: right;
}
.user_content .gym-print a:not(.btn):not(.Button):not(.ui-button):not([role=button]) {
  text-decoration: none;
}
.gym-print-page-break {
  display: none;
}
body.mce-content-body div.gym-print-page-break { 
  display: block;
  background-color: lightblue;
  color: #0f4661;
  border: 1px dashed #ccc; padding: 1em; 
}
body.mce-content-body div.gym-print-page-break::before {
  content: '(Printable page break placeholder; delete [...] to remove)';
  font-weight: bold;
  font-size: 0.8em;
}
@media print {
  .gym-print {
    display: none;
  }
  .gym-print-page-break {
    display: block;
    visibility: hidden;
    break-after: page;
  }
}