#overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  background-color: #ff0000;
  transition: opacity 0.5s;
}

#overlay.active {
  opacity: 1;
}


@keyframes blink {
  0% { background-color: transparent; }
  50% { background-color: #ff0000; }
  100% { background-color: transparent; }
}

body.blinking {
  animation: blink 1.5s 3;
}


body{
  background-color:#F5F5F5 !important;
}
.card{
  box-shadow: 3px 3px 0px #77777733;
}

.card-header{
  padding: 0px 0px;
  background-color:#ffffff !important;
}

.card-footer{
  padding: 0px 0px;
  background-color:#f1f1f1 !important;
}

.card-footer{
  padding: 8px 5px;
  background-color:#fff !important;
}

.navbar {
  background-color: #009688 !important;
}


.StateOn {
  margin: 0 auto; /* Centralizar horizontalmente */
  box-shadow: 0px 0px 5px #777 inset; /* AlteraÃƒÂ§ÃƒÂ£o: Adicionado "inset" */
  border-radius: 3px;
  width: 80px;
  font-size: 15px;
  font-family: verdana;
  color: #fefefe;
  background-color: #8BC34A;
  text-align: center;
  padding: 2px 3px;
}

.StateOff {
  margin: 0 auto;
  box-shadow: 0px 0px 5px #777 inset; 
  border-radius: 3px;
  width: 80px;
  font-size: 15px;
  font-family: verdana;
  color: #FF5722;
  text-align: center;
  padding: 2px 3px;
}

.status {
  margin: 0 auto;
  border-radius: 3px;
  width: 90%;
  color: #777;
  font-size: 14px;
  font-family: verdana;
  text-align: right;
  padding: 2px 3px;
  margin-bottom: 8px;
}

.cardx {
  box-shadow: 0px 0px 5px #777;
}

.card-title {
  margin-top: 5px;
  text-align: center;
  font-size: 18px !important;
  font-family: monospace;
  color: #607D8B;
}

.pct {
  margin: 0 auto; /* Centralizar horizontalmente */
  box-shadow: 0px 0px 5px #777 inset;
  border-radius: 3px;
  width: 80px;
  font-size: 15px;
  font-family: verdana;
  color: #fefefe;
  background-color: #9E9E9E;
  text-align: center;
  padding: 2px 3px;
}

.battery {
  background-color: #EEEEEE;
  overflow: hidden;
  width: 98%;
  max-width: 260px;
  height: 180px;
  position: relative;
  border: 5px solid #ced4da;
  border-radius: 0px 0px 35px 35px;
  box-shadow: 0px 0px 10px inset;
  margin-left: auto;
  margin-right: auto;
}

.agua {
  background-color: #B2EBF2;
  position: absolute;
  bottom: -5px;
  width: 100%;
  box-shadow: 0px -5px 8px inset;
  padding-top: 0.5%;
  padding-bottom: 0.5%;
  -moz-transition: height 1.2s ease;
  -webkit-transition: height 1.2s ease;
  -o-transition: height 1.2s ease;
  transition: height 1.2s ease;
}

.battery::before {
  box-shadow: 1px 1px 5px #333;
  border-radius: 0px 8px 8px 0px;
  content: "FULL";
  font-family: monospace;
  text-align: center;
  display: block;
  position: absolute;
  top: 15px;
  width: 80px;
  height: 22px;
  background-color: #9e9e9e9e;
  color: #ffffff;
  z-index: 3; /* define um z-index alto para a linha */
}

.battery::after {
  box-shadow: 1px 1px 5px #333;
  border-radius: 0px 8px 8px 0px;
  font-family: monospace;
  content: "CRITICO";
  text-align: center;
  display: block;
  position: absolute;
  bottom: 33px;
  width: 80px;
  height: 22px;
  background-color: #9e9e9e9e;
  color: #ffffff;
}
