
@font-face {
  font-family: 'Montserrat';
  src:  url('/assets/fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: bold;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src:  url('/assets/fonts/Montserrat-Light.ttf') format('truetype');
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src:  url('/assets/fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src:  url('/assets/fonts/Poppins-Bold.ttf');
  font-weight: bold;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src:  url('/assets/fonts/Poppins-Regular.ttf');
  font-weight: normal;
  font-display: swap;
}


:root {
  /* --ms-colour-topbanner: #444346;
  --ms-background: #ffffff;
  --ms-colour-boxes: #758295;
  --ms-colour-circles: #009688;
  --ms-colour-lines: #758295;
  --ms-colour-footer: rgba(45,26,82,0.9);
  --boost-text-black: #444346;
  --ms-colour-header: #758295; */
  --dark-grey: #444444;
  --boost-text-black: #444;
  --boost-lime: rgb(203,255,34);
  --boost-darkblue: rgba(45,26,82);
  --boost-midblue: rgb( 66 , 47 , 102 );
  --boost-lightblue: rgb( 201 , 197 , 211 );
  --boost-paleblue: rgb( 234 , 234 , 246 );
  --boost-washcreme: rgb( 246 , 243 , 226 );
  --boost-stone: rgb( 231 , 230 , 238 );
  --boost-cement: rgba(220, 220, 227, 1);
  --boost-carbon: #2C292A;
  --boost-teal: #4FBC9C;
  --boost-darkblue: rgba(45,26,82);
  --boost-yellow: rgb(255, 229, 60);
  --boost-green: rgb(4, 112, 75);
  --boost-wash: rgb(249, 245, 239);
}

body {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: normal;
  margin: 0;
  background: url( '/assets/flash.png' ), #1e0a49;
  background-position: left -50px bottom -100px;
  background-repeat: no-repeat;
  background-size: 400px;
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: "Poppins";
}

h1 {
  color: white;
  size: 50px;
  font-weight: normal;
  padding-left: 50px;
}

.route h1 {
  /* font-weight: bold; */
  font-size: 36px;
}

.route h1 i {
  margin-right: 20px;
}


.biq-phone {
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  margin: 0;
  height: 900px;
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For Internet Explorer and Edge */

}


@media (min-width: 800px) {

  .biq-phone {
    border: 15px solid black;
    border-radius: 60px;
    margin: 20px auto;
    width: 90vw;
    max-width: 400px;
  }
}


.biq-phone::-webkit-scrollbar {
  display: none; /* For WebKit browsers */
}



.biq-bg {
  /* background: linear-gradient(90deg, #047626 0%, #1DB34A 100%); */
  background: linear-gradient(180deg, #2d1a52 0%, #5e37ae 100%);
  margin: 0;

  padding-bottom: 50px;

}



.biq-levelgauge-bg {
  background: #f7f6fe;
  padding: 10px;
  border-radius: 10px;
  margin: 10px;
}
.biq-levelgauge-shadow {
  border-radius: 10px;
  background: #cce7d8;
  padding: 0px;
}
.biq-levelgauge-fg {
  background: linear-gradient(90deg, #047626 0%, #1DB34A 100%);
  border-radius: 10px;
  text-align: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  line-height: 50px;
  padding: 7px 0 0 0;
}

.container {
  background: white;
  box-sizing: content-box;
  margin:20px 10px;
  min-width: 30px;
  min-height: 10px;
  border-radius: 10px;
  padding: 0 0 15px 0;
  /* font-family: 'Nexa', sans-serif; */
  font-size: 14px;
  color: #444;
}

.container h2 {
  font-weight: normal;
  font-size:14px;
  padding: 10px;
}

.container .biq-battery-pictures img {
  width: calc( 100% - 20px );
  min-width: 300px;
  margin: 0 10px;
  object-fit: cover;
}

canvas {
  width: 100%;
}
  
canvas#canvasbattery {
  /* width: 100%; */
  display: block;
  margin: 0 auto;
  width: auto;
}



table.biq-battery {
  margin: 0 auto;
}

table.biq-battery td {
    padding: 4px 4px;
    font-size: 14px;
    color: #444;
}


.biq-battery .symbol img {
  width: 16px;
  height: 16px;
}

table.biq-battery td.key {
  font-weight: bold;
}

table.biq-battery td.value{
  text-align: right;
}

.biq-leveldetail-batt {
  background: #cce7d8;
  padding: 10px;
  border-radius: 10px;
  margin: 10px auto;
  padding: 10px;
  width: 175px;
  height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.biq-leveldetail-batt > div {
  width: auto;
  background: linear-gradient(90deg, #047626 0%, #1DB34A 100%);
  height: 30px;
  line-height: 30px;
  padding-left: 10px;
  color: white;
  margin: 2px;
  border-radius: 5px;
}

.biq-leveldetail-batt > div.cell-error {
  background: linear-gradient(90deg, #761104 0%, #b3341d 100%);
}

.battery-list {
  margin: 30px 0;
  padding: 20px;
  background: var( --boost-paleblue );
  border-radius: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.battery-grid .battery {
  display: inline-block;
  background: #f7f6fe;
  border: 1px solid grey;
  margin: 5px;
  width: 100px;
  height: 85px;
  padding: 5px;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.25s;
}
.battery-grid .battery:hover {
  transform:scale( 1.1 );
}
.battery-grid .battery.selected {
  outline: 4px solid #1e0a49;
}

.battery-grid .battery.battery-volt-good {
  background: #bfb;
}
.battery-grid .battery.battery-volt-mid {
  background: #ffb;
}
.battery-grid .battery.battery-volt-low {
  background: #fbb;
}

.battery-grid {
  text-align: center;
}

.battery-grid .battery .battery-gauge {
  background: linear-gradient(90deg, #047626 0%, #1DB34A 100%);
  width: 75%;
  height: 20px;
  border-radius: 5px;
  margin: 5px;
  font-size: 12px;
  line-height: 20px;
  font-weight: bold;
  color: white;
}

.battery-grid .battery .battery-name {
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.battery-grid .battery .battery-volt {
  font-size: 12px;
  text-align: center;
}
.battery-grid .battery .battery-mac {
  font-size: 10px;
  text-align: center;
}


.menu {
  font-size: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.menu > a, .menu > a:visited, .menu > a:active {
  color: white;
  margin: 20px;
  text-decoration: none;
}
.menu > a {
  font-size: 14px;
}
.menu > a i {
  font-size: 30px;
  margin: 10px;
}

.menu > a:active {
  color: var( --boost-lightblue );
}



@media (max-width: 1200px) {
  .page-logo {
    text-align: center;
    padding: 30px;
  }
  .page-logo img {
    width: 100px;
  }

}



@media (min-width: 1200px) {

  .routes > .route {
    padding-top: 20px;
    margin-left: 300px;
    margin-right: 40px;
  }


  .page-logo {
    position: fixed;
    top: 40px;
    left: 30px;

  }
  .page-logo img {
    width: 150px;
  }


  .menu {
    position: fixed;
    top: 30px;
    left: 0;
    bottom: 0;
    width: 200px;

  }

  .battery-list-container {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: margin-right 0.5s;
  }
  body.phone-popup-active .battery-list-container { /* Phone or detail panel is active */
    /* margin-right: 440px; */
  }

  .biq-phone-container {
    position: fixed;
    top: 120px;
    right: 10px;
    bottom: 00px;
    /* border-radius: 20px; */
    border: 0;
    padding: 0 0 0 10px;
    overflow: hidden;
    /* overflow-y: auto; */
    /* box-shadow: -6px 0px 3px rgba(235, 235, 235, 0.12); */
    /* box-shadow: initial; */
    border-left: 1px solid grey;
    width: 0;
    transition: width 0.5s, box-shadow 0.5s, border-radius 0.5s;
    z-index: 1010;

    background-color:#1e0a49;
  }

  body.phone-popup-active .biq-phone-container {
    width: 400px;
    box-shadow: -3px 0 3px rgba(0, 0, 0, 0.4);
    /* border-radius: 20px; */
  }

  .biq-phone {
    border: 0;
    height: calc( 100vh - 20px );
    margin: 0;
    border-radius: 0;
  }
  .biq-bg {
    background: transparent;
  }

  .routes.single-battery .biq-phone-container {
    /* position: relative; */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: initial;
  }

  #map-graph-container {
    position: relative;
    border-radius: 20px;
    height: calc( 100vh - 150px );
    overflow: hidden;
  }


  #map {
    overflow: hidden;
    width: auto;
    height: 100%;
    background: grey;
  }
  #map-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba( 255 , 255 , 255 , 0.0 );
    z-index: 1000;
    transition: opacity 0.25s;
    overflow-y: auto;
    padding: 20px;
    opacity: 0;
  }
  #map-overlay.active {
    display: block;
    opacity: 1;
    background-color: rgba( 128 , 128 , 128 , 0.5 );
  }

  #graph {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba( 64 , 0 , 0 , 0.25 ); */
    z-index: 1000;

  }

}

.routes.single-battery .battery-list-container {
  display: none;
}

.routes.single-battery .menu {
  display: none;
}

.routes.single-battery .page-logo {
  display: none;
}

.routes.single-battery .biq-phone-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: initial;
  background-color: white;
}