
#blaguss-co2-calculator {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    min-height: 330px;
    position: relative;
}

.co2-grid-item {
    flex: 1; /* Distribute space equally among items */
    /*border: 1px solid #000; !* Border for visualization *!*/
}


.co2-dots {
    border-style: dotted;
    border-color: gray;
    border-image-slice: 33% 33%;
    border-image-repeat: round;
    border-width: 0 0 0 10px;
    position: absolute;
    left: 10px;
    width: 10px;
    height: 100%;
}

.co2-dots-top {
    top: 0;
}

.co2-dots-top {
    top: 0;
}

.co2-dots-bottom {
    z-index: 20;
    top: 100%;
}


.co2-input-item {
    display: flex;
    align-items: center;
    position: relative;
}

#co2-departure-wrapper{
    margin-bottom: 50px;
}

.co2-input {
    /*margin: 30px 0; !* increase vertical margin to see that I scale with different sizes *!*/
    width: 70%;
}

.co2-input-icon {
    font-size: 32px;
    margin-right: 16px;
    background: white;
    color: gray;
    z-index: 10;
}

.co2-icon-img {
    width: 30px;
}

#co2-calculate, #co2-new-calculation {
    margin-top: 40px;
    width: 350px;
}

#blaguss-animation {
    display: flex;
    flex-direction: column;
    gap: 0 0;
}

#co2-bus-select-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px 10px;
}

.co2-headline-text {
    margin: 0
}

.co2-bus-select-item {
    border: 2px solid #ffffff;
    height: 170px;
    width: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #b0b0b0;
    cursor: pointer;
    gap:10px;
    -webkit-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, -webkit-box-shadow .15s ease-in-out;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, -webkit-box-shadow .15s ease-in-out;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, -webkit-box-shadow .15s ease-in-out;

}

.co2-bus-select-item-hover, .co2-bus-select-item-clicked, co2-bus-select-item-hover img {
    border: 2px solid #d8252c;
    filter: brightness(0) saturate(100%) invert(32%) sepia(78%) saturate(3924%) hue-rotate(340deg) brightness(83%) contrast(106%);
    /*-webkit-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, -webkit-box-shadow .15s ease-in-out;*/
    /*transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, -webkit-box-shadow .15s ease-in-out;*/
    /*transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;*/
    /*transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, -webkit-box-shadow .15s ease-in-out;*/
}

.co2-bus-select-item-clicked p, .co2-bus-select-item-hover p, .co2-bus-select-item-hover span, .co2-bus-select-item-clicked span {
    color: #d8252c !important;
}

.co2-bus-img {
    width: 70%;
}

#blaguss-co2-calculator p {
    text-transform: uppercase;
    /*color: #d8252c;*/
    color: #b0b0b0;
    margin: 0;
}

.co2-result-wrapper img {
    width: 80%;
    min-height: 220px;
    /*margin-bottom: 3%;*/
    /*margin-top: -8px;*/
}


#co2-result-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    height: 100%;
    justify-content: flex-start;
    /*margin-top: 13px*/
}

.co2-calculation-result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px 0;

}


.co2-bar-wrapper {
    display: flex;
    width: 80%;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0 10px;
    color: #b0b0b0;
}

.co2-bar {
    width: 0;
    height: 25px;
    background-color: #e9ecef;
    top: 0;
    left: 0;
    animation: progress-animation 5s linear forwards;
}

.co2-bus-text-wrapper span{
    font-size: 0.9rem;
}

.co2-saved-text{
    color: #558a50;
}


.co2-bar-wrapper {
    opacity: 0;
}

.co2-bar-hvo {
    background-color: #558a50;
}

.co2-emissions-info-text {
    min-width: 20%;
    text-align: right;
    font-size: 0.8vw;
}

co2-emissions-info-text:first-child{
    color:#454545;
}

.co2-bar-wrapper p {
    width: 100%;
}

.co2-emissions-headline {
    width: 100%;
    text-align: left;
}


.co2-calc-information{
    margin-top: 10px;
    color: #454545;
    font-size: 0.7rem;
}

#co2-loader {
    background: #ffffff;
    position: absolute;
    top: -3px;
    width: 100%;
    height: 101%;
    z-index: 100;
    align-items: center;
    justify-content: center;
    display: none;
}
.co2-emission-headline-hvo{
    color:#558a50;
}

.co2-emission-headline-diesel{
    color: #454545;
}

#co2-input-wrapper {
    display: flex;
    flex-direction: column;

}


.co2-bus-img {
    filter: brightness(0) saturate(100%) invert(85%) sepia(0%) saturate(597%) hue-rotate(220deg) brightness(83%) contrast(93%);
}

.co2-loader-icon {
    width: 48px;
    height: 48px;
    border: 5px solid #d8252c;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.co2-bus-info-wrapper{
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    padding-top: 30px;
}

.co2-bus-info-wrapper span{
    padding-bottom: 10px;
}

.co2-bus-info-wrapper img {
    height: 70px;
    max-height: 80px;
    width: 23%;
    object-fit: scale-down;
}

.co2-calc-information{
    width: 80%;
}

#co2-arrival-wrapper{margin-bottom: 20px}

@media only screen and (max-width: 992px) {
    .co2-bus-text-wrapper {
        font-size: 0.8em;
    }

    .co2-result-wrapper img {
        margin: 0;
    }

    .co2-bus-select-item{
        width: 110px;
        height: 110px;
    }

    .co2-bar-wrapper{
        width: 100%;
    }

     .co2-bar{
        max-width: 60% !important;
    }

    .co2-bus-text-wrapper span{
        font-size: 0.6rem;
    }

    .co2-calc-information{
        width: 100%;
    }
}




#co2-error-message{
    color:#d8252c
}

@media only screen and (max-width: 750px) {
    #blaguss-co2-calculator {
        flex-direction: column;
    }

    .co2-input {
        width: 80%;
    }

    #co2-calculate, #co2-new-calculation {
        width: 100%;
    }

    .co2-grid-item blaguss-animation {
        margin-top: 20px;
    }

    .co2-bus-text-wrapper {
        font-size: 0.7rem;
    }

    #blaguss-animation {
        gap: 0;
        margin-top: 20px;

    }

    .co2-container-headline {
        margin-top: 20px;
    }

    .co2-emissions-info-text {
        font-size: 0.9rem;
    }

    .co2-bus-img {
        width: 60%;
    }
}

/***************LAYOUT FROM ***************/