* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

section.dark {
  background: #161623;
  min-height: 100vh;
}

section::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  background: linear-gradient(-45deg, #b643cd, #e0ebeb);
  border-radius: 50%;
  transform: translate(-150px, -100px);
}

section.dark::before {
  background: linear-gradient(-143deg, #ff5733, #ffc300);
}

section::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  background: linear-gradient(-155deg, #680747, #ff894c);
  border-radius: 50%;
  transform: translate(150px, 150px);
}

section.dark::after {
  background: linear-gradient(25deg, #41d8bf, #f4f56e);
}

.box {
  position: relative;
  width: 240px;
  height: 300px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(25px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.box h3 {
  color: #680747;
  font-weight: 700;
  font-size: 1.2em;
  letter-spacing: 1px;
}

.dark h3 {
  color: #fff;
}

.batteryShape {
  position: relative;
  width: 140px;
  height: 65px;
  margin: 20px 0;
  border: 3px solid #333;
  border-radius: 10px;
}

.dark .batteryShape {
  border: 3px solid #fff;
}

.batteryShape::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  width: 7px;
  height: 16px;
  background: #333;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.dark .batteryShape::before {
  background: #fff;
}

.batteryShape::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.level {
  position: absolute;
  left: 4px;
  top: 4px;
  right: 4px;
  bottom: 4px;
  border-radius: 4px;
  overflow: hidden;
}

.percentage {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #b643cd, #ff894c);
}

.dark .percentage {
  background: linear-gradient(90deg, #41d8bf, #ffc300);
}

.percent {
  color: #b643cd;
  font-size: 2em;
  font-weight: 700;
}

.dark .percent {
  color: #fe8a1a;
}

.toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #161623;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dark .toggle {
  background: #fff;
}

.toggle::before {
  content: "\f186";
  color: #fff;
  font-family: fontAwesome;
}

.dark .toggle::before {
  content: "\f185";
  color: #161623;
}
