:root{
    --bsSize: 1em;
    --bsOffset: 0.5em;
}


@media (max-width: 600px) {
    :root{
        --bsSize: 0.8em;
        --bsOffset: 0.4em;
    }
        
}

.red {
    color: #ff2929;
}

.redBorder {
    border: 1px rgb(255, 41, 41) solid;
}

.green {
    color: #66bb6a;
}

.greenBorder {
    border: 1px #66bb6a solid;
}

.whiteBorder {
    border: 1px #ffffff solid;
}

.containerPowerFlow {
    position: relative;
    width: min(100vw, 400px);
    height: 400px;
    margin: auto;
    margin-top: 12vh;
}

.circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #292942;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #ffffff;
    font-size: 16px;
    text-align: center;
    border: 2px solid #ffffff;
}

.solar {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-color: #fdd835;
}

.grid {
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
    border-color: #673ab7;
}

.grid-arrow-container {
    width: 17%;
    left: 28%;
}

.home {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-color: #ff7043;
}

.horizontal-arrow-container{
    display: flex;
    position: absolute;
    height: 1em;
    top: calc(50% - var(--bsOffset));
    line-height: 0;
    z-index: -1;
}

.vertical-arrow-container{
    display: flex;
    position: absolute;
    width: 1em;
    left: calc(50% - var(--bsOffset));
    line-height: 0;
    z-index: -1;
}

.home-arrow-container {
    bottom: 35%;
    height: 13%;
}

.solar-arrow-container {
    top: 32.5%;
    height: 13%;
}

.solar-arrow {
    position: absolute;
}

.battery-arrow-container {
    width: 17%;
    right: 27%;
}


.battery {
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    border-color: #66bb6a;
}



.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #eaeaea;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%);
    color: #ffde00;
    font-size: 24px;
    z-index: 1;
    box-shadow: 0 0px 4px rgb(208, 255, 78);

}

.line {
    position: absolute;
    background-color: #ffffff;
}

#solar-line {
    top: 110px;
    left: 50%;
    height: 100px;
    transform: translateX(-50%);
    z-index: -1;
}

#grid-line {
    top: 50%;
    left: 120px;
    width: 60px;
    transform: translateY(-50%);
    z-index: -1;
}

#home-line {
    bottom: 90px;
    left: calc(50% - 1px);
    height: 100px;
    transform: transla4teX(-50%);
    z-index: -1;
}

#battery-line {
    top: 50%;
    right: 80px;
    width: 100px;
    transform: translateY(-50%);
    z-index: -1;
}



.battery-arrow:nth-child(2) {
    animation-delay: 2s;
}

.battery-arrow {
    position: absolute;
    right: 0px;
}


.home-arrow:nth-child(2) {
    animation-delay: 2s;
}

.home-arrow {
    position: absolute;
}



.grid-arrow:nth-child(2) {
    animation-delay: 2s;
}

.grid-arrow {
    position: absolute;
}


@keyframes moveAndDisappear_toLeft {
    0% {
        right: 0px;
    }

    100% {
        right: 100%;
    }
}

@keyframes moveAndDisappear_toTop {
    0% {
        bottom: 0px;
    }

    100% {
        bottom: 100%;
    }
}

@keyframes moveAndDisappear_toBottom {
    0% {
        top: 0px;
    }

    100% {
        top: 100%;
    }
}


@keyframes moveAndDisappear_toRight {
    0% {
        left: 0%;
    }

    100% {
        left: 100%;
    }
}



.icon {
    font-size: 30px;
}

.label {
    margin-top: 10px;
    font-size: 14px;
}

.value {
    margin-top: 5px;
    font-weight: bold;
    font-size: 18px;
}

.valueSmall {
    margin-top: 2px;
    font-weight: bold;
    font-size: 14px;
}

/* Apply the fade-out animation */
.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;   
}
.footer img {
    width: 160px;
    vertical-align: middle;
}

.bullseye{
    width: var(--bsSize);
}
