#image {
    width: 393px;
    height: 318px;
    background-image: url(../static/img/biomass/img_biomasse.jpg);
    background-repeat: no-repeat;
}

#image_e {
    width: 393px;
    height: 318px;
    background-image: url(../static/img/biomass/img_biomasse_en.jpg);
    background-repeat: no-repeat;
}

#image_plot {
    width: 393px;
    height: 318px;
    background-image: url(../static/img/biomass/img_biomasse_plot.jpg);
    background-repeat: no-repeat;
}

#image_plot_e {
    width: 393px;
    height: 318px;
    background-image: url(../static/img/biomass/img_biomasse_plot_en.jpg);
    background-repeat: no-repeat;
}

#champ1 {
    /*écorce */
    position: relative;
    top: 116px;
    left: 0;
    font-weight: bold;
    width: 184px;
    text-align: center;
}

#champ2 {
    /*branches*/
    position: relative;
    top: 102px;
    left: 208px;
    font-weight: bold;
    width: 184px;
    text-align: center;
}

#champ3 {
    /*feuillages*/
    position: relative;
    top: 263px;
    left: 0;
    font-weight: bold;
    width: 184px;
    text-align: center;
}

#champ4 {
    /*bois*/
    position: relative;
    top: 249px;
    left: 208px;
    font-weight: bold;
    width: 184px;
    text-align: center;
}

#image_plot #champ1 {
    top: 103px;
}

#image_plot #champ2 {
    top: 75px;
}

#image_plot #champ3 {
    top: 222px;
}

#image_plot #champ4 {
    top: 195px;
}

#image_e #champ1.plot1 {
    top: 115px;
    left: 0;
    width: 184px;
}

#image_e #champ2.plot2 {
    top: 101px;
    left: 208px;
    width: 184px;
}

#image_e #champ3.plot3 {
    top: 262px;
    left: 0;
    width: 184px;
}

#image_e #champ4.plot4 {
    top: 248px;
    left: 208px;
    width: 184px;
}

#image_plot_e #champ1.plot1 {
    top: 103px;
    left: 0;
    width: 184px;
}

#image_plot_e #champ2.plot2 {
    top: 75px;
    left: 208px;
    width: 184px;
}

#image_plot_e #champ3.plot3 {
    top: 222px;
    left: 0;
    width: 184px;
}

#image_plot_e #champ4.plot4 {
    top: 194px;
    left: 208px;
    width: 184px;
}

.plot1,
.plot2,
.plot3,
.plot4 {
    line-height: 14px;
}

#form1 label.fr,
#form1 label.en {
    display: inline-block;
    width: 140px;
}

#form2 label.fr {
    display: inline-block;
    width: 210px;
}

#form2 label.en {
    display: inline-block;
    width: 140px;
}

#form2-errors,
.js-form-error {
    font-size: 10pt;
    font-weight: bold;
    color: #ff0000;
    padding-bottom: 18px;
}

#form3 label.fr,
#form3 label.en {
    display: inline-block;
    width: 190px;
}

/**
 * Volume
 */
.volume-results {
    margin: 20px 29px 25px;
    background: #eeeedd;
    border: 1px solid #646a12;
    padding: 15px 0 20px;
    font-size: 1.3em;
    text-align: center;
}

.volume-parameters {
    background: #f3f3f3;
    border: 1px solid #cccccc;
    margin: 20px 29px 25px;
    padding: 5px 20px 5px;

    & > p {
        margin-top: 10px;
    }
}

.volume-results-graph {
    position: relative;
    background: url(../static/img/volume/taper_white.png) 50% -5px no-repeat;
    width: 500px;
    height: 508px;
    margin: 0 auto 30px;
    border-bottom: 1px solid #000000;
}

.volume-graph-dbh-line {
    float: right;
    position: relative;
    border-bottom: 2px solid #e66c09;
    width: 198px;
    margin: 0 153px 0 0;
    text-align: right;
}

.volume-graph-criteria-line {
    float: right;
    position: relative;
    right: 0;
    border-bottom: 2px dotted #339933;
    width: 350px;
    text-align: right;
}

.volume-graph-criteria-line strong {
    color: #339933;
}

.volume-graph-label-total-height {
    border-bottom: 1px dotted #333333;
    width: 250px;
    margin: 0;
}

.volume-graph-label-total-height span {
    float: left;
    position: absolute;
    top: -22px;
    left: 5px;
}

.volume-graph-label-top {
    height: 99px;
    width: 279px;
    margin: 0;
}

.volume-graph-label-top span {
    display: block;
    position: absolute;
    top: 40px;
    left: 5px;
    font-weight: bold;
}

.volume-graph-label-upper-logs {
    height: 290px;
    width: 305px;
    margin: 0;
}

.volume-graph-label-upper-logs span {
    display: block;
    position: relative;
    top: 140px;
    left: 5px;
    font-weight: bold;
}

.volume-graph-label-bottom {
    height: 118px;
    width: 332px;
    margin: 0;
}

.volume-glb-butt-logs {
    display: block;
    position: relative;
    top: 5px;
    left: 5px;
    font-weight: bold;
}

.volume-glb-stump {
    display: block;
    position: relative;
    top: 95px;
    left: 5px;
    font-weight: bold;
}

.volume-graph-legend {
    background: #f3f3f3;
    border: 1px solid #cccccc;
    margin: 40px 29px 25px;
    padding: 10px 20px 10px;

    h3 {
        margin-top: 10px;
    }
}

.volume-graph-legend table {
    background: transparent;
}

.volume-graph-legend table tr th {
    padding: 15px 15px 15px 0;
    vertical-align: middle;
}

.volume-graph-legend table th,
.volume-graph-legend table td {
    background: transparent;
    border: none;
}

.volume-graph-legend .volume-graph-legend-dbh div {
    width: 60px;
    border-bottom: 2px solid #e66c09;
}

.volume-graph-legend .volume-graph-legend-criteria div {
    width: 60px;
    border-bottom: 2px dotted #339933;
}

.volume-graph-legend .volume-graph-legend-volume {
    padding: 5px 15px 5px 0;
}

.volume-graph-legend .volume-graph-legend-volume div {
    width: 58px;
    height: 20px;
    background: #97da8d;
    border: 1px solid #88aa88;
}

.volume-gld-label-dbh strong {
    color: #e66c09;
}

.volume-gld-label-criteria strong {
    color: #339933;
}

.volume-limit-explanation {
    font-size: 10px;
}

fieldset fieldset {
    border-top: 0;

    & > legend.h4 {
        margin-top: 0;
    }
}

#calculation-bioenergy {
    details.open {
        padding-bottom: 0;
    }

    details > *:not(summary) {
        margin-left: 0;
    }

    .legend {
        margin: 15px 0;
    }
}

.bioenergy-graph {
    overflow: hidden;
    min-height: 250px;
    margin-top: 15px;
}

.footnote {
    display: block;
}

.ghg-legend {
    .legend-color-box {
        padding-right: 5px;

        & > div {
            border: 1px solid #ccc;
            padding: 1px;
            margin-top: 6px;

            & > div {
                width: 4px;
                height: 0;
                overflow: hidden;
                border: 5px solid #000;

                &.legend-color-bcs {
                    border-color: #97bbcd;
                }

                &.legend-color-wcs {
                    border-color: #f18658;
                }

                &.legend-color-black {
                    border-color: #000;
                }

                &.legend-color-yellow {
                    border-color: #CCBB44;
                }

                &.legend-color-green {
                    border-color: #228833;
                }
            }
        }
    }

    & > table.legend-zones {
        width: 100%;

        & > tbody > tr > td {
            width: 33%;
            text-align: center;
        }
    }
}

.ghg-legend-desc {
    & > div {
        margin: 5px 0;
    }

    .legend-color-box {
        vertical-align: top;
        padding-top: 2px;
    }

    .legend-label {
        font-size: 0.8em;
    }
}

table.results {
    width: 100%;
    border: 1px solid #cccccc;
    border-collapse: separate;
    border-spacing: 2px;
}

table.results th.first {
    width: 120px;
}

table.results th {
    background-color: #cccccc;
}

table.results td {
    text-align: center;
}

table.results tr.row1 {
    background: #f0f0f0;
}

table.results tr.row2 {
    background: #ffffff;
}

img {
    max-width: 100%;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}

.space-xtop {
    margin-top: 20px;
}

[href^="mailto:"] {
    position: relative;
    margin-left: 20px;
}

[href^="mailto:"]:before {
    color: #333;
    content: "\2709";
    font-family: "Glyphicons Halflings";
    font-size: 1em;
    position: absolute;
    left: -20px;
}

@media (max-width: 1199px) {
    details table {
        font-size: 0.9em;
    }
}

@media (max-width: 959px) {
    #form1 label.fr,
    #form1 label.en,
    #form2 label.fr,
    #form2 label.en,
    #form3 label.fr,
    #form3 label.en {
        width: auto;
    }

    details table {
        font-size: 0.85em;
    }
}

.pt-0 {
    padding-top: 0;
}

.legend-error-message {
    font-size: 16px;
}
