@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.container {
    display: flex;
    gap: 5px;
}

#battery {
    box-sizing: content-box;
    height: 7.8em;
    width: 17.5em;
    border: 5px solid #fff;
    margin: auto;
    border-radius: 0.6em;
    position: relative;
    display: grid;
    place-items: center;
    transform: rotate(-90deg);
}

#battery:before {
    position: absolute;
    content: "";
    height: 5em;
    width: 1.1em;
    background-color: #fff;
    margin: auto;
    top: 0;
    bottom: 0;
    right: -1.3em;
    border-radius: 0 5px 5px 0;
}

#charge {
    position: absolute;
    height: 6.5em;
    width: 16.25em;
    background: #fff;
    top: 0.6em;
    left: 0.6em;
    border-radius: 5px;
}

#charge__level {
    position: absolute;
    font-size: 2em;
    font-weight: 500;
    color: #087408;
    transform: rotate(90deg);
}

#charge-time {
    text-align: center;
    font-size: 1.7em;
    margin-top: 68px;
}

.svg-charge {
    display: none;
    z-index: 100;
}

.active {
    animation: charge-animation 3s infinite linear;
}

@keyframes charge-animation {
    0% {
        width: 0;
    }

    100% {
        width: 16.25em;
    }
}