body, html, form {
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

.main-container {
    min-height: 100%;
    max-height: 100%;
    min-width: 100%;
    max-width: 100%;
    font-family: Roboto;
}

.form {
    margin: 0 auto;
    width: 100vw;
    z-index: 3;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.d-none {
    display: none !important;
}

.background {
    position: absolute;
    background: #49829F;
    top: 0;
    left: 0;
    right: 0;
    bottom: -20px;
    z-index: 1;
    overflow: hidden;
}

.blue-square {
    width: 290px;
    height: 259px;
    background: #013F6A;
    position: absolute;
    z-index: 2;
    transform: skewX(-40deg);
}

.blue-square.one {
    bottom: 0;
    left: 108px;
}

.blue-square.two {
    bottom: 0;
    right: 127px;
    height: 161px;
}

.blue-square.three {
    bottom: 147px;
    left: -227px;
}

.blue-square.four {
    top: -186px;
    right: -160px;
    width: 363px;
    height: 483px;
}

.blue-square.five {
    top: 0;
    left: 316px;
    width: 290px;
    height: 191px;
}

.logo {
    margin-top: -50px;
    height: auto;
    width: 388px;
}

.steps {
    position: absolute;
    top: 194px;
    width: 690px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.step-line {
    position: absolute;
    height: 10px;
    background: #fff;
    top: 32px;
    left: 0;
    right: 0;
    transition: background 3s ease
}

.step-line.actual {
    background: #F2B879;
    right: 100%;
    transition: right .5s ease;
}
.step-line.actual.two {
    right: 50%;
}
.step-line.actual.three {
    right: 0;
}

.step {
    color: #000;
    background: #fff;
    width: 71px;
    height: 71px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 30px;
    z-index: 3;
    position: absolute;
    transition: background .5s ease, color .5s ease;
    user-select: none;
}

.step:nth-child(3) {
    left: -2px;
}

.step:nth-child(4) {
    left: calc(50% - (71px / 2));
}

.step:nth-child(5) {
    right: -2px;
}

.step.active {
    color: #fff;
    background: #F2B879;
}

.main-panel {
    background: #013e6a46;
    min-width: 739px;
    min-height: 500px;
    border-radius: 15px;
    padding: 22px 0;
    margin-top: 15px;
    margin-bottom: 15px;
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.title {
    padding: 0 22px;
    font-size: 28px;
    width: 100%;
    margin-bottom: 40px;
    font-weight: bold;
}

.row {
    display: flex;
    margin-bottom: 17px;
}

.col-6 {
    width: 50%;
    max-width: 50%;
    max-height: 80px;
    padding: 0 22px;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 25px;
    margin-bottom: 3px;
}

input, select {
    font-size: 25px;
    border-radius: 15px;
    border: none;
    padding: 10px 8px;
}

input:active, input:focus {
    outline: 0;
}

input[type="checkbox"] {
    height: 40px;
    width: 40px;
    border-radius: 15px;
    overflow: hidden;
    margin-left: 0px;;
}

button {
    font-size: 21px;
    color: #fff;
    background: darkgrey;
    border: none;
    border-radius: 15px;
    width: 158px;
    height: 54px;
    align-self: flex-end;
    margin-right: 22px;
    margin-top: 40px;
}

.confirm-button {
    background: #49B675;
}

.footer {
    color: #fff;
    font-size: 23px;
    margin-top: 33px;
    margin-bottom: 42px;
}

.final-step {
    min-width: 90vw;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
}

.final-step .first-container {
    display: flex;
}

.col-3 {
    width: 33.33%;
}

.col-9 {
    width: 66.66%;
}

.info-resultados {
    padding-left: 20px;
    margin-bottom: 5px;
}

.title.resultados {
    margin-bottom: 15px;
}

.title.resultados.litro {
    padding-left: 0;
    width: 100%;
    max-height: 0px
}

.linear-chart {
    background: #fff;
    border-radius: 15px;
    padding: 10px;
    min-width: 125px;
    height: 200px;
    display: flex;
    align-items: flex-end;
}

.linear-chart.horizontal {
    width: 75%;
    height: 120px;
    flex-direction: column;
    align-items: flex-start;
}

.linear-chart.horizontal .red-bar{
    background: #E84867;
    width: 100%;
    height: calc(50% - (10px / 2));
    border-radius: 15px;
    margin-right: 0;
}

.linear-chart .red-bar{
    background: #E84867;
    width: calc(50% - (10px / 2));
    height: 100%;
    border-radius: 15px;
    margin-right: 10px;
}

.linear-chart.horizontal .green-bar{
    background: #49B675;
    width: 100%;
    height: calc(50% - (10px / 2));
    border-radius: 15px;
    margin-top: 10px;
}

.linear-chart .green-bar{
    background: #49B675;
    width: calc(50% - (10px / 2));
    height: 100%;
    border-radius: 15px;
    margin-top: 10px;
}

.resultado-litro {
    display: flex;
    flex-wrap: wrap;
    max-height: 160px;
}

.chart-info div {
    margin-left: 50px;
    line-height: 30px;
    position: relative;
}

.chart-info {
    max-width: 25%;
    min-width: 25%;
    padding-right: 20px;
}

.chart-info div:nth-child(1)::before {
    content: '';
    display: block;
    position: absolute;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #E84867;
    left: -30px;
    top: 6px;
}
.chart-info div:nth-child(2)::before {
    content: '';
    display: block;
    position: absolute;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #49B675;
    left: -30px;
    top: 6px;
}

.second-container {
    display: flex;
    margin-top: 30px;
}

.second-container .col-3 {
    padding-left: 20px;
    display: flex;
    flex-wrap: wrap;
}

.second-container .col-3:nth-child(2), .second-container .col-3:nth-child(3) {
    padding-left: 0;
}

.second-container .col-3 .chart-info{
    width: calc(100% - 125px);
    max-width: calc(100% - 125px);
}

.chart-title {
    width: 100%;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0px;
    line-height: 5px;
}

.second-container .col-3 .chart-title {
    margin-bottom: 20px;
}

.col-9 .chart-title{
    max-height: 40px;
    line-height: 40px;
}

.controls-resultados {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.controls-resultados .circle {
    height: 20px;
    width: 20px;
    margin: 0 10px;
    background: #5887A2;
    border-radius: 50%;
    transition: background .5s ease;
}

.controls-resultados .circle.active {
    background: #B9CDD8;
}

.controls-resultados .circle:hover {
    cursor: pointer;
}

.first-container, .second-container, .third-container {
    display: none !important;
}

.first-container.active, .second-container.active, .third-container.active {
    display: flex!important;
}

.third-container {
    flex-wrap: wrap;    
}

.third-container .title {
    width: 100%;
}

.third-container .chart-title {
    margin-bottom: 25px;
}

.third-container .col-6 {
    margin-top: 15px;
    min-height: 353px;
}

canvas {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    max-height: 300px;
}

.results-justify {
    display: flex;
    justify-content: space-between;
    max-width: 235px;
    padding-right: 15px;
    flex-wrap: wrap;
}

/* Only Desktop */
@media only screen and (min-device-width: 1024px) {
    body, html, form {
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* Tablet */
@media only screen and (max-device-width: 1025px) and (min-device-width: 377px) {
    .blue-square.three, .blue-square.four {
        display: none;
    }

    .blue-square.one {
        bottom: 0;
        left: -99px;
        width: 290px;
        height: 217px;
    }

    .blue-square.two {
        bottom: 0;
        right: 192px;
        height: 284px;
    }

    .blue-square.five {
        top: 0;
        left: 157px;
        width: 290px;
        height: 136px;
    }

    .logo {
        margin-top: -42px;
    }

    .steps {
        top: 206px;
    }

    .main-panel {
        margin-top: 4px;
        min-height: 428px;
    }

    .footer {
        font-size: 17px;
        margin-top: 9px;
        margin-bottom: 15px;
    }
    
    .linear-chart.horizontal {
        width: 55%;
    }
    
    .col-9.resultado-litro .chart-info {
        max-width: 45%;
    }
    
    .linear-chart {
        min-width: 100px;
        height: 130px;
    }
    
    .second-container .col-3 .chart-info {
            width: calc(100% - 100px);
    }
    
    .chart-info div {
        margin-left: 41px;
    }
    
    .third-container .col-6 {
        max-height: 280px;
        min-height: 280px;
    }
}

/* Mobile */
@media only screen and (max-device-width: 376px) {

    body, html, form {
        overflow-y: scroll;
    }

    .blue-square.two, .blue-square.one {
        display: none;
    }

    .blue-square.three {
        bottom: 0;
        left: -165px;
        width: 660px;
        height: 391px;
    }

    .blue-square.four {
        top: 457px;
        right: -232px;
    }

    .blue-square.five {
        top: 0;
        left: -228px;
        width: 453px;
        height: 539px;
    }

    .logo {
        margin-top: -128px;
        height: auto;
        width: 975px;
    }

    .steps {
        top: 495px;
        width: 823px;
    }

    .step {
        width: 100px;
        height: 100px;
        font-size: 52px;
    }

    .step-line {
        height: 27px;
    }

    .step:nth-child(3) {
        left: -5px;
    }

    .step:nth-child(5) {
        right: -5px;
    }

    .main-panel {
        min-width: 898px;
        margin-top: -75px;
        max-width: 90vw;
        padding: 30px 0;
    }

    .footer {
        color: #fff;
        font-size: 40px;
        margin-top: 33px;
        text-align: center;
        padding: 0 53px;
        margin-bottom: 16px;
    }

    .title {
        font-size: 55px;
    }

    .row {
        flex-wrap: wrap;
    }

    .col-6 {
        width: 100%;
        max-width: 100%;
        padding: 0 30px;
        max-height: initial;
        margin-bottom: 36px;
    }

    label {
        font-size: 40px;
    }

    input, select {
        font-size: 45px;
        padding: 23px 8px;
        width: 100%;
        border-radius: 30px;
    }

    button {
        margin-right: 30px;
        font-size: 33px;
        width: 200px;
        height: 70px;
    }
    
    .first-container .col-3 {
        width: 100%;
    }
    
    .first-container {
        display: flex;
        flex-wrap: wrap;
    }
    
    .resultado-litro {
        padding: 0 21px;
        width: 100%;
        max-height: 230px;
    }
    
    .info-resultados {
        font-size: 30px;
    }
    
    .chart-title {
        font-size: 38px;
        line-height: 65px;
        max-height: 65px;
    }
    
    .chart-info {
        font-size: 28px;
        max-width: 50%;
    }

    .chart-info div {
        line-height: 40px;
    }
    
    .resultado-litro .chart-title {
        margin-bottom: 12px;
        margin-top: 15px;
    }
    
    .linear-chart.horizontal {
        width: 50%;
    }
    
    .second-container {
        display: flex;
        flex-wrap: wrap;
    }
    
    .second-container .col-3 {
        min-width: 100%;
        max-width: 100%;
    }
    
    .second-container .col-3:nth-child(2), .second-container .col-3:nth-child(3) {
        padding-left: 20px;
    }
    
    .controls-resultados {
        display: none;
    }
    
    .third-container {
        display: flex !important;
    }
    
    .third-container .title {
        display: none;
    }
    
    .results-justify {
        max-width: 425px;
    }
}