@media screen and (min-width: 970px){

    section{
        font-family: 'Rubik';
        margin: 0 5em;
    }
    
    /* // INFORMATIONS \\ */
    .informations{
        width: 60%;
        display: flex;
        margin: 1em 0;
    }
    
    .informations p{
        width: 30%;
    }
    
    /* // WEB VIEWER \\ */    
    .display{
        background-color: aliceblue;
        color: black;
        /* width: -moz-fit-content; */
        padding: 1em;
        /* padding-right: 5em; */
        display: flex;
        flex-direction: column;
        position: absolute;
        /* right: 5em; */
        /* top: 0; */
        display: none;
    }
    
    h5{
        margin-bottom: .5em;
    }
    
    /* // TEETH AND DATES \\ */
    .bottom_part{
        display: flex;
        margin: 1em 0;
        justify-content: center;
    }
    
    .date_slider{
        width: 50%;
    }
    
    .teeth_infos{
        border: gray solid 1px;
        padding-left: .5em;
        width: 75%;
    }
    
    .img_div{
        display: flex;
        justify-content: center;
    }
    
    .date_slider{
        display: flex;
        align-items: center;
        margin: auto;
        flex-direction: column;
        width: 30%;
        margin-top: 1em;
    }
    
    /* .slider{
        width: inherit;
    } */
    
    form{
        width: 100%;
    }
    
    fieldset{
        /* width: inherit; */
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    
    /* input{
        -webkit-appearance: none;
    } */
    
    
    .wrapper > div {
        border: 1px solid;
    }
    
    .child {
        display: flex;
    }
    
    .child div {
        flex-grow: 1;
        width: 0;
    }
    
    .wrapper {
        display: inline-block;
    }
    
    canvas {
        width: 80%;
        /* height: 80%;  */
    }
    
    
    .explanations{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        align-content: center;
        width: 10%;
    }
    
    .explanations div{
        height: 30%;
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    .legende_image_div{
        display: flex;
        justify-content: center;
        width: 50% !important;
    }
    
    .legende_nom_div{
        display: flex;
        justify-content: left;
        width: 50% !important;
    }
    
    
    .webviewer canvas{width: 100%;}
    
    .bottom_1, .explanations{width: 10% !important}
    
    
    .onoff
    {
        padding:1px 2px 3px 3px;
        font-size:12px;
        background:lightgray;
        text-align:center;
        border-radius: 5px;
        padding: .5em;
        margin: .5em;
        width: 10em;
        border: none;
        cursor: pointer;
    
        /* text-decoration: none; */
        /* padding: 12px 40px; */
        /* font-size: 16px; */
        box-shadow: 3.5px 3px 3.5px .5px rgba(0, 0, 0, 0.24);
        /* outline: none; */
        transition: 0.2s all;
    
        border-bottom: 6px solid rgb(175, 167, 167);
        border-radius: 4px;
    }
    .offon{
        padding:1px 2px 3px 3px;
        font-size:12px;
        background:lightgray;
        text-align:center;
        border-radius: 5px;
        padding: .5em;
        margin: .5em;
        width: 10em;
        border: none;
        background-color: #469A8E;
        color: white;
        cursor: pointer;
    }
    .pressedo{
        /* transform: scale(0.90); */
        margin-top: 2px;
        border-bottom-width: 3px;
        /* box-shadow: 1px 1.25px 1px .3px rgba(0, 0, 0, 0.24); */
        background-color: #34495E;
    }


    
    /* .onoff:active {
        transform: scale(0.98);
        box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24);
    } */
    
    .pressed{
        /* transform: scale(0.90); */
        margin-top: 2px;
        border-bottom-width: 3px;
        box-shadow: 1px 1.25px 1px .3px rgba(0, 0, 0, 0.24);
    }
    /* .button:active{
    margin-top: 5px;
    border-bottom-width: 0px;
    } */
    
    
    .frame {
        display: flex;
        height: 87vh;
        width: 100%;
    }
    
    /* .frame>* {
        flex: 1 1 50%;
    } */
    
}
    
@media screen and (max-width: 970px)
{
    body{width: 100vw; font-family: 'Rubik'}

    .informations{margin: 1em}

    .webviewer canvas{
        width: 100vw;
        height: 40vh;
    }

    .display{
        display: flex;
        justify-content: space-around;
        width: 75vw;
        margin: 1em auto;
    }

    .onoff{
        padding:1px 2px 3px 3px;
        font-size:12px;
        background:lightgray;
        text-align:center;
        border-radius: 5px;
        padding: .5em;
        margin: .5em;
        width: 10em;

        border: none;
        border-radius: 5px;
        box-shadow: 3.5px 3px 3.5px .5px rgba(0, 0, 0, 0.24);
        cursor: pointer;
        transition: 0.2s all;

        border-bottom: 6px solid rgb(175, 167, 167);
        border-radius: 4px;
    }

    .pressed{
        margin-top: 2px;
        border-bottom-width: 3px;
    }

    .date_slider{
        display: flex;
        align-items: center;
        margin: auto;
        flex-direction: column;
        width: 30%;
        margin-top: 1em;
    }

    form{width: 90vw}
    
    fieldset{
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .teeth_infos{
        border: gray solid 1px;
        margin: 1em 0;
    }

    .img_div{margin: 1em 0}

    .img_div canvas{
        width: 100vw;
    }

    .explanations{
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .8em;
        margin-bottom: 1em;
    }

    .explanations > div{
        /* width: 30%; */
        display: flex;
        margin: 0 .5em;
    }

    .legende_image_div{
        display: flex;
        justify-content: center;
        /* width: 50%; */
        margin: 0 .5em;
    }
    
    .legende_nom_div{
        display: flex;
        align-items: center;
        justify-content: left;
        /* width: 50%; */
    }
}