html { font-family: arial; background: #eee; padding: 0; margin: 0; }
body { background: #eee; padding: 8px 0 0; margin: 0; width: 100%; min-width: 320px; }
html.home, body.home { background: #fff; }
#home { background: #fff; padding: 20px; }
#home-blurb { width: 60%;
    margin: 40px auto 0;
    font-size: 20px; }
#home-steps { width: 60%;
    margin: 40px auto 0;
    font-size: 20px; }
#home-steps li { padding: 0 0 16px; }
.home-button { display: block; font-size: 26px; width: 60%; margin: 10px auto 20px;}
#home-logo { display: block; margin: 30px auto; width: 40%; }
@media screen and (max-width: 600px) {
  #home-steps { width: 100%; font-size: 20px; margin-top: 30px;}
  #home-steps li { padding: 0 0 10px; }
  .home-button{ width: 90%; }
  #home-logo { width: 55%; margin-top: 15px; }
}

h5 { margin-top: 2rem; text-decoration: underline; }
.annotation-message {
  text-align: center;
  font-size: 16px;
  color: #666
}
ul.course-list { margin-top: 30px; list-style-type: none; }
ul.course-list li { margin-top: 5px; }

div.home p { padding: 10px 0; }

.modal-header button { box-shadow: none; -webkit-box-shadow: none; }
.tooltip-inner {
    background-color: #007bff;
}

#star-button span.starred {
  color: #ffd807;
}

input { margin: 0 10px; }
.correct { background: #afa; }
.incorrect { background: #faa; }
.skipped { background: #eee; }
.tp_answer { background: #b7dbfa; }
button {
  -webkit-box-shadow: 0.5px 0.5px 2px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: 0.5px 0.5px 2px 0px rgba(0,0,0,0.5);
  box-shadow: 0.5px 0.5px 2px 0px rgba(0,0,0,0.5);
}
p { margin: 6px 0; }
p.option { padding: 6px 10px 0; border-radius: 5px; border: 1px solid #ddd; }
#prev, #check, #next, #skip { 
  width: 50%; font-size: 26px;  padding: 10px; margin: 0 1px; cursor: pointer; display: inline-block; 
  /*
  -webkit-transition: all 600ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  transition:         all 600ms cubic-bezier(0.445, 0.05, 0.55, 0.95);  
  */
}
#next { display: none; }

#check:disabled, #skip:disabled { display: none; } 
em { font-weight: bold; font-style: normal; }
#main { padding: 0px; font-size: 20px; line-height: 1.6em; background: transparent; }
#q-holder { font-family: Georgia, serif; padding: 6px 15px; background: #fff; border: 0px transparent;}
#q-holder { opacity: 0; }
#q-text { margin: 10px 0px 15px; }
#q-holder li { margin: 7px 0; }
#q-holder .MathJax { font-size: 21px; /* vertical-align: text-bottom; */ }

#q-holder .labelled-image-holder { width: 570px; opacity: 0; padding: 0; }
#q-holder .labelled-image-holder img { width: 100%; }
#q-holder .labelled-image-label { position: absolute; font-size: 35px; padding: 0; margin: 0;
transform: translate(0,-50%);
-webkit-transform: translate(0,-50%);
-ms-transform: translate(0,-50%);
}
#q-holder .labelled-image-label .MathJax { font-size: 40px; }

p.answer-headings span.one-col, p.answer-headings span.two-col, p.answer-headings span.three-col
{
  -ms-word-break: break-all;
       word-break: break-all;

       /* Non standard for WebKit */
       word-break: break-word;

  -webkit-hyphens: auto;
     -moz-hyphens: auto;
          hyphens: auto;
}
span.one-col, span.two-col, span.three-col {display: inline-block; padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 5%;}
span.one-col { width: 85%; }
span.two-col { width: 30%; }
span.three-col { width: 24%; }
div.single-graph-holder { text-align: center; }
.pg-hash {
    font-weight: bold;
    font-family: inherit;
    font-size: 42px;
    margin-top: -3px;
}
.circuit-diagram { background: white; padding: 15px; display: block; margin: 0 auto; width: 250px; }
.flip-x { transform: scaleX(-1); -webkit-transform: scaleX(-1); -ms-transform: scaleX(-1); }
.flip-y { transform: scaleY(-1); -webkit-transform: scaleY(-1); -ms-transform: scaleY(-1); }
.flip-xy { transform: rotate(180deg); -webkit-transform: rotate(180deg); -ms-transform: rotate(180deg); }
#do-not-own { background: red; padding: 5px; margin-bottom: 10px; }
.answer-headings { padding: 0 10px; }
.heading-dummy, .mc-radio { display: inline-block; width: 10%; padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }
@media screen and (max-width: 999px) {
  #main { font-size: 18px !important; }
  #q-holder .MathJax { font-size: 19px; }
  span.two-col { width: 39%; }
}
.hidden { display: none; }

#loader-holder { text-align: center; line-height: 0; min-height: 10px;  width: 100%; padding: 8px 0 0px; }
#ajax-loader { height: 2px; width: 100%; }

label { width: 100%; cursor: pointer; }

.topic-holder { display: flex; flex-direction: row; align-items: center; padding: 4px 0; border-radius: 4px; }
.topic-holder.dropped { border-radius: 4px 4px 0 0; }
.topic-holder:nth-child(4n + 1) {background: #a4f9de}
.topic-holder:nth-child(4n + 3) {background: #b1d8fc}
.sub-topics-holder:nth-child(4n + 2) {background: #e4fbf4}
.sub-topics-holder:nth-child(4n + 4) {background: #ddeefd}
.topic-holder input { order: 0; }
.topic-holder label { order: 1; margin: 0; width: auto; }
.topic-holder div.oi { order: 2; flex-grow: 5; cursor: pointer; padding: 5px 20px 5px 10px; }

label.topics-menu-topics-select-all-holder { /*margin: 8px 0;*/ }
div.sub-topics-holder div { font-size: 1rem; margin-bottom: 0.1rem; margin-left: 0.8rem; border-radius: 4px; }
div.topic-holder { margin-bottom: 0; margin-top: 0.4rem; }
label.disabled { color: #aaa; text-decoration: line-through; font-weight: 100; }

div.sub-topics-holder { display: none; padding: 6px 0 2px; border-radius: 0 0 4px 4px; }
div.sub-topics-holder label { margin-bottom: 0.2rem; }


.modal-scroll-window { min-height: 50vh; max-height: 50vh; overflow-y: scroll;
  border-radius: 2px;
  padding: 6px 5px 5px;
  -webkit-box-shadow: inset 1px 1px 5px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: inset 1px 1px 5px 0px rgba(0,0,0,0.5);
  box-shadow: inset 1px 1px 5px 0px rgba(0,0,0,0.5);
 }

#static-content {
  background: #fff; border-radius: 5px; padding:10px; margin: 20px 0;
}

.tiny-pie { width: 20px; vertical-align: text-bottom; }

.progress { background: url(/images/progress_bg.png); background-repeat: repeat-y; background-size: contain;
margin-top: 20px;
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    transform: scaleX(-1);
    -ms-filter: fliph; /*IE*/
    filter: fliph; /*IE*/
}
.q-img { display: block; margin: 20px auto; }

hr.invisible { border: 0px none; margin: 0.4em 0 0; }

.progress-bar { background: rgba(0,0,0,0.5); }
#top-nav { background: #eee; border-bottom: 1px solid gray; }
#q-nav-bar { display: none; }
#q-nav-bar, #question-menu-bar { 
/*display: block;*/
background-color: #f5f5f5 !important; 
justify-content: space-between; 
background: white; 
font-size: 26px; 
line-height: 22px;
text-align: center; 
width: 100%;
max-width: 600px;
padding: 10px 20px; margin: 0 auto;
}
#question-menu-bar {
/*height: 90px;*/
display: none;
box-shadow: 0 1px 0 rgba(12,13,14,0.1), 0 1px 3px rgba(12,13,14,0.1), 0 4px 20px rgba(12,13,14,0.035), 0 1px 1px rgba(12,13,14,0.025);
padding-bottom: 0;
}
#question-menu-bar button { width: 20%; padding: 7px 10px 3px; margin: 0 1px; }
#top-nav-button-group, #q-nav-button-group { width: 100%; }
#question-menu-bar button span { display: block; }
#question-menu-bar button span.oi { font-size: 24px; padding-bottom: 3px; }
#question-menu-bar button span.subtext { font-size: 10px; }

#q-nav-button-group { justify-content: center; }
#q-nav-button-group span.oi { font-size: 21px; padding: 0 4px; }

.tabbed-modal-button-group button.btn { margin: 0 2px; }

#choose-activity-button-group { width: 100% }
#choose-activity-button-group button.btn { font-size: 24px; width: 60%; margin: 1px auto; }

#q-nav-bar {
height: 90px;
box-shadow: 0 -1px 0 rgba(12,13,14,0.1), 0 -1px 3px rgba(12,13,14,0.1), 0 4px 20px rgba(12,13,14,0.035), 0 -1px 1px rgba(12,13,14,0.025);
}

.tabbed-modal-button.disabled { text-decoration: underline; }

.asset-body { background: #fff !important; }

.asset-holder { max-width: 570px; }

img.asset {
    max-width: 100%;
    display: block;
    margin: 15px auto;
    
}

img.asset.loading {
  background: transparent url(/images/asset_loader.gif) center no-repeat;
  min-width: 220px;
  min-height: 30px;
}

div.multi-image-holder { text-align: center; }
div.multi-image {  cursor: pointer; font-size: 19px; text-align: center; position: relative; width: 40%; display: inline-block; margin: 2%; border: 1px solid #ddd; border-radius: 5px; }
div.single-image { font-size: 19px; text-align: center; position: relative; width: 40%; display: block; margin: 2% auto; }
div.multi-image img, div.single-image img { padding: 30px; width: 100%; }
div.multi-image div, div.single-image div { line-height: 18px; }
/*
div.multi-image div.top, div.single-image div.top { position: absolute; top: 5px; }
div.multi-image div.middle, div.single-image div.middle { position: absolute; top: 45%; }
div.multi-image div.bottom, div.single-image div.bottom { position: absolute; bottom: 5px; }
div.multi-image div.left, div.single-image div.left { position: absolute; left: 5px; }
div.multi-image div.center, div.single-image div.center { position: absolute; left: 49%; }
div.multi-image div.right, div.single-image div.right { position: absolute; right: 5px; }
*/
.graph-holder { position: relative; padding-top: 66%; margin: 10px 0;} /* fixed aspect ratio */
div.graph {
  position: absolute;
  top: 0;
  left: 15px;
  bottom: 25px;
  right: 0;
}
div.top { position: absolute; top: 8px; }
div.middle { position: absolute; top: 45%; }
div.bottom { position: absolute; bottom: 8px; }
/*div.center { position: absolute; left: 45%; }*/
div.center { width: 100%; text-align: center; }
div.right { position: absolute; right: 8px; }
div.left { position: absolute; left: 8px; }

.graph-holder div.top, .graph-holder div.middle, .graph-holder div.bottom {
  font-size: 16px !important;
}
#q-holder .graph-holder .MathJax {
  font-size: 18px;
}

.graph-holder div.bottom {
  bottom: 0;
}

.rotate-ccw {
  transform: translate(-50%,0) rotate(-90deg);
  -webkit-transform: translate(-50%,0) rotate(-90deg);
  -ms-transform: translate(-50%,0) rotate(-90deg);
}
.rotate-cw {
  transform: translate(50%,0) rotate(-90deg);
  -webkit-transform: translate(50%,0) rotate(-90deg);
  -ms-transform: translate(50%,0) rotate(-90deg);
}

@media screen and (min-width: 999px) {
  div.multi-image { width: 35%; margin: 3%; }
}

.no-bullet {
  list-style-type: none;
  margin: 10px 0;
  padding-left: 20px;
}

#stats-bar button { opacity: 0; }

#stats-bar button { cursor: pointer; padding: 10px 12px 4px; min-height: 58px; }
#q-count, #average-time, #accuracy {
width: 25%;
text-align: right;
background: red;
    /*margin: 0 10px;*/
    color: white;
    border-radius: 4px;
}
#stats-bar div.oi { top: 0px; font-size: 40px; display: block;
    float: left;
   /* padding: 10px 10px 0px 5px;*/ }
   #menu-btn { width: 10%; }
#stats-bar div.oi-menu { font-size: 22px; float: none; min-height: 26px; }
#stats-bar div.words { font-size: 10px; display: block; }

.val-holder {
font-size: 26px;
line-height: 26px;
}

#q-holder-container {
/*    position: absolute; */
    background: white;
    width: 600px;
/*    z-index: 1029;*/
    margin: 0;
    padding: 0;

    -webkit-transition: margin-top 300ms; /* Safari */
    transition: margin-top 300ms;
    -webkit-transition: margin-bottom 300ms; /* Safari */
    transition: margin-bottom 300ms;
}
#q-holder-container.has-button-below { margin-bottom: 98px; }
#q-holder-container.has-top-bar { margin-top: 79px; }
#q-nav-bar {
  z-index: 1030;
}

.formula-holder, .measurement-list {
  text-align: center;
  padding: 10px 0;
}

.show-feedback-form:hover { text-decoration: none; }
#feedback-details { width: 100%; border-radius: 3px; border: 1px solid #ddd; }
div.radio-holder { margin-bottom: 10px; }
div.radio-holder label { margin-bottom: 0; }
#feedback-thanks { display: none; }

@media screen and (max-width: 400px) {
.topic-holder label { flex-grow: 10; }
.topic-holder div.oi { flex-grow: 0; padding-left: 20px; }
}

@media screen and (max-width: 600px) {
  /*
  .graph-holder div.top, .graph-holder div.middle, .graph-holder div.bottom {
    font-size: 15px !important;
  }
  .graph-holder .MathJax {
    font-size: 17px !important;
  }
  */
  div.top, div.middle, div.bottom {
    font-size: 15px;
  }
  .div.top .MathJax, div.middle .MathJax, div.bottom .MathJax {
    font-size: 17px;
  }
  div.graph {
    left: 18px;
  }

#question-menu-bar button { padding: 3px 10px 0px; min-height: 45px; }
#question-menu-bar button span.oi { font-size: 20px; padding-bottom: 3px; }
#question-menu-bar button span.subtext { font-size: 9px; padding-top: 2px; }

#q-nav-button-group span.oi { font-size: 16px; padding: 0 3px; }
#choose-activity-button-group button.btn { font-size: 20px; }

  #q-text { margin: 5px 0 10px; }
  div.multi-image { font-size: 16px; }
  div.multi-image img { padding: 35px; }
  #stats-bar div.oi { display: none; }
  #q-holder-container { width: 100%; margin-bottom: 57px; }
  #q-holder-container.has-top-bar { margin-top: 61px; }
  #loader-holder { min-height: 5px; padding: 3px 0 0px; }
  .stats-container {
    text-align: center;
  }
  .val-holder {
    font-size: 22px; line-height: 22px;
  }
  .stats-container {
  padding: 4px;
  }
  #prev, #check, #next, #skip, #q-nav-bar, #question-menu-bar { font-size: 20px; }
  #prev, #check, #next, #skip { padding: 5px; }
  #question-menu-bar { padding: 5px 5px 0; height: auto; }
  #q-nav-bar { padding: 5px; height: auto; }
  body.has-top-bar { padding-top: 70px; }
  body.has-bottom-bar { padding-bottom: 59px; }
  #menu-btn { width: 56px; }
  #stats-bar div.oi-menu { font-size: 16px; min-height: 19px; display: block; }
}

.container-fluid {
  margin-right: auto;
  margin-left: auto;
  max-width: 600px; /* or 950px */
}

.loader {
  height: 2px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #ddd;
  display: none;
}
.loader:before{
  display: block;
  position: absolute;
  content: "";
  left: -200px;
  width: 200px;
  height: 2px;
  background-color: #398fef;
  animation: loading 2s linear infinite;
}

@keyframes loading {
    from {left: -200px; width: 30%;}
    50% {width: 30%;}
    70% {width: 70%;}
    80% { left: 50%;}
    95% {left: 120%;}
    to {left: 100%;}
}

body.modal-open{
  padding-right: 0 !important;
}