@import url(//fonts.googleapis.com/css?family=Molengo);
@import url(//fonts.googleapis.com/css?family=Droid+Serif:regular,bold);
@import url(//fonts.googleapis.com/css?family=Droid+Sans+Mono);

BODY {
  margin: 0px 0px 0px 0px;
  font-family: serif;
  color: black;
  background-color: #7ad;
}

NAV aside {
  display: block;
  max-width: 600px;
  font-family: 'Molengo',sans-serif;
  font-size: medium;
  white-space: normal;
  margin: 1em;
  background-color: hsl(0,100%,33%);
  color: white;
  padding: 8px 1em;
  -webkit-border-radius: 7px;
  border-top: 1px solid hsl(0,100%,10%);
  border-left: 1px solid hsl(0,100%,10%);
  -webkit-box-shadow: inset 0px 0px 4px hsla(0,0%,0%,0.75);
  min-height: 48px;
}

NAV aside IMG {
  vertical-align: text-top;
  margin-right: 0.25em;
}

NAV#siteTabs {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-end;
    background-color: #f2f2f2;
  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#eee));
  padding-left: 1em;
  padding-right: 1em;
  padding-top: 0.25em;
}

NAV#siteTabs IMG.logo {
  padding-left: 0.25em;
  padding-right: 0.25em;
  height: 1em;
}
NAV#siteTabs H1 {
  font-family: 'Droid Serif',serif;
  font-weight: normal;
  margin-top: 0px;
  margin-bottom: 2px;
}

NAV#siteTabs DIV.tabs {
  white-space: nowrap;
}

NAV#siteTabs A, NAV#siteTabs A:visited {
  background-color: #ddd;
  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#d0d0d0), color-stop(0.33,#d8d8d8), to(#ccc));
  display: inline-block; 
  padding: 0.33em 1em; 
  font-family: 'Molengo',sans-serif;
  color: #222;
  text-decoration: none;
  text-shadow: 1px 1px 1px rgba(255,255,255,0.25);
  border-top: 1px solid rgba(255,255,255,0.25);  /* a little edge hilight */
  border-right: 1px solid rgba(0,0,0,0.25);
  position: relative;
  cursor: pointer;
}

NAV#siteTabs A:first-of-type {
  padding-left: 1.33em;
  border-left: 1px solid rgba(255,255,255,0.25);  /* a little edge hilight */
  border-top-left-radius: 15px; 
}

NAV#siteTabs A:last-of-type {
  padding-right: 1.33em;
  border-right: 1px solid rgba(0,0,0,0.25);  /* a little edge lowlight */
  border-top-right-radius: 15px; 
}

NAV#siteTabs A:hover {
  background: #ccc;
}
NAV#siteTabs A:active {
  background: #aaa;
}

NAV#siteTabs A.selected {
  background: #999;
  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#989898), color-stop(0.33,#909090), to(#989898));
}

HR.nav {
  border: none;
  /* border-bottom: 1px solid rgba(255,255,255,0.25); */
  border-top: 1px solid rgba(0,0,0,0.125);
  margin: 0 auto;
}


CANVAS.sparkline {
  margin-left: 3px;
  margin-right: 3px;
}

CANVAS#windview {
  background: url(weather/map.jpg);
  background-size: cover;
  display: block;
  border-radius: 7px; 
}

TABLE.clean {
  border-spacing: 0px;
  margin-left: auto;
  margin-right: auto;
}
TABLE.clean TH {
  font-family: 'Molengo',sans-serif;
  text-align: right;
  font-weight: normal;
  vertical-align: text-bottom;
}
TABLE.clean TD {
  white-space:nowrap;
  vertical-align: text-bottom;
}
TABLE.clean SPAN.data {
  font-family: sans-serif;
  font-weight: bold;
}
TABLE.clean CANVAS.stale ,
TABLE.clean SPAN.stale {
  opacity: 0.25;
}
BODY.power TABLE.clean TD {
  padding-left: 1em;
}

SPAN#age-comment {
  background-color: hsl(0,100%,33%);
  color: white;
  font-family: 'Molengo',sans-serif;
}

.throb {
  -webkit-animation-name: throb;
  -webkit-animation-duration:  1s;
  -webkit-animation-iteration-count: 5;
  -webkit-animation-timing-function: ease-in-out;
}

@-webkit-keyframes throb {
  from { opacity: 1.0 }
  50% { opacity: 0.5 }
  to { opacity: 1.0 }
}

DIV.clean H2 {
  font-family: 'Droid Serif',serif;
  font-weight: normal;
  text-align: center;
  text-decoration: underline;
  margin-bottom: 0.5em;
  padding-top: 0.5em;
}  

DIV.note {
  position: relative;
  width: 800px;
  background-color: #ec3;
  -webkit-border-radius: 7px; 
  border-radius: 7px; 
  -webkit-box-shadow: 2px 2px 4px #555577;
  margin: 2em 1em;
  padding: 1em;
}

DIV.burst {
  position: relative;
  /*width: 100%;*/
  /*max-width: 1300px;*/
  background-color: #fff;
  background-image: url('/img/paper.jpg');
  border-radius: 7px; 
  box-shadow: 2px 2px 4px #555577;
  margin: 2em 1em;
}

DIV.hflex {
  display: inline-flex;
  /*flex-direction: column;*/
}

DIV#windview-div {
  width: 350px;
  height: 350px;
}

DIV#observations {
    display: flex;
    flex-wrap: wrap;
    margin-left: 16px;
    margin-right: 16px;
}
DIV#observations > * {
    border-radius: 7px;
    margin-top: 1em;
    margin-bottom: 1em;
    box-shadow: 2px 2px 4px #555577;
}

DIV#current-data-div {
  position: relative;
  width: 450px;
  height: 350px;
  border-top-left-radius: 7px; 
  border-bottom-left-radius: 7px;
  border-right: 1px solid rgba(0,0,0,0.33);
  background-image: url('/img/paper.jpg');
}

DIV#current-data-div DIV.forecasts {
  position: absolute;
  bottom: 0.25em;
  right: 0.5em;
}
DIV#current-data-div DIV.forecasts A {
  display: block;
}

DIV#current-data-div P.timestamp {
  display: block;
  position: absolute;
  margin: 0px;
  bottom: 0.25em;
  left: 0.5em;
}

DIV#forecast {
    background: #fff;
    padding: 7px;
    width: 100%;
    max-width: 800px;
}

DIV#noaa {
  font-family: 'Molengo',fixed;
  min-height: 300px;
  padding: 0.5em 2em;
  font-size: 11pt;
}
TABLE.noaa SPAN.low {
    color: #339;
    font-size: 2em;
}
TABLE.noaa SPAN.high {
    color: #933;
    font-size: 2em;
}
TABLE.noaa DIV.when {
    font-weight: bold;
    color: #666;
    font-size: 0.8em;
}
TABLE.noaa DIV.forecast {
    font-size: 1.1em;
}
TABLE.noaa DIV.img-well {
    border-radius: 4px;
    overflow: hidden;
    font-size: 0;
    border: 1px rgba(0,0,0,0.5) solid;
    margin-left: 4px;
    margin-right: 4px;
}

TABLE.noaa IMG.nws-icon {
    width: 48px;
    height: auto;
}

CANVAS#current-icon {
  position: absolute;
  display: block;
  padding: 3px;
  top:0;
  left:0;
  width: 36px;
  height: 36px;
}

DIV#camera {
    display: flex;
    flex-direction: column;
    background-color: #ddd;
    background-image: url('/img/metal.jpg');
    box-shadow: 2px 2px 4px #555577;
}


DIV#camera-thumbnails BUTTON.running {
    background-color: #c88;
}

DIV#camera-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

DIV#camera-thumbnails IMG {
    cursor: pointer;      /* gross hack so Mobile Safari allows clicks */
    width: 64px;
    margin: 4px;
}

DIV#camera-image IMG {
  display: block;
  width: 100%;
  border-bottom-left-radius: 7px; 
  border-bottom-right-radius: 7px; 
}


DIV#camera-controls {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 160px;
  min-height: 480px;
  background-color: #ddd;
  background-image: url('/img/metal.jpg');
  -webkit-border-top-right-radius: 7px; 
  -webkit-border-bottom-right-radius: 7px;
  border-top-right-radius: 7px; 
  border-bottom-right-radius: 7px;
  
}

DIV#camera-controls .chooser LABEL {
  display: block;
  margin-top: 3px;
  margin-bottom: 3px;
}

DIV#camera-controls .chooser IMG {
  vertical-align: middle;
  -webkit-border-radius: 7px; 
  -webkit-box-shadow: 0px 0px 7px hsla(240,66%,80%,0.66);

  border-top: 1px solid hsla(0,0%,0%,0.2);
  border-left: 1px solid hsla(0,0%,0%,0.2);
  border-right: 1px solid hsla(0,0%,0%,0.06);
  border-bottom: 1px solid hsla(0,0%,0%,0.06);
}

CANVAS.button {
  width: 48px;
  height: 48px;
}

DIV#camera-controls FIELDSET {
  margin: 1em 1em;
  font-family: 'Molengo',sans-serif;
  border-top: 1px solid rgba(0,0,0,0.125);
  border-left: 1px solid rgba(0,0,0,0.125);
  border-right: 1px solid rgba(255,255,255,0.125);
  border-bottom: 1px solid rgba(255,255,255,0.125);
  -webkit-border-radius: 7px;
  -webkit-box-shadow: 0px 0px 2px rgba(0,0,0,0.4) inset;
  background-color: #eee;
}

DIV#camera-controls FIELDSET.window BUTTON {
  display: block;
}

DIV#camera-controls LEGEND {
  border: 1px solid rgba(0,0,0,0.125);
  padding: 0px 1em 2px 1em;
  -webkit-border-radius: 7px;
  background-color: #eee;
  background-image: url('/img/paper.jpg');
  font-size: 12px;
}


BODY.power DIV.controlSet {
  display: block;

  padding-left: 0.5em;
  padding-right: 0.5em;

  margin-left: 1em;
  margin-right: 1em;
  padding-bottom: 10px;   /* tuck under next element down */
  margin-bottom: -10px;

  background-color: #ddd;
  -webkit-box-shadow: 3px 3px 3px rgba(0,0,0,0.4);
  background-image: url('/img/yellowpaper.jpg');
}

BODY.power {
  font-family: 'Molengo',sans-serif;
}

BODY.power DIV.controlSet DIV.hack {
  display: table;
  width: 100%;
  font-size: 15px;
}

BODY.power DIV.controlSet DIV.updates {
  display: table-cell;
  text-align: right;
  vertical-align: top;
}

BODY.power DIV.controlSet DIV.info {
  display: table-cell;
  font-family: 'Droid Serif', serif;
  font-weight: normal;
  vertical-align: middle;
}

BODY.power DIV.controlSet CANVAS.button {
  width: 25px;
  height: 25px;
}

CANVAS.meter {
  display: block;
  width: 100px;
  height: 100px;
}

DIV.currentPower {
  display: inline-block;
  vertical-align: top;
  margin-top: 2em;
  margin-bottom: 2em;
  margin-left: 1em;
}

DIV.indicatorRow {
    width: 100%;
    text-align: center;
}
DIV.indicatorSet {
    display: inline-block;
}

DIV.indicatorSet CANVAS {
    width: 38px;
    height: 38px;
}

DIV.meterSet {
  display: inline-block;

  padding-left: 0.5em;
  padding-right: 0.5em;

  -webkit-border-radius: 7px;
  border-radius: 7px;
  background-color: #ddd;
  background-image: url('/img/copper.jpg');
  /* webkit-box-shadow: 2px 2px 4px rgba(0,0,0,0.4); */
  -webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.4) inset, 3px 3px 3px rgba(0,0,0,0.4), 0px 0px 2px rgba(0,0,0,0.25);
}

DIV.currentPower DIV.currentData {
  margin-right: 1em;
  margin-left: 1em;
  padding-top: 0.25em;
  padding-bottom: 0.5em;
  background-color: #ddd;
  -webkit-box-shadow: 3px 3px 3px rgba(0,0,0,0.4);
  background-image: url('/img/yellowpaper.jpg');
}


DIV.currentPower DIV.currentData SPAN.flare {
  -webkit-animation-name: flare;
  -webkit-animation-duration: 1.5s;
}

@-webkit-keyframes flare {
  from {
    text-shadow: 0px 0px 1px rgba(255,0,0,0.0);
  }  33% {
    text-shadow: 0px 0px 10px rgba(255,0,0,0.5);
  }

  to {
    text-shadow: 0px 0px 20px rgba(255,255,255,0.0);
  }  
}

DIV.meter {
  display: inline-block;
  margin: 0.5em;
}

DIV.meter LABEL {
  display: block;
  border-right: 1px solid rgba(255,255,255,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  -webkit-box-shadow: 0px 0px 1px rgba(0,0,0,0.25);
  -webkit-border-radius: 3px; 
  text-align: center;
  text-transform: lowercase;
  font-size: 12px;
  font-family: 'Molengo',sans-serif;
  background: rgba(200,200,180,0.80);
  background-image: url('/img/paper.jpg');
}

DIV.stripCharts {
    margin-left: 16px;
    min-width: 600px;
    max-width: 800px;
    box-shadow: 2px 2px 4px #555577;
}

DIV.stripChart {
    display: flex;
    flex-direction: column;
    background-color: #dfd;
}

DIV.stripChart DIV.title {
    background-color: hsla(120,40%,80%,0.75);
    font-family: 'Molengo',sans-serif;
    display: inline-block;
    padding: 0.125em 1em;
}

DIV.stripChart DIV.title SPAN.label {
    font-size: 75%;
    padding-left: 0.5em;
    padding-right: 0.5em;
    background-color: #dfd;
    border: 1px solid hsla(120,33%,50%,0.33);
}

DIV.stripChart DIV.title SPAN.downstairs {
  color: hsl(240,50%,33%)
}
DIV.stripChart DIV.title SPAN.upstairs {
  color: hsl(0,50%,33%)
}
DIV.stripChart DIV.title SPAN.spit {
  color: hsl(0,33%,33%)
}
DIV.stripChart DIV.title SPAN.outdoor {
  color: hsl(60,50%,33%)
}
DIV.stripChart DIV.title SPAN.outdoor2 {
  color: hsl(120,50%,33%)
}

DIV.stripChart DIV.title SPAN.average {
  color: hsl(120,50%,33%)
}
DIV.stripChart DIV.title SPAN.gust {
  color: hsl(0,50%,33%)
}

DIV.pastPower {
  display: inline-block;
  margin-left: 2em;
  margin-right: 2em;
}

DIV.pastPower DIV.time {
  display: inline-block;
  margin-right: 1em;
}

DIV.pastPower DIV.time A {
  font-family: sans-serif;
  font-size: small;
  background-color: hsl(120,30%,90%);  /* chart bg is 120,100%,93%, we desaturate and dim a little */
  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from( hsla(0,0%,0%,0.08)), color-stop(0.33,hsla(0,0%,100%,0.10)), to(hsla(0,0%,0%,0.1)));
  text-decoration: none;
  color: #222;
  padding: 0.15em 1em;
  text-shadow: 1px 1px 1px rgba(255,255,255,0.25);
  border-top: 1px solid rgba(0,0,0,0.25);  /* a little edge hilight */
  border-left: 1px solid rgba(0,0,0,0.25);  /* a little edge hilight */
  border-right: 1px solid rgba(0,0,0,0.25);
  /* webkit-box-shadow: 2px 2px 2px rgba(0,0,0,0.25), inset 1px 1px 2px rgba(0,0,0,0.25); */
  -webkit-box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
}

DIV.pastPower DIV.time A.back:before {
  content: "⇐";
}
DIV.pastPower DIV.time A.fore:after {
  content: "⇒";
}
DIV.pastPower DIV.time A:hover {
  background-color: hsl(120,25%,80%);  
}
DIV.pastPower DIV.time A:active {
  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from( hsla(0,0%,100%,0.1)), color-stop(0.33,hsla(0,0%,0%,0.1)), to(hsla(0,0%,100%,0.1)));
  background-color: hsl(120,25%,77%);  
}



DIV.pastPower DIV.time A:first-of-type {
  padding-left: 1.33em;
  border-left: 1px solid rgba(255,255,255,0.25);  /* a little edge hilight */
  -webkit-border-top-left-radius: 15px; 
  -webkit-border-bottom-left-radius: 15px; 
}
DIV.pastPower DIV.time A:last-of-type {
  padding-right: 1.33em;
  border-right: 1px solid rgba(0,0,0,0.25);  /* a little edge lowlight */
  -webkit-border-top-right-radius: 15px; 
  -webkit-border-bottom-right-radius: 15px; 
}

DIV.pastPower TD.strip {
  line-height: 0;
}

DIV.pastPower CANVAS.stripChart {
  background-color: #dfd;
}

DIV.pastPower TABLE {
  border-spacing: 0 0;
  -webkit-box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  margin-top: 1em;
  margin-bottom: 1em;
}

DIV.pastPower TABLE TD {
  padding: 0;
}

DIV.pastPower TABLE TR {
  border: none;
}

DIV.pastPower TABLE TR {
  vertical-align: middle;
}

DIV.pastPower TABLE TR.title {
  background-color: #dfd;
}

DIV.pastPower TD.time {
  text-align: right;
}

DIV.pastPower DIV.title {
  display: inline-block;
  padding: 0.125em 1em;
  font-family: 'Molengo',sans-serif;
  margin-bottom: 0;
  background-color: hsla(120,40%,80%,0.75);
  border-right: 1px solid hsla(120,33%,50%,0.33);
  border-bottom: 1px solid hsla(120,33%,50%,0.33);
}

DIV.pastPower DIV.title SPAN {
  display: inline-block;
  font-size: smaller;
  background: hsl(120,100%,93%);
  border: 1px solid hsla(120,33%,50%,0.33);
  padding: 0 1em;
}

DIV.pastPower DIV.title SPAN.bank {
  color: hsl(0,50%,33%)
}
DIV.pastPower DIV.title SPAN.house {
  color: hsl(60,50%,33%)
}

DIV.pastPower DIV.title SPAN.in {
  color: hsl(0,50%,33%)
}
DIV.pastPower DIV.title SPAN.out {
  color: hsl(60,50%,33%)
}



DIV.pastPower DIV.title SPAN.ac {
  color: hsl(210,50%,33%)
}

DIV.pastPower DIV.title SPAN.dc {
  color: hsl(60,50%,33%)
}

DIV.pastPower DIV.title SPAN.solar {
  color: hsl(120,50%,33%)
}

DIV.pastPower DIV.title SPAN.outdoor {
  color: hsl(120,50%,33%)
}
DIV.pastPower DIV.title SPAN.outdoor2 {
  color: hsl(0,50%,33%)
}
DIV.pastPower DIV.title SPAN.indoor {
  color: hsl(240,50%,33%)
}
DIV.pastPower DIV.title SPAN.average {
  color: hsla(120,50%,33%,0.75)
}
DIV.pastPower DIV.title SPAN.gust {
  color: hsla(0,85%,33%,0.35)
}

NAV.admin {
  display: inline-block;
  margin-top: 2em;
  margin-bottom: 2em;
  margin-left: 6em;

  -webkit-border-radius: 7px;
  border-radius: 7px;
  background-color: #ddd;
  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#d0d0d0), color-stop(0.33,#e0e0e0), to(#ccc));
  -webkit-box-shadow: 2px 2px 4px rgba(0,0,0,0.4);

}

NAV.admin A {
  display: block;
  padding-left: 2em;
  padding-right: 2em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;

  color: #222;
  text-decoration: none;
  text-shadow: 1px 1px 1px rgba(255,255,255,0.25);
  text-transform: lowercase;
  font-family: 'Molengo',sans-serif;
  border-top: 1px solid rgba(0,0,0,0.25);
}

NAV.admin A:hover {
  background: rgba(0,0,0,0.1);
}

NAV.admin A:active {
  background: rgba(0,0,0,0.4);
}

NAV.admin A:first-of-type {
  border-top: none;
  -webkit-border-top-right-radius: 7px;
  -webkit-border-top-left-radius: 7px;
}

NAV.admin A:last-of-type {
  -webkit-border-bottom-right-radius: 7px;
  -webkit-border-bottom-left-radius: 7px;
}


BODY.movies DIV#movies {
  max-width: 672px;   /* 7*96 */
}

BODY.movies DIV.month {
  display: inline-block;
}

BODY.movies DIV.monthName DIV.nav {
  display: inline-block;
}
BODY.movies DIV.monthName DIV.nav BUTTON {
  display: block;
}
BODY.movies DIV.monthName {
  text-align: right;
  padding-right: 1em;
  background: rgba(0,0,0,0.6);
  color: white;
  font-family: 'Molengo',sans-serif;
  font-weight: bold;
  font-size: 24pt;
}

BODY.movies DIV.day {
  display: inline-block;
  position: relative;
  height: 64px;
  width: 96px;
  vertical-align: top;
}

BODY.movies DIV.blank {
  -webkit-box-shadow: inset 0 0 40px rgba(0,0,0,0.065);
}

BODY.movies DIV.day DIV.date {
  position: absolute;
  right: 0;
  top: 0;
  padding-right: 2px;
  padding-left: 2px;
  font-family: sans-serif;
  font-size: 10pt;
  color: rgba(0,0,0,0.5);
  background: rgba(255,255,255,0.5);
  -webkit-border-bottom-left-radius: 4px;
}

BODY.movies div.today-movies {
    padding: 0 1em;
}

BODY.movies h2 {
    font-family: Molengo, sans-serif;
    margin-bottom: 8px;
}

BODY.movies figure {
    background: rgba(0,0,0,0.1);
    margin: 0 8px 8px 8px;
    display: inline-block;
    text-align: center;
    font-family: Molengo, sans-serif;
}

BODY.movies figure img {
    width: 96px;
}


IMG#adjust-camera {
  min-height: 480px;
}
