html {
  background: #000;
}
body {
  color: #fff;
  font-family: Arial;
}
body.unauth {
  margin: 0;
}

a:link,
a:hover,
a:active,
a:visited {
  color: inherit;
  text-decoration: none;
}

.center {
  text-align: center;
}

.tile {
  background: #222;
  border: 1px solid #333;
  border-radius: 16px;
  display: inline-block;
  margin-bottom: 16px;
  max-width: 302px;
  padding: 12px;
  position: relative;
  text-align: left;
  width: 100%;
}

#popup .tile {
  overflow: scroll;
}

.tile .title {
  margin-top: 2px;
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 2px 2px 2px #000;
}

.unauth .tile .title {
  margin-bottom: 8px;
}

.unauth .tile.first {
  margin-top: 16px;
}

.caption {
  color: #aaa;
  text-align: center;
}

.text-button {
  border: 1px solid #888;
  border-radius: 16px;
  cursor: pointer;
  display: inline-block;
  padding: 2px 8px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.tile-info {
  font-size: 20px;
  position: absolute;
  right: 11px;
  top: 11px;
}

.text-button.sign-on {
  margin: 0 auto;
  padding: 6px 12px;
}
.sign-on .logo {
  max-width: 19px;
  vertical-align: text-top;
  margin-right: 8px;
}

#entries {
  max-width: 328px;
  text-align: center;
  text-shadow: 1px 1px 1px #000;
}

#entries > div {
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px;
}

#entries > .driving {
  background-image: linear-gradient(to right, #038, #222);
}

#entries > .charging {
  background-image: linear-gradient(to right, #040, #222);
}

#entries > .offline {
  background-image: linear-gradient(to right, #311, #222);
}

#entries > .asleep {
  background-image: linear-gradient(to right, #225, #16202a);
}

#entries > div > span {
  display: inline-block;
}

#entries .icon {
  max-height: 16px;
  vertical-align: top;
}

.circle {
  background: #aaa;
  border-radius: 12px;
  display: inline-block;
  height: 10px;
  width: 10px;
}
.circle.parked {
  background: #aaa;
}
.circle.charging {
  background: #0b0;
}
.circle.driving {
  background: #0c73fb;
}
.circle.asleep {
  background: #812cd4;
}
.circle.offline {
  background: #a22;
}
.circle.error {
  background: #ff6600;
}
.circle.online {
  background: #cc0;
}

.marker {
  border: 2px solid #fff;
  border-radius: 13px;
  display: inline-block;
  height: 13px;
  position: relative;
  top: 11px;
  width: 13px;
}
.marker.start {
  background: #080;
}
.marker.end {
  background: #800;
}
.marker.charging {
  background: #0b0;
}

.code-snippet {
  max-height: 250px;
  overflow: scroll;
  border: 1px solid #333;
  background: #151515;
  border-radius: 12px;
  padding: 8px;
  color: #aaa;
  font-size: 12px;
}

#debug .hidden {
  display: none;
}
.tag {
  background: #151515;
  border: 1px solid #333;
  border-radius: 16px;
  color: #aaa;
  display: inline-block;
  font-size: 0.75em;
  padding: 4px 8px;
}
.tag.disabled {
  text-decoration: line-through;
}

.state-info.active,
.debug-info.active {
  border: 1px solid #cc0;
  border-radius: 18px;
}
.active .info-icon {
  opacity: 0.5;
}

.label {
  color: #aaa;
  padding-right: 8px;
}

.ccc {
  color: #ccc;
}

.mini {
  color: #aaa;
  font-size: 0.75em;
}
.mini.light {
  color: #fff;
}

.bullet {
  color: #aaa;
  text-align: center;
  margin-bottom: 12px;
}

.bullet.last {
  margin: 0;
}

.bullet.graphic {
  margin-bottom: 0;
  margin-top: 6px;
}

#chargeGraphic {
  padding: 0 12px;
}

#chargeGraphic img {
  max-width: 278px;
}

#driveGraphic {
  max-width: 302px;
}

.signLink {
  display: inline-block;
  text-align: center;
  width: 48%;
}

a:link.underline {
  text-decoration: underline;
}

.footer {
  color: #666;
  font-size: 0.75em;
  text-align: center;
  padding-top: 4px;
}

#mapCache {
  display: none;
}

#map {
  height: 200px;
  margin-bottom: 12px;
  width: 100%;
}
.daily #map {
  height: 420px;
  margin: 0;
}
.share #map {
  height: 420px;
}
.last_location #map {
  height: 420px;
}

.dp-arrow {
  border: 1px solid #666;
  border-radius: 4px;
  color: #aaa;
  cursor: pointer;
  display: inline-block;
  height: 19px;
  margin: 0 4px;
  padding: 0 8px;
  vertical-align: top;
}
.dp-arrow.disabled {
  border-color: #444;
  color: #666;
  cursor: auto;
}
#datepick {
  text-align: center;
  white-space: nowrap;
}

#referral {
  margin-bottom: 8px;
}

.bat-table {
  border: 0;
  border-spacing: 0;
  width: 100%;
}
.bat-table td {
  padding: 0;
}
.bat-tl, .bat-ml, .bat-bl {
  border-left: 1px solid #666;
}
.bat-tl, .bat-tm, .bat-tr, .bat-tab {
  border-top: 1px solid #666;
}
.bat-tr, .bat-mr, .bat-br, .bat-tab {
  border-right: 1px solid #666;
}
.bat-bl, .bat-bm, .bat-br, .bat-tab {
  border-bottom: 1px solid #666;
}
.bat-tl, .bat-tr, .bat-bl, .bat-br {
  height: 4px;
  width: 4px;
}
.bat-tl {
  border-top-left-radius: 8px;
}
.bat-tr {
  border-top-right-radius: 8px;
}
.bat-bl {
  border-bottom-left-radius: 8px;
}
.bat-br {
  border-bottom-right-radius: 8px;
}
.bat-mm {
  line-height: 11px;
  position: relative;
  text-align: left;
}
.bat-pct {
  background-image: linear-gradient(to right, #161, #182);
  border-radius: 2px;
  display: inline-block;
  height: 20px;
}
.yellow .bat-pct {
  background-image: linear-gradient(to right, #661, #882);
}
.red .bat-pct {
  background-image: linear-gradient(to right, #711, #912);
}
.bat-tab-wrapper {
  text-align: left;
  width: 5px;
}
.bat-tab {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  height: 10px;
}
#limit-border {
  color: rgb(204, 204, 204);
  font-size: 0.6em;
  height: 16px;
  line-height: 16px;
  position: absolute;
  text-shadow: rgb(0, 0, 0) 1px 1px 1px;
  top: 2px;
}
#limit-num {
  height: 100%;
}
#charge-anim {
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  display: none;
  height: 20px;
}
.charging .bat-pct {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.charging #charge-anim {
  display: inline;
}
.chart-title {
  font-size: 0.6em;
}
.tile.flat {
  padding: 0;
}
.pad {
  padding: 12px;
}
.link-wrap {
  background: #333;
  border-radius: 8px;
  display: inline-block;
  font-size: 0.75em;
  max-width: 100%;
  overflow-x: scroll;
  white-space: nowrap;   
}
.link-wrap a:link,
.link-wrap a:hover,
.link-wrap a:active,
.link-wrap a:visited {
  color: #aaa;
  display: inline-block;
  padding: 1em;
}
#page {
  display: none;
}