header{
  display: flex;
  align-items: center;
  height: 42px;
  color:white;
  background-color: #f6851c;
  justify-content: center;
}
main{
  width:100%;
  max-width: 520px;
  margin:0 auto;
  padding: 0px 8px;
}
#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;

}
