* {
  line-height: 1.0;
  color: #333447;
}

html, body {
  font-weight: normal;
  font-size: 16px;
}

span {
  display:inline-block;
}

p {
  font-size: 1.125rem;
  font-weight: 200;
  line-height: 1.8;
}

h1,h2,h3 {
  color:#29b473;
}

h3 {
  width:auto;
  height:auto;
  color: #A8A6A6;
  clear:both;
}

nav#header .container { width: 100%; }

.styled-select {
  top: 4vh;
  position: relative;
  overflow: hidden;
  width: 17%;
  display: inline-block;
  background: url('../img/arrow_select.png') no-repeat right center;
  height: 40px;
  background-size: 15% 100%;
}

.styled-select select:disabled { opacity:0.9; background-color: #EEE; color:silver; }

.styled-select.narrower { width: 15%; }
.styled-select.wider { width: 20%; }

.styled-select select {
  background: transparent;
  border: none;
  padding: 5px; /* If you add too much padding here, the options won't show in IE */
  width: 112%;
  border: 1px solid #ccc;
  font-size: 1.3em;
  height: 40px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.styled-select select:active {
  background-color: silver;
  color: white;
}

.mainCenter {
  width: 60vw;
  margin:0 auto;
  text-align:center;
}

.detail.mainCenter {
  width: 67vw;
  margin:0 auto;
  text-align:center;
}

div#chart, div#legendOuter {
  background-color: #f2f2f2;
  text-align: center;
  padding: 10px 0 10px 0;
  height:auto;
}

div#chart {}

div#canvasContainer {
  height:400px;
  width:90%;
}

div#learningQuestions { margin-top:50px; font-size:1.5em; }

div#learningQuestions p { font-size: inherit; }

form#questionsForm { margin-bottom: 25px; }

p.question, p.answer {
  width: 100%;
  text-align: left;
  margin-bottom: 0.4em;
}

p.answer { margin-bottom: 2em; }
p.answer span { display: none; }
p.answer.visible span { display: inline; }
p.answer.visible .reveal-btn { display: none; }

.question:before {
  content: 'Q: ';
  padding-right:0.6em;
}

.answer:before {
  content: 'A: ';
  padding-right:0.6em;
}

.reveal-btn {
  border: none;
  background: none;
  color:#29b473;
  font-size: 1.1em;
}

.reveal-btn:hover {
  cursor:pointer;
}

.deleteButton {
  margin-left:40px;
  position: relative;
  top:5px;
}

/* UI */

#energyIcons {
  width:10%;
  height:100%;
  text-align: center;
}

#energyIcons p.label {
  margin:0;
  position:relative;
  top:-7px;
  visibility: hidden;
}
.energyIcon {
  width: 60%;
  height: auto;
  margin-bottom: 1px;
  border-radius: 50%;
}

.addButton {
  background-color:#29b473;
  text-indent:0;
  display:inline-block;
  color:#ffffff;
  font-family:arial;
  font-size:15px;
  font-weight:bold;
  font-style:normal;
  height:30px;
  line-height:15px;
  width:60px;
  text-decoration:none;
  text-align:center;
  border:0;
  position: relative;
  top:-86px;
}

.classname:hover {
  background-color:#26a366;
}

.classname:active {
  position:relative;
  top:1px;
}

.qA {
  border-color: #29b473;
  width:300px;
  height:100px;
  font-family: "TTRounds";
  resize:none;
}

select {
  width:200px;
}

.ui-selectmenu-button {
  position: relative;
  top:13px;
  border-color: #BBBDBF;
  border-style: solid;
  border-width: 1px;
  color: #8C8080;
}

.ui-state-default .ui-icon.select-icon-arrow {
  width:22px;
  height:22px;
  margin-top:-11px;
  right: 7px;
  background-image: url('../img/arrow_select.png');
  background-repeat: no-repeat;
  background-position: center; 
  background-size: contain;
}

input[type=checkbox] {
  display: none;
}

input[type=checkbox] + label {
  display: inline-block;
  width: 23px; 
  height: 23px;
  background-image: url('../img/checkbox.png');
  background-repeat: no-repeat;
  background-position: center; 
  background-size: contain;
  cursor: pointer;
  margin: 0px 8px 0 8px;
  position: relative;
  top:5px;
}

input[type=checkbox]:checked + label {
  background-image: url('../img/checkbox_check.png');
}

.shadowed {
  stroke:#000;
  stroke-width: 3;
}

.energyIcon.selected {
  background-color: #fff;
}

/* ENERGY VIZ */

div.grayBg {
  background-color: #f2f2f2;
  color: #797979;
}

div.energy-grid,
div.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-gap: 1px;
  margin-bottom: 1em;
}

div.detail-grid,
div.detail-legend {
  float:left;
  max-width:10vw;
  grid-template-columns: 1fr;
}

div.detail-legend span { color: inherit; }
div.detail-legend h3 { margin: 0.1em 0em; font-size: 2em; }

div.energy-grid,
div.detail-grid * {
  color: #797979;
}

div.detail-grid img.energyIcon,
div.energy-grid img.energyIcon {
  width:83%;
  text-align: center;
  margin: 10px auto;
  display: block;
}

div.energyIcon {
  background-image: url('../img/projector-subject-icon.png');
  width: 8.27vw;
  height: 8.27vw;
  text-align: center;
  margin: 10px auto;
  display: block;
  background-size: 100%;
}

div.energyIcon[name="light"] { background-image: url('../img/lightBulb-subject-icon.png'); }
div.energyIcon[name="computer"] { background-image: url('../img/computer-subject-icon.png'); }
div.energyIcon[name="heater"] { background-image: url('../img/heater-subject-icon.png'); }

div.energyIcon.selected[name="projector"] { background-image: url('../img/dash_projector.png'); }
div.energyIcon.selected[name="light"] { background-image: url('../img/dash_light.png'); }
div.energyIcon.selected[name="computer"] { background-image: url('../img/dash_computer.png'); }
div.energyIcon.selected[name="heater"] { background-image: url('../img/dash_heater.png'); }

p.energy-total, p.wday-label {
  font-size:1.5rem;
  color: #797979;
  margin: 0.6em auto;
  margin-bottom: 0.25em;
}

div.microscope div.circle.hidden,
div.legend-circles div.circle.hidden,
div.energy-grid div.circle.hidden {
  display: none;
}

div.microscope div.circle,
div.legend-circles div.circle,
div.energy-grid div.circle { 
  background-color: silver;
  width: 80%;
  height: 80%;
  border-radius: 100%;
  display: block;
  top: 10%;
  position: relative;
  left: 10%;
  -webkit-transition: background-color 500ms linear;
  -moz-transition: background-color 500ms linear;
  -o-transition: background-color 500ms linear;
  transition: background-color 500ms linear;
}

.circle.day-grayout,
.circle.device-grayout { 
  opacity:0.1;
  -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=10)";
  filter: alpha(opacity=10);
} 

.energy-cell, .cell {
  /*box-shadow: 0 0 0 1px #c4c4c4;*/
  border: 1px solid gray;
  border-style: dashed;
}

div.energy-grid .energy-cell.selected {
  background-color: white;
}

div.energy-grid .energy-cell:nth-child(1n+1), 
div.energy-grid .cell:nth-child(1n+1) {
  border-left: 0;
  border-bottom:0;
}

div.energy-grid .energy-cell.selected .circle {
  display:none;
}

div.energy-grid .energy-cell .data { display: none; }

div.energy-grid .energy-cell.selected .data {
  top: 40%;
  position: relative;
  display: block;
}


.notopborder { border-top:0; }
.norightborder { border-right:0; }
.noborder { border: none; }

.noshadow {
  box-shadow: none;
}

div.legend {
  color: #797979;
}

div.legend-circles,
div.circle-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-gap: 1px;
  margin-top: 10px;
}

div.legend-circles div.circle {
  height: 0.5vw;
  width: 0.5vw;
  top: 2.25vw;
  display: inline-block;
  background-color: #797979;
  left: 0px;
  vertical-align: middle;
  margin: 0 auto;
}


div.legend-circles div.circle:nth-child(10) { top: 0vw; height: 5vw;   width: 5vw; }
div.legend-circles div.circle:nth-child(9) { top: 0.25vw; height: 4.5vw; width: 4.5vw; }
div.legend-circles div.circle:nth-child(8) { top: 0.5vw; height: 4vw;   width: 4vw; }
div.legend-circles div.circle:nth-child(7) { top: 0.75vw; height: 3.5vw; width: 3.5vw; }
div.legend-circles div.circle:nth-child(6) { top: 1vw; height: 3vw;   width: 3vw; }
div.legend-circles div.circle:nth-child(5) { top: 1.25vw; height: 2.5vw; width: 2.5vw; }
div.legend-circles div.circle:nth-child(4) { top: 1.5vw; height: 2vw;   width: 2vw; }
div.legend-circles div.circle:nth-child(3) { top: 1.75vw; height: 1.5vw; width: 1.5vw; }
div.legend-circles div.circle:nth-child(2) { top: 2vw; height: 1vw;   width: 1vw; }

div.legend {
  padding: 1em;
}

div.legend-gradient {
  margin: 0 auto;
  border: 2px solid gray;
  margin-top: 1em;
  height: 3vh;
  width: 95%;
  background-color: red;
  background-image:
    linear-gradient(
      to left,
      rgb(173,40, 82),
      rgb(234,44, 90),
      rgb(233,126,103),
      rgb(243,207,94),
      rgb(167,209,100),
      rgb(1,  155,115),
      rgb(2,  96, 122),
      rgb(10, 55, 109),
      rgb(26, 22, 100)
    );
}

div.detail-wrapper {
  height:45vw;
  width:45vw;
  float: left;
  border: 1px dashed silver;
  margin: 0px 1vw;
}

div.microscope {
  background-color: white;
  border: 1px solid #333;
  width: 90%;
  height: 90%;
  border-radius: 100%;
  margin: 5% auto;
}

div.microscope div.circle {
  display: block;
  position: absolute;
  max-width: 350px;
  max-height: 350px;
}

div.circle .use {
  display: none;
  position: relative;
  top: 38%;
  top: calc(60% - 2em);
  font-size: 2em;
}

div.circle.selected {
  z-index: 1000;
  width: 20vw !important;
  height: 20vw !important;
}

div.circle.selected .use {
  display: block;
}


hr.clear { clear:both; border: none; margin: 1em;  }

/*
div.microscope .circle:nth-child(1) { top: 42%; left: 23%; }
div.microscope .circle:nth-child(2) { top: 20%; left: 2%; }
div.microscope .circle:nth-child(3) { top: 25%; left: -29%; }
div.microscope .circle:nth-child(4) { top: 57%; left: -15%; }
*/