.step {
    display: none;
    margin-bottom: 10px;
    width: 100%;
}

    .step div {
        max-width: 100%;
    }

.step label{
    margin-right:10px;
}

.step-head {
    background-color: var(--accord-blue);
    padding: 10px;
    border: 1px solid var(--accord-white);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-weight: 600;
}

.step-body {
    background-color: var(--darkbg);
    padding: 10px;
    border: 1px solid var(--accord-white);
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.step-body input[type="checkbox"] {
        height: 25px;
    }

#step-roof {
    display: block;
    margin-bottom: 10px;
}

.selroof{
    vertical-align:top;
    display: inline-block;
    text-align: center;
    width: 25%;
    padding: 5px;
}

#imgcont {
    max-width: 200px;
    max-height: 200px;
}

#curved-imgcont {
    max-width: 200px;
    max-height: 200px;
}

.colourswatch {
    display: inline-block;
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 0.25rem;
    cursor: pointer;
    border: 1px solid var(--accord-white);
}

.selectedcolour {
    outline: 2px solid var(--accord-orange);
    box-shadow: inset 0 0 0 1px #f58c24;
}

.selprofile {
    vertical-align: top;
    display: inline-block;
    text-align: center;
    width: 50%;
    padding: 5px;
}
    .selprofile a {
        display: block;
        padding: 5px;
        border-radius: 10px;
        background-color: white;
        color: black;
    }

.selectedprofile {
    outline: 2px solid var(--accord-orange);
    box-shadow: inset 0 0 0 1px #f58c24;
}


.colourswatch .tooltext{
    visibility: hidden;
    width: 150px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 6px;
    top: 100%;
    left: 50%;
    margin-left: -75px;
    position: absolute;
    z-index: 1;
}


.colourswatch:hover .tooltext, .colourswatch:active .tooltext {
    visibility: visible;
}

#roof-steps {
    display: inline-block;
    width: calc(100% - 500px);
    min-width: 50%;
}

#roof-drawing {
    vertical-align: top;
    display: inline-block;
    width: 50%;
    max-width: 500px;
    position: sticky;
    top: 0px;
    padding-left: 10px;
    max-height: 100vh;
    overflow-y: auto;
    margin-bottom: 10px;
}

#open-drawing, #close-drawing{
    display: none;
}

#btn-calculate {
    width: 100%;
    margin-top: 10px;
}

@media screen and (max-width: 1200px) {
    .selprofile {
        width: 100%;
    }
}

    @media screen and (max-width: 760px) {
        #roof-steps {
            display: inline-block;
            width: calc(100% - 30px);
        }

        .selroof {
            width: 50%;
        }

        #roof-drawing {
            overflow-y: initial;
            width: 30px;
            z-index: 999;
        }

        #drawing-step {
            visibility: hidden;
            position: fixed;
            top: 0px;
            left: 0px;
            width: 100vw;
            height: 100vh;
            z-index: 1;
        }

        #drawing-step-head {
            width: calc(100vw - 48px);
            height: 43px;
        }

        #drawing-step-body {
            width: calc(100vw - 48px);
            height: calc(100vh - 43px);
        }

        #open-drawing {
            display: inline-block;
            width: 100%;
            height: 100vh;
            writing-mode: vertical-rl;
            writing-mode: sideways-lr;
            margin-right: -10px;
            padding-left: 0px;
            width: 48px;
            border-radius: 0px;
        }

        #close-drawing {
            display: block;
            height: 100vh;
            writing-mode: vertical-rl;
            writing-mode: sideways-lr;
            width: 48px;
            position: fixed;
            top: 0px;
            left: calc(100vw - 48px);
            border-radius: 0px;
            padding-left: 0px;
        }


    }
