@import url(https://cdn.materialdesignicons.com/4.4.95/css/materialdesignicons.min.css);


.box {
  /*display: flex;*/
  float:left;
}


body{
 background-color: gray;
}

.column{
  display: inline-flex;

}

.lightpopup {
  background-color: rgba(255, 0, 0, 0.5);
  z-index: -1;
  position: relative;
}

.button {
  cursor: pointer;
  display:inline-block;
  width: 105px;
  height: 105px;
  padding:5px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  margin: 1px;
  position: relative;
  overflow:hidden;
}

.button:last-child {
  margin-right:5px;
}

.button.on {
  background-color: rgba(255, 255, 255, 1);
}


.button-inner {
  display:flex;
  flex-direction:column;
  height:100%;
}

.name {
  display:block;
  font-size: 18px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.4);
  width: 100px;
  margin-top: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-wrap:break-word;
  overflow: hidden;
}

.name.on {
  color: rgba(0, 0, 0, 1);
}

.state {
  position: relative;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.4);
  text-transform: capitalize;
  float: left;
}

.value {
  visibility: hidden;
}

.value.on {
  visibility: visible;
  position: relative;
  margin-left: 5px;
  font-size: 12px;
  color: rgba(255, 0, 0, 1);
  text-transform: capitalize;
}

.state.on {
  color: rgba(0, 0, 0, 1);
}
.state.unavailable {
  color: rgba(255, 0, 0, 1);
}

.stop{
  position: absolute;
  top: 5px;
float:right !important;
right:10px !important;
  height: 35px;
  width: 35px;
 /* background-color: rgb(207, 20, 135);*/
  border-radius: 20px;
}

.temperature{
  position: absolute;
  top: 5px;
float:left !important;
/*right:10px !important;*/
width:100px;
}

.stop span{
  margin-left:5px;
}

.icon {
  display:block;
  height: 40px;
  width: 40px;
  color: rgba(0, 0, 0, 0.3);
  font-size: 30px;
}

.icon.on {
  color: #ffff00;
}

.icon.off {
  color: #707070;
}

i.fas.fa-lightbulb {
  
  text-shadow: 2px 2px 2px #707070;
  font-size: 2em;
}

i.fa-regular.fa-circle-stop{
  
  text-shadow: 1px 1px 1px #707070;
  font-size: 1em;
}

i.fa-solid.fa-temperature-three-quarters{
  
  /*text-shadow: 1px 1px 1px #707070;*/
  font-size: 2em;
}

i.fas.fa-sort-up{
  text-shadow: 2px 2px 2px #707070;
  font-size: 1.5em;
}

i.fas.fa-caret-down{
  text-shadow: 2px 2px 2px #707070;
  font-size: 1.5em;
}


.icon.off {
  color: #cccccc;
}

.circle {
  position: absolute;
  top: 17px;
  left: 10px;
  height: 35px;
  width: 35px;
  background-color: rgba(0, 255, 0, 1);
  border-radius: 20px;
}

.temp {
  position: absolute;
  top: 26px;
  left: 19px;
  font-family: Arial;
  font-size: 14px;
  font-weight: bold;
  color: white;
}

.not-found {
  cursor: pointer;
  float: left;
  width: 110px;
  height: 110px;
  background-color: rgba(255, 0, 0, 1);
  border-radius: 12px;
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.3);
  margin: 3px;
  position: relative;
  padding:5px;
}

.spin {
  animation-name: spin;
  animation-duration: 1000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}