*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Roboto Mono", monospace;
}

.container{
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

#battery{
    position: relative;
    box-sizing: content-box;
    height: 7.8em;
    width: 17.5em;
    border: 0.6em solid #246aed;
    margin: auto;
    border-radius: 0.6em;
    display: grid;
    place-items: center;
}

#battery::before{
    content: '';
    position: absolute;
    height: 5em;
    width: 1.1em;
    background: #246aed;
    margin: auto;
    top: 0;
    bottom: 0;
    right: -1.6em;
    border-radius: 0 0.3em 0.3em 0;
}

#charge{
    position: absolute;
    height: 6.5em;
    width: 16.25em;
    background: #246aed;
    top: 0.6em;
    left: 0.6em;
}

#charge-level{
    position: absolute;
    font-size: 3em;
    font-weight: 500;
}

#charging-time{
    text-align: center;
    font-size: 1.7em;
    margin-top: 1.4em;
}

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

@keyframes charging-time {
    0%{
        width: 0;
    }

    100%{
        width: 15.25em;
    }
}