body {
  background-color: #333;
  color: white;
}

#lora_msg_list_wrap {
  width: 27em;
  margin: auto;
  border: 1px solid rgb(208 208 208);
}

@keyframes newani {
  to {background-color: rgb(118 73 21);}
  from {background-color: rgb(118 73 21 / 20%);}
}
@keyframes oldani {
  from {background-color: rgb(118 73 21);}
  to {background-color: rgb(200 200 200 / 2%);}
}
@keyframes highliht_out_ani {
  from {color: rgb(0, 255, 187);}
  to {color: rgb(200 200 200);}
}

#node-info {
  width: 27%;
  margin: auto;
  margin-top: -1px;
  overflow: hidden;
  border: 1px solid gray;
  border-bottom-right-radius: 9px;
  border-bottom-left-radius: 9px;
  /*border-right: 1px solid white;*/

  & .node.down {
    background-color: orange;
  }

  & #node-0 {
    border-bottom: 1px solid gray;
  }
  & .node-id {
    display: inline-block;
    width: 2em;
    text-align: right;

    font-weight: bold;
  }
  & .status {
    display: inline-block;
    width: 2em;
    text-align: center;
  }
  & .time {
    display: inline-block;
    width: 4em;
    text-align: right;
  }

  & .node {
    transition: 5s linear all;
    -o-transition: 5s linear all;
    -moz-transition: 5s linear all;
    -webkit-transition: 5s linear all;
  }
  & .node.highlight {
    color: rgb(0, 255, 187);
    transition: 0.1s linear all;
    -o-transition: 0.1s linear all;
    -moz-transition: 0.1s linear all;
    -webkit-transition: 0.1s linear all;
  }
}

#lora_msg_list {

  .lora_msg {
    padding: 0;
  }
  .lora_msg:not(:first-child) {
    border-top: 1px solid rgb(236 236 236);
  }
  .lora_msg:nth-child(even) {
    background-color: #4f4f4f;
  }

  .lora_msg.new {
    background-color: rgb(118 73 21);
    animation-name: newani;
    animation-duration: 1s;
  }
  .lora_msg.old {
    background-color: rgb(200 200 200 / 2%);
    animation-name: oldani;
    animation-duration: 30s;
  }

  .content {
    padding-bottom: 0.5em;
    color: #dfdfdf;

    & .label {
      width: 58%;
      height: 32px;
      font-size: 1em;
      font-weight: bold;
      display: inline-block;
      float: left;
      border-radius: 0px;
      background: #f2f2f22e;
      color: #eee;

      margin: 0 0 0 0;
      margin-bottom: 0.3em;
    }

    & .label.node-no {
      width: 9%;
      margin-right: 1.5%;
      padding-left: 0.4em;
      padding-right: 0.4em;
    }

    & .distance {
      width: 30%;
      height: 32px;
      float: right;
      font-size: .9em;
      display: inline-block;
      padding-top: 0.75em;
      margin-bottom: 0.3em;
      overflow: hidden;
    }

    & .datetime {
      display: inline-block;
      clear: both;

      & .date {
/*        font-weight: bold;*/
        margin-right: 1em;
      }

      & .time {
        font-weight: bold;
        margin-left: 1em;
      }
    }

    & .rssi {
      float: right;
      /* position: relative; */
      display: inline-block;
      margin-right: 1em;
    }
  }
}

#map {
  width: 100%;
  height: 400px;
}

.material-symbols-outlined {
  font-size: 32px;
}

.marker.maplibregl-marker {
  display: block;
  border: none;
  cursor: pointer;
  padding: 0;
  /*background-image: url("/img/sensors.png");*/
  width: 32px;
  height: 32px;
/*  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background: rgba(255, 0, 150, 0.3), url("/img/sensor.svg");
*  background-color: orange;*/
}
.marker.maplibregl-marker .msg {
    display: inline-block;
    position: relative;
    width: 5em;
    border-radius: 10px;
    top: -11px;
    background: white;
    text-align: center;
    margin-left: -50%;
    margin-right: -50%;
    color: black;
}

.marker.maplibregl-marker.lvl-a .icon { color: hsl(120 90% 50%); }
.marker.maplibregl-marker.lvl-b .icon { color: hsl(96 90% 42%);  }
.marker.maplibregl-marker.lvl-c .icon { color: hsl(72 90% 42%);  }
.marker.maplibregl-marker.lvl-d .icon { color: hsl(48 90% 42%);  }
.marker.maplibregl-marker.lvl-e .icon { color: hsl(24 90% 42%);  }
.marker.maplibregl-marker.lvl-f .icon { color: hsl(0 90% 42%);   }

.marker.maplibregl-marker.time-a .msg { background: hsl(120 69% 69%); }
.marker.maplibregl-marker.time-b .msg { background: hsl(96 69% 69%);  }
.marker.maplibregl-marker.time-c .msg { background: hsl(72 69% 69%);  }
.marker.maplibregl-marker.time-d .msg { background: hsl(48 69% 69%);  }
.marker.maplibregl-marker.time-e .msg { background: hsl(24 69% 80%);  }
.marker.maplibregl-marker.time-f .msg { background: hsl(0 69% 95%);   }

#log1, #log2 {
  position: absolute;
  top: 13px;
  height: 42px;
  width: 30%;
  border: 1px solid gray;
  overflow: hidden;
  font-size: 0.8em;
}
#log1 {
  left: 13px;
  border-bottom-right-radius: 9px;
}
#log2 {
  right: 13px;
  border-bottom-left-radius: 9px;
}

.ui.header { color: whitesmoke; }