* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
}
html,
body {
  width: 100%;
  height: 100%;
  font-size: 16px;
  color: #000;
  font-family: 'Roboto', sans-serif;
}
body {
  background-color: #efeff4;
  font-weight: 100;
}
a {
  text-decoration: none;
  color: #808080;
}
.button,
button {
  border: 1px #aaa solid;
  background: #f0f0f0;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  height: 32px;
  min-width: 140px;
  text-align: center;
  display: inline-block;
  cursor: pointer;
  padding-left: 2px;
  padding-right: 2px;
}
.button:active,
button:active {
  padding-left: 4px;
}
.button:disabled,
button:disabled {
  color: #b6b6b6;
  padding-left: 0px;
}
a.button {
  padding-top: 6px;
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  background-color: #f7f7f4;
  position: relative;
  color: #333;
  font-size: 16px;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  user-select: none;
}
a {
  color: inherit;
  margin: 0;
  padding: 0;
}
.link {
  text-decoration: underline;
}
.link:hover {
  text-decoration: none;
}
.header {
  width: 100%;
  height: 44px;
  background-color: #ec9c2e;
  text-align: center;
  padding-top: 6px;
  font-size: 26px;
  color: #f7f7f4;
}
.content {
  padding: 10px;
  text-align: center;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 24px;
  overflow: hidden;
}
.content .sliderbox {
  background-color: #fff;
  height: 32px;
  width: 100%;
  border-radius: 20px;
  border: 1px solid #dfdfdf;
  transition: border 0.4s, box-shadow 0.4s, background-color 1.2s;
  margin-bottom: 30px;
}
.content .sliderbox .offtext,
.content .sliderbox .ontext {
  transition: opacity 0.6s, color 0.6s;
  position: absolute;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  line-height: 30px;
}
.content .sliderbox .ontext {
  opacity: 0;
  transition-delay: 0s;
  color: #ec9c2e;
}
.content .sliderbox .offtext {
  transition-delay: 0.5s;
}
.content .sliderbox .drag {
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: background-color 1.2s;
}
.content .sliderbox .drag .handle {
  background-color: #f00;
  width: 80px;
  height: 80px;
  position: absolute;
  left: -25px;
  top: -25px;
  opacity: 0;
}
.content .sliderbox.on .offtext {
  opacity: 0;
  transition-delay: 0s;
}
.content .sliderbox.on .ontext {
  opacity: 1;
  transition-delay: 0.5s;
}
.content .sliderbox.on .drag {
  right: 0px;
  left: auto;
}
.content .sliderbox.colored {
  background-color: #ec9c2e;
  border-color: #ec9c2e;
  box-shadow: #ec9c2e 0px 0px 0px 16px inset;
}
.content .sliderbox.colored .ontext,
.content .sliderbox.colored .offtext {
  color: #fff;
}
.content .homestation_not_connected {
  display: none;
}
.content .homestation_not_connected .tips {
  margin-top: 10px;
  font-size: 10px;
}
.content .connecting {
  display: none;
}
.content table.gatelogs {
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
}
.content td {
  border-bottom: 1px solid #333;
  padding: 4px;
  padding-left: 10px;
  font-size: 11px;
}
.content tr.header td {
  background-color: #333;
  color: #fff;
  height: 20px;
  font-weight: bold;
}
.content tr td.who {
  font-weight: bold;
}
.content tr td.what.open {
  color: #ec9c2e;
}
.content tr td.when {
  text-align: right;
}
.content.homestationNotConnected .homestation_not_connected {
  display: block;
}
.content.homestationNotConnected .sliderbox {
  display: none;
}
.content.connecting .connecting {
  display: block;
  height: 42px;
}
.content.connecting .sliderbox {
  display: none;
}
.footer {
  position: fixed;
  bottom: 0px;
  left: 0px;
  height: 50px;
  width: 100%;
  background-color: #f7f7f7;
  border-top: 1px solid #a7a7aa;
  text-align: right;
  display: none;
}
body.is_uiwebview .header {
  height: 64px;
  padding-top: 24px;
}
body.is_uiwebview .footer {
  display: block;
}
