
/**** GLOBALS ****/
.imagePlaceholder {
    background-color: silver;
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    font-size: 200%;
    text-transform: uppercase;
}

#taskMain > .columns {
    margin-bottom: 1rem;
}

h1, .h1{
    font-size: 1.8rem;
}

/*
a, a:visited{
    color: #00c6cd;
}
*/

img {
    max-width: 100%;
}

.block {
    display: block;
}

/* reset */
ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
/**** /GLOBALS ****/


/**** LAYOUT ****/

/* classes for vertical alignment*/
.flex-centered-top { display: flex; justify-content: center; align-items: flex-start; }
.flex-centered-bottom { display: flex; justify-content: center; align-items: flex-end; }

.flex-left-top { display: flex; justify-content: flex-start; align-items: flex-start }
.flex-left-centered { display: flex; justify-content: flex-start; align-items: center }
.flex-left-bottom { display: flex; justify-content: flex-start; align-items: flex-end }

.flex-right-top { display: flex; justify-content: flex-end; align-items: flex-start }
.flex-right-centered { display: flex; justify-content: flex-end; align-items: center }
.flex-right-bottom { display: flex; justify-content: flex-end; align-items: flex-end }

/* last <p> in a text-container needs no bottom margin */
.columns > p.column:last-child {
    margin-bottom: 0;
}
/**** /LAYOUT ****/




/**** TASK INTRO ****/
#taskMain {
    padding-top: 1.2rem;
}

#taskTitleCol {
    margin-bottom: 1rem;
}

#taskTitleCol h1 {
    margin: 0;
}

#taskMain .introImage {
    width: 100%;
    /*height: 242px;*/
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
}

#taskMeta p {
    border: 1px solid #b8b8b8;
    border-radius: 0.2rem;
    box-sizing: border-box;
    padding: 0.4rem 0.8rem;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

#taskMeta p:last-child {
    margin-bottom: 0;
}

#taskMeta p i {
    margin-right: 0.2rem;
    display: inline-block;
    width: 20px;
}

#taskMeta p .value {
    font-weight: 500;
}

#taskShortDesc {
    margin-bottom: 50px;
}

#manufacturer li {
    margin-bottom: 1rem;
}

#manufacturer li strong {
    display: block;

}

#manufacturer {
    margin-bottom: 25px;
}

#manufacturerCols strong {
    display: block;
}

/* popovers */
#taskMain .popover {
    
}


#taskMain .popOverTitle {
    margin-bottom: 0;
    cursor: default;
    
}
/**** /TASK INTRO ****/


/**** TOOLS ****/
#taskMain .toolEntry {
    margin-bottom: 1rem;
}


.toolEntry .right {
    padding-left: 1rem;
}

#taskMain .toolEntry p {
    margin-bottom: 0;
}

#taskMain .toolImage, #taskMain .spareImage {
    width: 50%;
    margin-top: 1rem;
}

#toolsCols, #sparesCols, #materialsCols {
    margin-bottom: 0;
}
/**** /TOOLS ****/


/**** PREPARATIONS ****/
.preparationStep {
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;

}

.preparationStep .stepNumber {
    font-size: 120%;
    font-weight: bold;
    margin-right: 0.5rem;
}

.preparationStep > *:not(.stepNumber) {
    margin-top: 0.1rem;
}
/**** /PREPARATIONS ****/



/**** TASK STEPS ****/
.mainStep {
    margin-bottom: 2rem;
}

.step .stepNumber {
    font-weight: 700;
    font-size: 120%;
    margin-right: 0.5rem;
}

.step .innerSteps {
    margin-top: 0.1rem;
}

.mainStep .innerStep {
   /* display: flex;
    align-items: flex-start;
    justify-content: flex-start; */
    margin-bottom: 0.5rem;
    width: 49%;
}

.innerStep .substep, .innerStep p {
    margin-bottom: 0;
}

.innerSteps {
    clear:both;
}

.mainStep figure img:hover {
    width: 100%;
}

.mainStep figure img {
    border: 1px solid grey;
    width: 50%;
}

.mainStep figure img.pos0 {

    width: 100%;
 }

.innerSteps > figure {

    width: 49%;
    float: right;
    margin: 2em;
    margin-top: 0em;
}

.innerStep ul {
    margin: 0;
}

.hazardWarning.type_notice .hazardTitle {
    color: yellow;
}

.hazardWarning.type_caution .hazardTitle {
    color: orange;
}

.hazardWarning.type_danger .hazardTitle {
    color: orange;
}
/**** /TASK STEPS ****/


/**** DESCRIPTIVE ****/
#descriptiveMain {
    padding-top: 1.2rem;
}

#descriptiveColumns > .column:not(.descriptiveText) {
    margin-bottom: 1.2rem;
}

#descriptiveTitle h1 {
    margin-bottom: 0;
}

#descriptiveMain table {
    border-collapse: collapse;
    border-spacing: 0;
    text-align: left;
    width: 100%;
    margin-bottom: 1.2rem;
}

#descriptiveMain table th {
    border-bottom-width: .1rem;
}

#descriptiveMain table td, #descriptiveMain table th {
    border-bottom: .05rem solid #dadee4;
    padding: .6rem .4rem;
}

#descriptiveMain ul {
    list-style: disc;
    margin-left: 1em;
    margin-bottom: 1.2em;
}

#descriptiveMain *:not(.descriptiveText) ul li {
    margin-top: 0;
}

#descriptiveColumns *:not(.descriptiveText) p {
    margin-bottom: 0;
}

.descriptiveGridImg .gridEntry {
    margin-bottom: 1.2rem;
}

.descriptiveIconText p {
    margin-bottom: 0;
}
/**** /DESCRIPTIVE ****/


/**** FRONTPAGE ****/
#frontMain {
    padding-top: 1.2rem;
}

#frontContent p:last-of-type {
    margin-bottom: 0;
}

#frontContent {
    margin-bottom: 1.2rem;
}

.frontTerm {
    margin-bottom: 2rem;
}

.frontTerm .card {
    height: 100%;
    box-shadow: 0 .25rem 1rem rgba(48,55,66,0.15);
}

.frontTerm .card .title {
    margin: 0;
}

.frontTerm .card strong {
    display: block;
    margin-bottom: 0.2rem
}

.frontTerm .card strong:last-of-type:not(:first-of-type) {
    margin-top: 1rem
}

.frontTermLinks li {
    display: block;
    margin-bottom: 0.3rem;
}

.frontTermLinks a {
    line-height: 1.2em;
    display: block;
}

.card-image img{

    max-width: 100%;
}


/**** /FRONTPAGE ****/


/**** FOOTER ****/
#siteFooter {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
/**** /FOOTER ****/

/* md breakpoint from spectre*/
@media all AND (max-width:840px) {

    /* burger + nav */
    #burgerButton {
        height: 1.3rem;
        background-color: transparent;
        display: flex;
        width: 2rem;
        border-top: 0.2rem solid #fff;
        border-bottom: 0.2rem solid #fff;
        justify-content: flex-start;
        align-items: center;
    }

    #burgerButton::after {
        content: '';
        display: block;
        width: 100%;
        height: 0.2rem;
        background-color: #fff;
    }

    body.locked {
        overflow: hidden;
    }

    #mobileNavWrapper {
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        z-index: 10;
        box-sizing: border-box;
        padding: 4rem;
        background-color: #fff;
    }

    #mobileNavWrapper.active {
        display: flex;
    }

    #mobileSearch {
        margin-bottom: 2rem;
    }

    #mobileNavWrapper nav a {
        display: block;
        margin-bottom: 2rem;
    }

    #mobileNavClose {
        position: absolute;
        right: 1.2rem;
        top: 1.2rem;
        width: 2rem;
        height: 2rem;
        display: block;
        cursor: pointer;
    }

    #mobileNavClose::before, #mobileNavClose::after {
        content: '';
        height: 0.4rem;
        background-color: #000;
        display: block;
        transform: rotate(45deg);
        transform-origin: center;
        width: 100%;
        position: absolute;
        left: 0;
        top: calc(50% - 0.2rem);
    }

    #mobileNavClose::after {
        transform: rotate(-45deg);
    }

    /* TASK DETAIL */
    #taskTitleCol h1 {
        font-size: 1.6rem;
    }

    #taskMain h2 {
        font-size: 1.4rem;
    }

    #taskMain #taskTopCols {
        margin-bottom: 2rem;
    }

    #taskToolsMaterials > .column {
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
        align-content: flex-start;
        justify-content: flex-start;
    }

    .innerSteps > figure {
        float: none;
        margin-left: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .mainStep {
        margin-bottom: 1.2rem;    
    }

    .mainStep .innerStep {
        width: 100%;
    }

    .popover .popover-container {
        max-width: calc(100vw - 2rem)
    }

    .popover.popover-bottom.active .popover-container {
        transform: scale(1);
        display: block;
        opacity: 1;
        left: 0;
    }

    /* DESCRIPTIVE */
    #descriptiveMain h1 {
        font-size: 1.6rem;
    }

    #descriptiveMain h2 {
        font-size: 1.4rem;
    }    
}

@media all and (max-width: 550px) {
    #taskTitleCol h1, #descriptiveMain h1 {
        font-size: 1.3rem;
    }

}
