header{
  display: flex;
  align-items: center;
  height: 21px;
  font-size:13px;
  color:white;
  background-color: #1685fc;
  justify-content: center;
}
body{background: #f4f4f9;}
main{
  width:100%;
  /* max-width: 520px; */
  margin:0 auto;
  padding: 0px 0px;
}
#buttonbar{
    position: fixed;
    bottom:0px;
    height: 62px;
    border-top:1px solid #ddd;
    display: flex;
    width: 100vw;
    justify-content: center;
    background:white;
}
#qrcodescannerwrapper{
    position: absolute;
    top:10px;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 82px;
    text-align: center;
}
#qrcodescanner{
  background-image:url('../scan3.svg');
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 1/1;
  height: 62px;
  border-radius: 31px;
  border:1px solid #f0f0f0;
  background-color:#59bd55;
}

.charged_kw{
  background-image:url('../kwb.svg');
  padding-left: 18px;
  background-size: 15px;
  background-position: left 2px center;
  background-repeat: no-repeat;
  margin-right:16px;
}
.charged_at{
  background-image:url('../timer.svg');
  padding-left: 18px;
  background-size: 15px;
  background-position: left 2px center;
  background-repeat: no-repeat;
  margin-right:16px;
}
.charged_cr{
  background-image:url('../coin.svg');
  padding-left: 18px;
  background-size: 15px;
  background-position: left 2px center;
  background-repeat: no-repeat;
}
#charge_record .item{
  display: flex;
  align-items: center;
  margin: 6px auto;

}
#charge_record .item .data{
  flex: 1 1 0;
  padding:2px 8px;
}
.charged_info{
  display: flex;
  justify-content:flex-start;
  font-size:16px;
  color:#444;
  margin-top:8px;
}
.location{
  font-weight: bold;
  color:#333;
  font-size:100%;
}

.type{
  aspect-ratio: 1/1;
  background-image:url('../kw.svg');
  background-size: 38px;
  background-position: center;
  background-repeat: no-repeat;
  height: 48px;
  border-radius: 6px;
}
.type.fast{
  background-color:#edbb45;
  background-image:url('../kw.svg');
}
.type.normal{
  background-color:#59bd55;
  background-image:url('../kw.svg');
}

#usercard{
  width:90%;
  /* position: absolute; */
  aspect-ratio: 1.68/1;
  border:1px solid #f0f0f0;
  background:#fafafa;
  border-radius: 9px;
  margin:12px auto;
  /* top:-16px; */
  /* left: 50%;
  transform: translate(-50%, -50%); */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-image:url(../cardbg.jpg?a=1);
  background-size: cover;
  background-position: center;
}
.cardinfo{
  display:flex;
  justify-content:space-around;
}
.cardid{
  width: 100%;
  text-align: center;
  line-height: 2;
  font-weight: bold;
  margin-bottom: 24px;

}
.cardinfo label{
  color:#666;
  font-size:15px;
}
.cardinfo div{
  font-weight: bold;
  font-size:16px;
}
#messageholder{
  display: none;
  position: fixed;
  top:0px;
  width: 100vw;
  height: 100vh;
  background-color:rgba(20,20,20,0.4);
  z-index: 1;
  left:0px;
}
#juzscanedcode{
  display: none;
  padding:24px;
  width: 75%;
  margin:0 auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:white;
  min-height: 30vh;
  border-radius: 12px;
}
#juzscanedcode select{
  width: 100%;
  height: 32px;
  text-align: center;
  margin-top:12px;
  border-radius: 4px;
}
.confirmbutton{
  height: 32px;
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f6851c;
  margin-top:18px;
  color: #fafafa;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;

}
#selectedcharge{
  display: none;
  padding:24px;
  width: 75%;
  margin:0 auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:white;
  min-height: 30vh;
  border-radius: 12px;
}

#videoholder{
  display: none;
  position: fixed;
  top:0px;
  width: 100vw;
  height: 100vh;
  background-color:rgba(20,20,20,0.4);
  z-index: 1;
  left:0px;
}

#video{
  width: 85%;
  margin:0 auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#closescannerbutton{
  height: 32px;
  width: 32px;
  position: absolute;
  top:24px;
  right:20px;
  background:#222;
  color:#f9f9f9;
  border-radius: 6px;
  font-weight: bold;
  font-size:18px;
  display: flex;
  justify-content: center;
  align-items: center;

}

#chargercardholder{
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.chargercard{
  aspect-ratio: 1.42/1;
  flex: 0 0 48%;
  max-width: 220px;
  margin: 1%;
  border:1px solid #aaa;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding:8px;
  cursor: pointer;
}
.chargercard .icons{
  display: flex;
  justify-content: space-between;
}
.chargercard .chargerid{
  font-size:15px;
  color:#555;
}
.chargercard .chargername{
  font-weight: bold;
  font-size:15px;
  margin-top:2px;
  margin-bottom:2px;
  color:#222;
}
.chargercard .chargerlocation{
  font-size:15px;
  margin-top:2px;
  margin-bottom:2px;
  color:#555;
}
.chargericon{

  border:1px solid #f0f0f0;
  border-radius: 9px;
  height: 42px;
  width: 42px;
  background-repeat: no-repeat;
  background-image:url(../assets/chargestation.svg?a=1);
  background-size: 100%;
  background-position: center;
}
.chargerstatus{
  border:1px solid #f0f0f0;
  border-radius: 9px;
  height: 42px;
  width: 42px;
  background-repeat: no-repeat;
  background-image:url(../assets/chargestation.svg?a=1);
  background-size: 100%;
  background-position: center;
}
.chargerstatus.charging{
  background-image:url(../assets/charging.gif);
}
.chargerstatus.ready{
  background-image:url(../assets/ready.svg);
    background-size: 80%;
}
.chargerstatus.off{
  background-image:url(../assets/off.svg);
    background-size: 60%;
}
#charger_content_wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top:0px;
  left:0px;
  background:rgba(2,2,2,0.2);
  width: 100%;
  height: 100%;
}

#charger_content_holder{
  width: 100%;
  max-width: 520px;
  height: 100vh;
  max-height: 800px;
  background: #f6f9ff;
}
.charger_content_nav{
  width: 100%;
  display: flex;
  justify-content: space-around;
  position: absolute;
  bottom: 0px;
  background:#fff;
  padding-top:8px;
  padding-bottom:8px;
  border-top:1px solid #f8f8f8;
  font-size:14px;
}
.mainbutton{
  height: 42px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav_button_home, .nav_button_record, .nav_button_setting{
  box-sizing: border-box;
  aspect-ratio: 1/1;
  width: 46px;
  background-repeat: no-repeat;
  background-position: center top 2px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  color:#446;
  background-image:url(../assets/home.svg?a=1);
  background-size: 24px;
}
.nav_button_record{
  background-image:url(../assets/record.svg?a=1);
  background-size: 24px;
}
.nav_button_setting{
  background-image:url(../assets/setting.svg?a=1);
  background-size: 24px;
}
