:root {
    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --gradient-color-red: linear-gradient(90deg,
            hsl(7, 89%, 46%) 15%,
            hsl(11, 93%, 68%) 100%);
    --gradient-color-orange: linear-gradient(90deg,
            hsl(22, 89%, 46%) 15%,
            hsl(54, 90%, 45%) 100%);
    --gradient-color-yellow: linear-gradient(90deg,
            hsl(54, 89%, 46%) 15%,
            hsl(92, 90%, 45%) 100%);
    --gradient-color-green: linear-gradient(90deg,
            hsl(92, 89%, 46%) 15%,
            hsl(92, 90%, 68%) 100%);
    --text-color: #fff;
    --body-color: hsl(0, 1%, 14%);
    --container-color: hsl(0, 2%, 22%);

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Rubik", sans-serif;

    --biggest-font-size: 3.5rem;
    --bigger-font-size: 2.0rem;
    --normal-font-size: 1.25rem;
    --smaller-font-size: 0.75rem;
}

/*============ BATTERY CARD ==========*/
.battery__card {
    position: relative;
    height: 240px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    margin: 0 auto;
}

.battery__text {
    font-size: var(--normal-font-size);
    margin-bottom: 0.5rem;
}

.battery__percentage {
    font-size: var(--biggest-font-size);
    margin: 1rem 0;
}

.battery__percentage span{
    font-size: var(--bigger-font-size);
    padding-left: 0.5rem;
}

.battery__status {
    position: absolute;
    bottom: 0.4rem;
    display: flex;
    align-items: center;
    column-gap: 0.8rem;
}

/* Full battery icon color */
.green-color {
    background: var(--gradient-color-green);
}

/* Battery charging animation */
.animated-green {
    background: var(--gradient-color-green);
    animation: animated-charging-battery 1.2s infinite alternate;
}

/* Low battery animation */
.animated-red {
    background: var(--gradient-color-red);
    animation: animated-low-battery 1.2s infinite alternate;
}

.animated-green,
.animated-red,
.green-color {
    -webkit-background-clip: text;
    color: transparent;
}

@keyframes animated-charging-battery {
    0% {
        text-shadow: none;
    }

    100% {
        text-shadow: 0 0 6px hsl(92, 90%, 68%);
    }
}

@keyframes animated-low-battery {
    0% {
        text-shadow: none;
    }

    100% {
        text-shadow: 0 0 8px hsl(7, 89%, 46%);
    }
}

.battery__pill {
    position: relative;
    width: 75px;
    height: 180px;
    background-color: var(--container-color);
    box-shadow: inset 20px 0 48px hsl(0, 0%, 16%),
        inset -4px 12px 48px hsl(0, 0%, 56%);
    border-radius: 3rem;
    justify-self: flex-end;
}

.battery__level {
    position: absolute;
    inset: 2px;
    border-radius: 3rem;
    overflow: hidden;
}

.battery__liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: var(--gradient-color-red);
    box-shadow: inset -10px 0 12px hsla(0, 0%, 0%, 0.1),
        inset 12px 0 12px hsla(0, 0%, 0%, 0.15);
    transition: 0.3s;
}

.battery__liquid::after {
    content: "";
    position: absolute;
    height: 8px;
    background: var(--gradient-color-red);
    box-shadow: inset 0px -3px 6px hsla(0, 0%, 0%, 0.2);
    left: 0;
    right: 0;
    margin: 0 auto;
    top: -4px;
    border-radius: 50%;
}

/* Liquid battery with gradient color */
.gradient-color-red,
.gradient-color-red::after {
    background: var(--gradient-color-red);
}

.gradient-color-orange,
.gradient-color-orange::after {
    background: var(--gradient-color-orange);
}

.gradient-color-yellow,
.gradient-color-yellow::after {
    background: var(--gradient-color-yellow);
}

.gradient-color-green,
.gradient-color-green::after {
    background: var(--gradient-color-green);
}

.table_row {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.table_item i {
    margin-right: .5rem;
}

.table_item {
    padding-right: 1rem;
}

.table_devider {
    border-bottom: 1px dotted rgb(255, 255, 255);
    flex-grow: 2;
    margin-bottom: 3px;
}

.table_value {
    white-space: nowrap;
    padding-left: 1rem;
}

.table_unit {
    white-space: nowrap;
    width: 2rem;
    text-align: end;
    padding-left: 0.5rem;
}

hr {
    margin-bottom: 2rem;
}