#card {

  width: 900px;
  height: 1200px;
  background: rgba(0, 255, 217, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: top left;
  transition: transform 0.05s linear;
  position: absolute;   /* keep anchored */
  top: 0;
  left: 0;
}

.scaleWrapper {
    display: inline-block;   /* allows it to shrink-wrap to content */
    position: relative;
    border: 2px solid black;
    resize: both;            /* allows user resizing */
    overflow: hidden;        /* hides overflow when resizing */
    width: 200px;
    height: 100px;
}


.gauge-value {
  position: absolute;
  width: 90px;         /* same as gauge width */
  height: 120px;
  font-size: 32px;
  text-align: center;
  color: rgb(0, 0, 0);
  background-color: transparent;
  font-weight: bold;
  margin-top: 5px;     /* small gap under gauge */
  align-items: center;
  justify-content: center;

  border: 4px solid gray;
  border-radius: 12px;
}

.liveViewEnhetCard_ActionBtn{
  padding: 10px;
  border-radius: 15px;
  width: 80%;
  max-width: 300px;
  font-size: 1.2rem;
  font-weight: bold;

  background-color: rgba(92, 190, 255, 0.726);
  border: solid black;
  border-width: 2px;

  color: white;
  border: none;
  cursor: pointer;
}
.liveViewEnhetCard_ActionBtn:hover {
  background-color: #15b2ebf0;
}
.liveViewEnhetCard_ActionBtn:active {
  background-color: #004154;
}

.LECA_normal{
  background-color: #2c7d9b8d;
}

.LECA_Active{
  background-color: #001affde;
}


.gauge_container {
  background-color: transparent;
  position: absolute;
  height: 100%;



  border: 2px solid #cccccc00;
  border-radius: 20px;

  display: grid;
  grid-template-rows: auto;

  align-items: center;
  justify-content: center;

}



.liveViewEnhetCard_data_container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 110px;
  background-color: rgb(0, 17, 255);
  align-items: top;
  justify-content: top;
}

.dataDiv {

  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0rem;

  padding: 5px;
}

.box {

  border: 2px solid #999;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  
}

.box:hover {
  transform: scale(1.10); 
  border: 2px solidrgb(112, 222, 255);
  transition: background-color 0.2s ease;
}

.action_box{
  height: 50px;
  width: 50px;
  border: 2px solid #999999;
  border-radius: 20px;
  display: flex;

  color: black;
  background-color: #5ed7f5a3;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  margin-left: -70px;

  font-size: 24px;
  font-weight: bold;
  font-family: 'Roboto', sans-serif;
}

.action_box:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
  transform: scale(1.10); 
  background-color: #9fecfff4;
  transition: box-shadow 0.2s ease-in-out, transform 0.1s ease-in-out;
}



.box_aktiv {
  background-color: #3bcb33;
}
.box_inaktiv {
  background-color: #ffc107;
}
.box_issue {
  background-color: #f44336;
}



button {
  padding: 10px;
  border-radius: 15px;
  width: 80%;
  max-width: 300px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  
}

button:hover {
  background-color: #45a049;
}

.hidden {
  display: none;
}

#login-error {
  color: red;
  text-align: center;
  margin-top: 10px;
}


h5 {
  height: 20px;
}

h4 {
  margin-top: 0px;
}

body {
  background-color: white;
  text-align: center;
  color: #041424;
}
.motsatt{
  color: white;
}

.guage_livedata_container{
  background-color: tomato;
  border: 0px solid #506680 ;
  border-radius: 30px;
  border-style: solid;

  margin: 5px;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 3fr)); 
  justify-content: center;
  align-items: center; 
  
}

.button_open {
  padding: 10px;
  border-radius: 15px;
  width: 100px;
  min-height: 50px;
  max-width: 300px;
  background-color: rgb(27, 117, 252);
  color: white;
  border: none;
  cursor: pointer;
  
}

.btnContainer {
  background-color: rgba(220, 20, 60, 0);
  width: 900px;
  height: auto;
  
  border: black;
  border-style: solid;
  border-width: 0px;

  display: grid;
  grid-template-columns: auto auto auto; 
  gap: 5px; 
  overflow: visible; 
}




/* här är guage: */
.gauge-container {
    background-color: transparent;
    position: relative;
    display: flex;

    justify-content: center;
    align-items: center;
  }

  .gauge {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Start at top */
  }

  .gauge-bg {
    fill: none;
    stroke: #d3d3d3;
    stroke-width: 6;
  }

  .gauge-progress {
    fill: none;
    /*stroke: #506680 ;*/
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
  }

  .gauge-text {
    position: absolute;
    text-align: center;
    border: 3px solid gray;
    border-radius: 10%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .value {
    font-size: 18px;
    font-weight: bold;
  }

  .range {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
  }

