/* TODO:
 * fix differential li colors (including selected ones)
 */
:root {
    --colorA-dark: #b61827;
    --colorB-dark: #4d2c91;
    --colorC-dark: #0086c3;
    --colorC-darker: #006db3;
    --colorD-dark: #338a3e;
    --colorE-dark: #c9bc1f;
    --colorF-dark: #c63f17;
    --colorG-dark: #4b636e;
    --colorH-dark: #b4004e;
    --colorI-dark: #26418f;
    --colorJ-dark: #0095a8;
    --dark-grey: #212121;
    --light-grey: #484848;
    --dark-blue: #006db3;
}
* {
  transition: all 0.2s;
  margin: 0; padding: 0;
  box-sizing: border-box;
}
a, input {
    outline: 0;
}
input {
    border: 1px solid rgba(0,0,0,0.2);
}
body {
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--dark-grey);
}
h1 {
  font-size: 150%;
  text-align: left;
  margin-bottom: 0.5em;
}
.probabilityArea h1 {
    font-size: 100%;
    margin-bottom: 0;
    text-align: center;
}
svg {
    fill: var(--light-grey);
}
a {
    text-decoration: none;
    color: var(--dark-grey);
}
li {
    list-style: none;
    background: transparent;
}
li.selected {
    background: #fff59d;
}
input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}
.button {
    display: inline-block;
    padding: 1vh 1vw;
    border: 1px solid rgba(0,0,0,0.2);
    background-color: rgba(0,0,0,0.1);
    text-transform: uppercase;
    text-align: center;
    font-size: 90%;
}
.button:hover {
    border: 1px solid rgba(0,0,0,0.25);
    background-color: rgba(0,0,0,0.15);
}
.templates {
    display: none;
}
.overlay {
    background: #fff;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.overlay.active {
    opacity: 1;
    pointer-events: all;
}
.messageArea {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    height: 3em;
}
.message {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em 1em;
    top: -3em;
    height: 3em;
    left: 25%;
    width: 50%;
    opacity: 0;
    box-shadow: none;
    background: #787878;
    color: #fff;
    text-align: center;
    font-weight: bold;
    transition: all 0.2s;
}
.message.active {
    top: 0;
    opacity: 1;
    box-shadow: 0 3px 3px rgba(0,0,0,0.8);
    transition: all 0.2s;
}
header {
    display: flex;
    justify-content: flex-end;
}
.signin {
    margin: 25vh auto;
    width: 25vw;
    height: 33vh;
}
.signin.inactive {
    opacity: 0.5;
    pointer-events: none;
}
.signin label,
.signin select,
.signin input {
    display: block;
    width: 100%;
}
.signin select,
.signin input {
    margin-bottom: 1em;
}
.signin input {
    border: none;
    border-bottom: 2px solid var(--light-grey);
}
.signin input:focus {
    border-bottom: 2px solid var(--dark-blue);
}
.signinButton {
    display: block;
    width: 33%;
    float: right;
}
.profile {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.5em;
}
.profile .button,
.profile .username {
    margin: 0 0.5em 0 0;
}
.startClassButton,
.applyLR {
    background-color: var(--colorC-dark);
    color: #fff;
}
.startClassButton:hover,
.applyLR:hover {
    background-color: var(--colorC-darker);
    color: #fff;
}

.graphArea {
    position: absolute;
    top: 10vh;
    left: 10vw;
    width: 900px;
    height: 500px;
    box-shadow: 0 4px 4px rgba(0,0,0,0.5);
}
.graph {
}

.differentialsArea {
    position: absolute;
    top: 0; /* formerly 5vh */
    bottom: 0;
    width: 22vw;
    /*min-height: 50vh;*/
}
.differentialsArea input {
    padding: 1vh;
}
.addDifferentialButton {
    margin-left: 0.25vw;
}
.diagnoses {
    position: absolute;
    top: 0;
    left: 0;
    width: 22vw;
    height: 100%;
    padding: 10%;
    z-index: 200;
    box-shadow: 0 3px 6px rgba(0,0,0,0.6);
    background: #fff;
    opacity: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
body[data-classcode=""] .diagnoses {
    left: -22vw;
    opacity: 0;
}
.suggestions {
    position: absolute;
    width: 22vw;
    padding: 10%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    background: #fff;
    background: #fafafa;
    overflow-y: auto;
    overflow-x: hidden;
}
a.toggleSuggestionListArea {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
}
a.toggleSuggestionListArea svg {
    width: 12px;
    height: 12px;
    transform-origin: center;
}
a.openSuggestionListArea svg {
   transform: rotate(45deg); 
}
.suggestionsOpen a.openSuggestionListArea svg {
   transform: rotate(45deg); 
   transform: translateX(150px);
   opacity: 0;
}
.suggestionsOpen .suggestions {
    opacity: 1;
    left: 22vw;
    pointer-events: all;
}
.saving .inputLine {
    opacity: 0.7;
    pointer-events: none;
}
.inputLine {
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: all;
    opacity: 1;
}
.differentialList {
    margin: 1em 0;
}
.differential,
.dummyDifferential {
    padding: 1vh 1vw 1vh 1vh;
    border: 1px solid rgba(0,0,0,0.2);
    margin: 0.25vh 0;
    background-color: rgba(0,0,0,0.05);
    cursor: default;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dummyDifferential {
    animation: pulseFade 1.0s ease-in-out infinite;
}
.dummyDifferential span {
    opacity: 0;
    pointer-events: none;
}
.differential:before {
    content:"";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 1vw;
    border-left: 1px solid rgba(0,0,0,0.1);
}
.differential.selected {
    border: 1px solid rgba(0,0,0,0.3)
    margin: 0.25vh 0;
    background-color: rgba(0,0,0,0.1);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.6);
}
.differential.beingEdited {
    border: 1px solid var(--dark-blue);
}
.differentialInPlaceInput,
.saveDifferentialButton {
    display: none;
}
input.differentialInPlaceInput {
    padding: 0;
    background: transparent;
    border: none;
    width: 100%;
}
.inPlaceOptionsButton {
    padding: 0 1vh;
}
.differential.beingEdited .differentialName,
.differential.beingEdited .editDifferentialButton {
    display: none;
}
.differential.beingEdited .differentialInPlaceInput,
.differential.beingEdited .saveDifferentialButton {
    display: inline;
}
.updateProbabilitySummary {
    opacity: 0;
    pointer-events: none;
}
.updateProbabilitySummary svg,
.updateSuggestionsButton svg {
    width: 10px;
    height: 10px;
    transform-origin: center;
}
.updateProbabilitySummary:hover svg,
.updateSuggestionsButton:hover svg {
    transform: rotate(90deg);
}
.differentialIdea {
    display: flex;
    justify-content: space-between;
}
.differentialIdea.firstSuggestion {
    margin-top: 1em;
}
.ideaText {
    max-width: 67%;
}
.ideaGroup {
    opacity: 0.8;
}
.diagnosticWorkArea {
    overflow: hidden;
    height: 90vh;
}
.probabilityArea {
    position: relative;
    margin: 25vh 0 0 21vw;
    width: 67vw;
    height: 50vh;
    background: #f0f0f0;  
    background: #FFF;  
    opacity: 1;
}
body[data-classcode=""] .probabilityArea {
    opacity: 0;
}
.probabilityLine {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 1px;
  background: #000;
}
.probabilityLine[data-zoom="zoomed"] {
  width: 340%;
}
.dragRuler {
    position: absolute;
    bottom: 50%;
    height: 4em;
    background: transparent;
    display: none;
    transition: none;
}
.dragRuler.active {
    display: flex;
    justify-content: center;
    align-items: center;
}
.dragLREquivalent { 
}
.zoomToggle {
    position: fixed;
    bottom: 0.5em;
    right: 0.5em;
}
.dx {
  position: absolute;
  top: 0;
  width: 10%;
  margin: 5% 5%;    /*  was 0 5%  */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: all 0.2s;
  opacity: 0;
  pointer-events: none;
}
.dx.selected {
  opacity: 1;
  transition: none;
  pointer-events: all;
}
.closestToCursor {
    z-index: 50;
}
.threshold {
  position: absolute;
  width: 5%;
  margin: 0 7.5%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: none;
  opacity: 0;
  pointer-events: none;
}
.threshold.selected {
  opacity: 1;
  pointer-events: all;
}
.dx.lrMoving {
  transition: all 0.5s;
}
.dxProbabilityRange {
    position: absolute;
    bottom: 50%;
    height: 10%;
    left: 10%;
    right: 50%;
    margin: 0 5%;
    transition: all 0.2s;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dxProbabilityRange p {
    text-align: center;
    font-weight: bold;
    position: absolute;
    bottom: 100%;
}
.dxProbabilityRange.selected,
.probabilityArea:hover .dxProbabilityRange.selected:hover {
    opacity: 1;
    pointer-events: all;
}
.probabilityArea:hover .dxProbabilityRange.selected {
    opacity: 0.5;
    pointer-events: all;
}
.probabilityRange.selected[style*="left:0px"],
.probabilityRange.selected[style*="left: 0px"],
.probabilityArea:hover .probabilityRange.selected[style*="left:0px"],
.probabilityArea:hover .probabilityRange.selected[style*="left: 0px"] {
    opacity: 0;
}
.probabilityRange.selected:hover .rangeValueGroup {
    opacity: 1;
    pointer-events: all;
}
.thresholdProbabilityRange {
    position: absolute;
    bottom: 50%;
    height: 37%;
    left: 10%;
    right: 70%;
    margin: 0 5%;
    transition: all 0.2s;
    opacity: 0;
    pointer-events: none;
}
.thresholdProbabilityRange.selected,
.probabilityArea:hover .thresholdProbabilityRange.selected:hover {
    opacity: 1;     /* formerly 0.6 */
    pointer-events: all;
}
.probabilityArea:hover .thresholdProbabilityRange.selected {
    opacity: 0.5;
    pointer-events: all;
}
.rangeValue {
    position: absolute;
    top: 100%;
    font-size: 80%;
    color: rgba(0,0,0,0.8);
}
.rangeValueGroup {
    display: block;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}
.rangeLowValue {
    right: 100%;
    text-align: right;
}
.rangeHighValue {
    left: 100%;
    text-align: left;
}
.rangeMidValue {
    left: 50%;
    margin-left: -1em;
    width: 2em;
    text-align: center;
}
.controls, 
.title {
  width: 100%;
}
.controls {
  height: 11vh;
  opacity: 0;
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
}
.controls input {
  width: 2em;
}
.LRInput {
    text-align: center;
}
.applyLR {
    box-shadow: 0 3px 5px rgba(0,0,0,0.5);
    margin-left: 0.25vw;
    padding: 0.25vw 0.5vw;
    border-radius: 0.25vw;
}
.applyLR:hover {
    box-shadow: 0 3px 5px rgba(0,0,0,0.7);
}
.dx:hover .controls,
.controls:focus-within {
  opacity: 1;
}
.dxProbability {
  width: 30px;
  cursor: ew-resize;
  height: 100px;
  position: relative;
}
.dxProbability:hover {
}
.regularSize .dxProbability {
  height: 100px;
}
.largerSize .dxProbability {
    height: 150px;
}
.largestSize .dxProbability {
    height: 200px;
}
.dxProbability:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  margin-left: -0.5px;
  background: #000;
  width: 1px;
}
.dx[data-dxid$="1"] .dxProbability:before,
.differential[data-dxid$="1"]:before,
.dxProbabilityRange[data-dxid$="1"] {
  background-color: var(--colorA-dark);
  color: var(--colorA-dark);
}
.dx[data-dxid$="2"] .dxProbability:before,
.differential[data-dxid$="2"]:before,
.dxProbabilityRange[data-dxid$="2"] {
  background-color: var(--colorB-dark);
  color: var(--colorB-dark);
}
.dx[data-dxid$="3"] .dxProbability:before,
.differential[data-dxid$="3"]:before,
.dxProbabilityRange[data-dxid$="3"] {
  background-color: var(--colorC-dark);
  color: var(--colorC-dark);
}
.dx[data-dxid$="4"] .dxProbability:before,
.differential[data-dxid$="4"]:before,
.dxProbabilityRange[data-dxid$="4"] {
  background-color: var(--colorD-dark);
  color: var(--colorD-dark);
}
.dx[data-dxid$="5"] .dxProbability:before,
.differential[data-dxid$="5"]:before,
.dxProbabilityRange[data-dxid$="5"] {
  background-color: var(--colorE-dark);
  color: var(--colorE-dark);
}
.dx[data-dxid$="6"] .dxProbability:before,
.differential[data-dxid$="6"]:before,
.dxProbabilityRange[data-dxid$="6"] {
  background-color: var(--colorF-dark);
  color: var(--colorF-dark);
}
.dx[data-dxid$="7"] .dxProbability:before,
.differential[data-dxid$="7"]:before,
.dxProbabilityRange[data-dxid$="7"] {
  background-color: var(--colorG-dark);
  color: var(--colorG-dark);
}
.dx[data-dxid$="8"] .dxProbability:before,
.differential[data-dxid$="8"]:before,
.dxProbabilityRange[data-dxid$="8"] {
  background-color: var(--colorH-dark);
  color: var(--colorH-dark);
}
.dx[data-dxid$="9"] .dxProbability:before,
.differential[data-dxid$="9"]:before,
.dxProbabilityRange[data-dxid$="9"] {
  background-color: var(--colorI-dark);
  color: var(--colorI-dark);
}
.dx[data-dxid$="0"] .dxProbability:before,
.differential[data-dxid$="0"]:before,
.dxProbabilityRange[data-dxid$="0"] {
  background-color: var(--colorJ-dark);
  color: var(--colorJ-dark);
}
.dxProbabilityLabel {
    opacity: 1;
}
.lrMoving .dxProbabilityLabel {
    opacity: 0;
}
.thresholdProbability {
  height: 80%;
  position: relative;
  width: 30px;
  cursor: ew-resize;
}
.thresholdProbability:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  margin-left: -0.5px;
  background: transparent;
  width: 1px;
  border-left: 1px dashed #000;
}
.threshold[data-dxid$="1"] .thresholdProbability:before {
  border-left: 1px dashed var(--colorA-dark);
}
.thresholdProbabilityRange[data-dxid$="1"] {
  /*border-left: 1px dashed var(--colorA-dark);*/
    background-image: repeating-linear-gradient( to bottom, var(--colorA-dark), var(--colorA-dark) 5%, transparent 5%, transparent 10% );
}
.threshold[data-dxid$="2"] .thresholdProbability:before {
  border-left: 1px dashed var(--colorB-dark);
}
.thresholdProbabilityRange[data-dxid$="2"] {
  /*border-left: 1px dashed var(--colorA-dark);*/
    background-image: repeating-linear-gradient( to bottom, var(--colorB-dark), var(--colorB-dark) 5%, transparent 5%, transparent 10% );
}
.threshold[data-dxid$="3"] .thresholdProbability:before {
  border-left: 1px dashed var(--colorC-dark);
}
.thresholdProbabilityRange[data-dxid$="3"] {
  /*border-left: 1px dashed var(--colorA-dark);*/
    background-image: repeating-linear-gradient( to bottom, var(--colorC-dark), var(--colorC-dark) 5%, transparent 5%, transparent 10% );
}
.threshold[data-dxid$="4"] .thresholdProbability:before {
  border-left: 1px dashed var(--colorD-dark);
}
.thresholdProbabilityRange[data-dxid$="4"] {
  /*border-left: 1px dashed var(--colorA-dark);*/
    background-image: repeating-linear-gradient( to bottom, var(--colorD-dark), var(--colorD-dark) 5%, transparent 5%, transparent 10% );
}
.threshold[data-dxid$="5"] .thresholdProbability:before {
  border-left: 1px dashed var(--colorE-dark);
}
.thresholdProbabilityRange[data-dxid$="5"] {
  /*border-left: 1px dashed var(--colorA-dark);*/
    background-image: repeating-linear-gradient( to bottom, var(--colorE-dark), var(--colorE-dark) 5%, transparent 5%, transparent 10% );
}
.threshold[data-dxid$="6"] .thresholdProbability:before {
  border-left: 1px dashed var(--colorF-dark);
}
.thresholdProbabilityRange[data-dxid$="6"] {
  /*border-left: 1px dashed var(--colorA-dark);*/
    background-image: repeating-linear-gradient( to bottom, var(--colorF-dark), var(--colorF-dark) 5%, transparent 5%, transparent 10% );
}
.threshold[data-dxid$="7"] .thresholdProbability:before {
  border-left: 1px dashed var(--colorG-dark);
}
.thresholdProbabilityRange[data-dxid$="7"] {
  /*border-left: 1px dashed var(--colorA-dark);*/
    background-image: repeating-linear-gradient( to bottom, var(--colorG-dark), var(--colorG-dark) 5%, transparent 5%, transparent 10% );
}
.threshold[data-dxid$="8"] .thresholdProbability:before {
  border-left: 1px dashed var(--colorH-dark);
}
.thresholdProbabilityRange[data-dxid$="8"] {
  /*border-left: 1px dashed var(--colorA-dark);*/
    background-image: repeating-linear-gradient( to bottom, var(--colorH-dark), var(--colorH-dark) 5%, transparent 5%, transparent 10% );
}
.threshold[data-dxid$="9"] .thresholdProbability:before {
  border-left: 1px dashed var(--colorI-dark);
}
.thresholdProbabilityRange[data-dxid$="9"] {
  /*border-left: 1px dashed var(--colorA-dark);*/
    background-image: repeating-linear-gradient( to bottom, var(--colorI-dark), var(--colorI-dark) 5%, transparent 5%, transparent 10% );
}
.threshold[data-dxid$="0"] .thresholdProbability:before {
  border-left: 1px dashed var(--colorJ-dark);
}
.thresholdProbabilityRange[data-dxid$="0"] {
  /*border-left: 1px dashed var(--colorA-dark);*/
    background-image: repeating-linear-gradient( to bottom, var(--colorJ-dark), var(--colorJ-dark) 5%, transparent 5%, transparent 10% );
}
.title {
  color: rgba(0,0,0,0.6)
}
[data-classcode=""] .inClassItem {
    display: none;
}
body:not([data-classcode=""]) .outOfClassItem {
    display: none;
}

li {
  opacity: 0;
  animation: fadeIn 0.2s 1;
  animation-fill-mode: forwards;
}

li:nth-child(1) {
  animation-delay: 0s;
}
li:nth-child(2) {
  animation-delay: 0.1s;
}
li:nth-child(3) {
  animation-delay: 0.2s;
}
li:nth-child(4) {
  animation-delay: 0.3s;
}
li:nth-child(5) {
  animation-delay: 0.4s;
}
li:nth-child(6) {
  animation-delay: 0.5s;
}
li:nth-child(7) {
  animation-delay: 0.6s;
}
li:nth-child(8) {
  animation-delay: 0.7s;
}
li:nth-child(9) {
  animation-delay: 0.8s;
}
li:nth-child(10) {
  animation-delay: 0.9s;
}
li:nth-child(11) {
  animation-delay: 1.0s;
}
li:nth-child(12) {
  animation-delay: 1.1s;
}
li:nth-child(13) {
  animation-delay: 1.2s;
}
li:nth-child(14) {
  animation-delay: 1.3s;
}
li:nth-child(15) {
  animation-delay: 1.4s;
}
li:nth-child(16) {
  animation-delay: 1.5s;
}
li:nth-child(17) {
  animation-delay: 1.6s;
}
li:nth-child(18) {
  animation-delay: 1.7s;
}
li:nth-child(19) {
  animation-delay: 1.8s;
}
li:nth-child(20) {
  animation-delay: 1.9s;
}
li:nth-child(21) {
  animation-delay: 2.0s;
}
li:nth-child(22) {
  animation-delay: 2.1s;
}
li:nth-child(23) {
  animation-delay: 2.2s;
}
li:nth-child(24) {
  animation-delay: 2.3s;
}
li:nth-child(25) {
  animation-delay: 2.4s;
}
li:nth-child(26) {
  animation-delay: 2.5s;
}
li:nth-child(27) {
  animation-delay: 2.6s;
}
li:nth-child(28) {
  animation-delay: 2.7s;
}
li:nth-child(29) {
  animation-delay: 2.8s;
}
li:nth-child(30) {
  animation-delay: 2.9s;
}

.chart {
    position: absolute;
    top: 0; bottom: 0;
    left: 0; right: 0;
    opacity: 0;
    pointer-events: none;
}
.chart.active {
    opacity: 1;
    pointer-events: all;
}

@keyframes fadeIn {
  0% {
    opacity: 0.0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1.0;
    transform: translateX(0px);
  }
}
@keyframes pulseFade {
    0% {
        opacity: 0.0;
    }
    50% {
        opacity: 1.0;
    }
    100% {
    opacity: 0.0;
    }
}
