
.grafico-bar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 250px;
    background-color: white;
    font-size: 25px;
}

.esquerda {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 10%;
    height: 100%;
}
.esquerda label, .esquerda span {
    text-align: center;
    font-size: clamp(14px, 2vw, 14px);;
}

#pegada_carbono {
    width: 75%;
    height: 35%;
}

.direita {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 88%;
    height: 100%;
    position: relative;
}

/* se largura < 900px */
@media (max-width: 899px) {
  .esquerda {
    display: none;
  }
  .direita {
    width: 100%
  }
}




.container {
    width: 90%;
    padding: 0;
    margin-top: 10%;
    box-sizing: border-box;
}
.marca-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.8em;
    margin-bottom: 5px;
}
.barrinha  {
    display: flex;
    align-items: center;
    width: 100%;
    height: 20px;
    cursor: pointer;
    background: linear-gradient(
        to right,
        red 0%,
        red 21.1206%,
        orange 21.1206%,
        orange 51.501%,
        yellow 51.501%,
        yellow 65.2787%,    
        rgb(108, 213, 122) 65.2787%,
        rgb(108, 213, 122) 83.3913%,  
        green 83.3913%,
        green 100%      
    );
}
.triangulo-container {
    position: relative;
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: space-between;
    background-color: white;
}
.triangulo  {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid #333;
}
#niquel {
    left: calc(3.41% - 10px);
}
#cobre {
    left: calc(39.75% - 10px);
}
#aluminio {
    left: calc(98.93% - 10px);
}
.label-container {
    width: 100%;
    min-height: 40px;
    display: flex;
}
.label-container span {
    flex: 1;
    font-size: 0.5em;
    min-width: fit-content;
}
#label-niquel {
    left: 4%;
    text-align: left;
}
#label-cobre {
    left: 32%;
    text-align: left;
}
#label-aluminio {
    left: 80%;
    text-align: right;
}

.marca-container {
    font-size: 0.6em;
}

.resultado-container {
    position: relative; /* <- obrigatório */
    height: 1px;       /* aumenta para caber triângulo + label */
    width: 100%;
    /* background-color: blue; */
}
#resultado {
    position: absolute;
    width: 0;
    height: 0;
    top: 1%;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #333;
}

#resultado-label {
    position: absolute;
    min-width: 200px; 
    font-size: clamp(14px, 2vw, 14px);;
}

.percentuais {
    display: none;
    position: absolute;
    font-size: 0.7em;
    color: black;
}
#vermelho {
    left: 13%;
}
#laranja {
    left: 36%;
}
#amarelo {
    left: 56%;
}
#verdinho {
    left: 71%;
}
#verdao {
    left: 86%;
}

.grafico-esg-container{
    position: relative; /* essencial */
    display: flex;
    background-color: white;
    align-items: flex-start;
    gap: 10px;
    padding-top: 2%;
}

/* wrapper com os canvases */
.grafico-wrapper{
    display: flex;
    background-color: white;
    width: 100%;
    gap: 5px;
    box-sizing: border-box;
    overflow: hidden;
}

/* canvases ocupam metade cada um */
.grafico-esg {
    flex: 1 1 400px;
    max-width: 50%;
}
/* imagens absolutas sobre o container */
.grafico-esg-container img{
    position: absolute;
    pointer-events: none; /* importante se quiser clicar no gráfico por baixo */
    width: 5%;
    height: 14%;
    top: 30px;
    transform: translateX(-50%);
    z-index: 10;
}

@media (max-width: 800px) {
    .grafico-esg-container img {
        display: none;
    }
}

#pegada-carbono-grafico {
    left: 8%;   /* ajuste fino */
}
#torneirinha-grafico {
    left: 58%;   /* ajuste fino */
}
