@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,700);
@import url(https://maxst.icons8.com/vue-static/landings/line-awesome/line-awesome/1.3.0/css/line-awesome.min.css);
BODY {
  background: #252535;
  font-family: "Open Sans";
}

h1 {
  font-size: 26px;
}

h2 {
  color: #556;
  text-align: center;
  font-size: 20px;
  margin-top: 1rem 0 1rem 0;
  padding: 0;
  text-transform: uppercase;
}

#homeApp {
  width: calc(100% - 2rem);
  margin: 1rem auto;
}

.floorGrid {
  display: grid;
  grid-template-columns: 4fr 4fr 4fr;
  grid-gap: 1rem;
}

@media only screen and (max-width: 768px) {
  .floorGrid {
    grid-template-columns: 6fr 6fr;
    grid-gap: 1rem;
  }
  .floorGrid > div:nth-child(3) {
    grid-column: 1/span 2;
  }
}
@media only screen and (max-width: 400px) {
  .floorGrid {
    grid-template-columns: 12fr;
    grid-gap: 1rem;
  }
}
.sensorGrid {
  width: 100%;
}

.sensorItem {
  display: grid;
  grid-template-columns: 4fr 4fr 4fr;
  grid-gap: 1rem;
}

@media only screen and (max-width: 768px) {
  .sensorItem {
    grid-template-columns: 6fr 6fr;
    grid-gap: 1rem;
  }
}
@media only screen and (max-width: 450px) {
  .sensorItem {
    grid-template-columns: 12fr;
    grid-gap: 1rem;
  }
}
@media only screen and (min-width: 1000px) {
  .sensorItem {
    grid-template-columns: repeat(4, 3fr);
    grid-gap: 1rem;
  }
}
@media only screen and (min-width: 1500px) {
  .sensorItem {
    grid-template-columns: repeat(5, 3fr);
    grid-gap: 1rem;
  }
}
.text-red {
  color: #900;
}

.roomCard {
  width: 100%;
  font-family: "Open Sans";
  border-radius: 10px;
  border: solid 3px rgba(120, 120, 200, 0.3);
  box-shadow: inset 1px 1px 14px 10px #111, 3px 3px 2px #111;
  cursor: pointer;
  text-shadow: 1px 1px 1px #000;
  margin-bottom: 10px;
  background: #1e1e28;
}
.roomCard .status {
  display: grid;
  grid-template-columns: auto 50px;
  grid-template-rows: 20px;
  grid-gap: 0;
  padding-top: 3px;
  text-align: left;
  padding-left: 5px;
  color: #444;
  font-size: 11px;
  align-items: center;
  background: rgba(40, 40, 40, 0.2);
  border-bottom: solid 1px rgba(60, 60, 60, 0.2);
  box-shadow: inset 1px 1px 3px #000;
}
.roomCard .status > div:nth-child(2) {
  color: #090;
  vertical-align: center;
  padding-top: 5px;
  font-size: 16px;
  text-align: right;
}
.roomCard .status > div:nth-child(2) > span {
  font-size: 11px;
}
.roomCard .battery {
  display: flex;
}
.roomCard .temp {
  font-size: 50px;
  font-weight: 800;
  text-align: center;
  display: block;
  color: white;
  padding: 0;
  text-shadow: 1px 1px 1px #000;
}
.roomCard .temp-change {
  text-align: center;
  margin-bottom: 0;
}
.roomCard .temp-history {
  font-size: 10px;
  color: #555;
  text-align: center;
  margin-bottom: 0.5rem;
}
.roomCard .title {
  color: white;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 18px;
  display: block;
  padding-bottom: 5px;
}
.roomCard .info {
  background: #2ab2ea;
  border-top: solid 1px #aaa;
  font-weight: 700;
  padding: 0.7rem;
  color: white;
  font-size: 15px;
  border-bottom-right-radius: 7px;
  border-bottom-left-radius: 7px;
}
.roomCard .humidity {
  width: 100%;
}
.roomCard .currentTemp {
  width: 100%;
}
.roomCard .currentWeather {
  background: #ededed;
  margin: 0;
}
.roomCard .weather-temp {
  display: grid;
  grid-template-columns: 4fr 6fr 4fr;
}
.roomCard .humidity-bar {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: auto 8fr;
}
.roomCard .humidity-bar-weather {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: auto 8fr auto;
  grid-template-rows: 20px;
}
.roomCard .humidity-bar-weather .weather-icon {
  margin: 0;
  padding: 0;
  max-height: 20px;
}

@media only screen and (max-width: 768px) {
  .info {
    font-size: 12px;
  }
}
@media only screen and (max-width: 575px) {
  .info {
    font-size: 15px;
  }
}
#graphs > div {
  border-radius: 10px;
  padding: 1rem 0 1rem 0;
}

.green-F {
  color: #0f0;
}

.green-A {
  color: #0a0;
}

.green-9 {
  color: #090;
}

.orange {
  color: #f90;
}

.red {
  color: #f00;
}

#updateInfo {
  display: none;
}

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

#loader {
  display: block;
  position: relative;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #3498db;
  -webkit-animation: spin 2s linear infinite;
  /* Chrome, Opera 15+, Safari 5+ */
  animation: spin 2s linear infinite;
  /* Chrome, Firefox 16+, IE 10+, Opera */
  z-index: 1001;
}
#loader:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #e74c3c;
  -webkit-animation: spin 3s linear infinite;
  /* Chrome, Opera 15+, Safari 5+ */
  animation: spin 3s linear infinite;
  /* Chrome, Firefox 16+, IE 10+, Opera */
}
#loader:after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #f9c922;
  -webkit-animation: spin 1.5s linear infinite;
  /* Chrome, Opera 15+, Safari 5+ */
  animation: spin 1.5s linear infinite;
  /* Chrome, Firefox 16+, IE 10+, Opera */
}

@-webkit-keyframes spin {
  0% {
    /* Chrome, Opera 15+, Safari 3.1+ */
    /* IE 9 */
    transform: rotate(0deg);
    /* Firefox 16+, IE 10+, Opera */
  }
  100% {
    /* Chrome, Opera 15+, Safari 3.1+ */
    /* IE 9 */
    transform: rotate(360deg);
    /* Firefox 16+, IE 10+, Opera */
  }
}
@keyframes spin {
  0% {
    /* Chrome, Opera 15+, Safari 3.1+ */
    /* IE 9 */
    transform: rotate(0deg);
    /* Firefox 16+, IE 10+, Opera */
  }
  100% {
    /* Chrome, Opera 15+, Safari 3.1+ */
    /* IE 9 */
    transform: rotate(360deg);
    /* Firefox 16+, IE 10+, Opera */
  }
}
#loader-wrapper .loader-section {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background: #1f1f33 url(/favicon/mstile-70x70.png) no-repeat center center;
  background-size: 70px;
  z-index: 1000;
}
#loader-wrapper .loader-section .loader-section.section-left {
  left: 0;
}
#loader-wrapper .loader-section .loader-section.section-right {
  right: 0;
}

/* Loaded styles */
.loaded #loader-wrapper .loader-section.section-left {
  /* Chrome, Opera 15+, Safari 3.1+ */
  /* IE 9 */
  transform: translateX(-100%);
  /* Firefox 16+, IE 10+, Opera */
  /* Android 2.1+, Chrome 1-25, iOS 3.2-6.1, Safari 3.2-6  */
  transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  /* Chrome 26, Firefox 16+, iOS 7+, IE 10+, Opera, Safari 6.1+  */
}

.loaded #loader-wrapper .loader-section.section-right {
  /* Chrome, Opera 15+, Safari 3.1+ */
  /* IE 9 */
  transform: translateX(100%);
  /* Firefox 16+, IE 10+, Opera */
  /* Android 2.1+, Chrome 1-25, iOS 3.2-6.1, Safari 3.2-6  */
  transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  /* Chrome 26, Firefox 16+, iOS 7+, IE 10+, Opera, Safari 6.1+  */
}

.loaded #loader {
  opacity: 0;
  /* Android 2.1+, Chrome 1-25, iOS 3.2-6.1, Safari 3.2-6  */
  transition: all 0.3s ease-out;
  /* Chrome 26, Firefox 16+, iOS 7+, IE 10+, Opera, Safari 6.1+  */
}

.loaded #loader-wrapper {
  visibility: hidden;
  /* Chrome, Opera 15+, Safari 3.1+ */
  /* IE 9 */
  transform: translateY(-100%);
  /* Firefox 16+, IE 10+, Opera */
  /* Android 2.1+, Chrome 1-25, iOS 3.2-6.1, Safari 3.2-6  */
  transition: all 0.3s 1s ease-out;
  /* Chrome 26, Firefox 16+, iOS 7+, IE 10+, Opera, Safari 6.1+  */
}
