/* ***** MIN VALUES ***** */
@media (min-width: 576px) {

    .boxed_content_wrapper {
        width: 100%; max-width: 576px; height: auto;
        margin: 0 auto; padding: 25px;
        background: #fff;
        border: 0; border-radius: 8px;
        box-shadow: 2px 6px 15px rgba(0,0,0,0.25);
        overflow: hidden;
    }
    section.subheader { margin-top: 0; }
    header { display: flex; align-items: center; justify-content: center; margin: 0 0 30px 0; }
    header h1 img { display: block; width: auto; height: 42px; }
    section.register_steps_indicator .rsi_step:not(.rsi_current) { background: #EFF3F8; }

    /* materials and... */
    .content_wrapper {
        position: relative;
        width: 100%; max-width: 616px; height: auto;
        margin: 0 auto; padding: 20px 0 20px 0;
        border: 0; border-radius: 8px;
        /* overflow: hidden; */
    }
}


@media (min-width: 768px) {}

@media (min-width: 992px) {
    body { background: #E6F0FF; }
    .toggle_mobile { display: none !important; }
    header.pushed { margin-top: 160px; }
    #global_back { display: none; }
    #global_side_menu_trigger { display: none !important; }
    .content_wrapper { width: 100%; max-width: 992px; }
    #search_materials { width: 100%; max-width: 600px; }
    #tags_list { width: 100%; max-width: 800px; margin: 40px auto 24px auto; }

    #materials_list_container li {
        padding: 12px; margin: 0 0 16px 0;
    }
    #materials_list_container li .material-img {
        width: 160px; height: 160px;
    }
    #materials_list_container li .material-img img {
        height: 160px;
    }
    #materials_list_container li .material-title {
        font-size: 22px; line-height: 24px;
        margin-left: 12px;
    }
    #materials_list_container li .material-lead {
        width: calc(100% - 176px);
        letter-spacing: 0;
        font-size: 14px; line-height: 20px;
        padding: 8px 0 0 12px;
        max-height: calc(4 * 20px);
    }


    #favorites_list_container ul { display: flex; flex-wrap: wrap; justify-content: space-between; }
    #favorites_list_container ul li {
        position: relative;
        width: calc(50% - 16px); height: 50px;
    }
    #favorites_list_container ul li span { font-size: 32px; margin-right: 16px; }

    #favorites_list .fav_form_container label input { width: 30%; }
    #favorites_list_container ul li i { position: absolute; right: 16px; }

    #materials_list_container li .material-img .toggle_material_to_fav {
        top: 8px; left: auto; right: 8px; 
        outline: 1px solid rgba(0,0,0,0.1);
    }
    #materials_list_container li .toggle_material_to_clipboard {
        position: relative; top: 0; left: 0;
        display: inline-block; vertical-align: top;
    }

    [data-id="ib_shr"]:not(.hidden),
    [data-id="fav-single"]:not(.hidden),
    [data-id="ib_favs"]:not(.hidden) {
        width: 500px !important; height: calc(100% - 32px) !important; max-height: 600px;
        left: calc(50% - 250px) !important; top: calc((100vh - 600px) / 2);
    }
    [data-id="ib_shr"]:not(.hidden) .footer-content-block { bottom: 0 !important; }

    .materials_static_content { width: 100%; }

    .green_sharing.modal-container .footer-content-block { height: auto !important; bottom: 0 !important; }

}

@media screen and (max-width: 992px), 
       screen and (max-height: 600px) {
    [data-id="ib_shr"]:not(.hidden),
    [data-id="fav-single"]:not(.hidden),
    [data-id="ib_favs"]:not(.hidden) {
        height: calc(100% - 100px) !important; top: 50px;
    }
}

@media screen and (min-width: 992px) and (max-width: 1200px) {
    .green_sharing.modal-container .footer-content-block { bottom: 70px !important; }
}

@media (min-width: 1200px) {
    #tags_list .temp_tags_container:before { display: none; }
    #tags_list .temp_tags_container:after { display: none; }
    #tags_list .tags_more { display: none; }
    #tags_list.closed .temp_tags_container { max-height: none; }

    .materials_static_content .quatro_block { flex-direction: row; }
    .materials_static_content .quatro_block .quatro_item { padding: 0 16px; }
    .materials_static_content .quatro_block .quatro_item:not(:first-of-type) { margin-top: 0; }

    #interaction_block {
        width: 96px;
        height: auto;
        bottom: auto;
        left: calc(50% + 496px + 10px);
        top: 340px;
        border-radius: 8px;
    }
    #interaction_block ul {
        height: auto;
        flex-direction: column;
    }
    #interaction_block ul li:first-of-type { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
    #interaction_block ul li { width: 100%; padding: 16px 0; }

    #materials_list_container > ul { display: flex; flex-wrap: wrap; align-items: self-start; }
    #materials_list_container li { width: 100%; }

    header.pushed:after {
        content: ""; display: block;
        width: 300px; height: 500px;
        background: url("../gfx/header_guys_2.png") no-repeat scroll 0 0 / contain;
        position: absolute; right: 0; top: 0;
    }

    #interaction_block ul li { height: auto; }
    #interaction_block ul li span { font-size: 32px; margin-bottom: 2px; }

    #scrollTop {
        display: block;
        position: fixed; bottom: 0; right: 0; margin: 0 8px 100px 0;
        font-size: 52px; color: #0B64DD;
    }
    #scrollTop:hover {
        cursor: pointer; border-radius: 100%; background: rgba(0,0,0,0.1);
    }


}
@media (min-width: 1400px) {}





/* ***** MAX VALUES ***** */




@media (max-width: 1399.98px) {}

@media (max-width: 1199.98px) {
    footer .footer_row.row2 { flex-direction: column; align-items: center; margin-top: 16px; }
    footer .footer_row.row2 p { margin-top: 16px; text-align: center; }
}

@media (max-width: 991.98px) {
    .visible { display: block !important; }
    nav { display: none; }
    #global_side_menu_trigger { z-index: 9; }
    nav.mobile {
        z-index: 9;
        display: flex; align-items: center; justify-content: center;
        position: fixed;
        top: 0; right: auto; left: 0; margin: 0;
        width: 75%; height: 100%;
        background: #fff;
        box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    }
    nav.mobile ul { flex-direction: column; align-items: flex-start; width: 250px; height: 100%; }
    nav.mobile ul li { margin: 8px 0; }
    nav.mobile ul li:before { content: ""; display: none; }
    nav.mobile ul li a { border: 0; font-size: 18px; }
    nav.mobile ul li a:hover { border: 0; }

    nav.mobile .hcp_logout {
        border-radius: 8px; background: rgba(255,0,0,0.1);
        width: 250px; margin: 32px 0 0 0;
        justify-content: center;
    }
    nav.mobile .hcp_logout > span { margin: 0 !important; }
    nav.mobile .hcp_logout > span:hover { background: transparent !important; }

    #search_materials { max-width: 600px; }
    .toggle_desktop { display: none !important; }

    .materials_static_content { margin: 64px auto 0 auto; }

}

@media (max-width: 767.98px) {}

@media (max-width: 649.98px) {
    #materials_list h2 { padding: 0 16px; }
    #proposal_content { padding: 0 32px; }
}

@media (max-width: 575.98px) {}

@media (max-width: 499.98px) {
    #materials_list_container li .material-lead { width: calc(100% - 125px - 46px); }
    #materials_list_container li .material-img { width: 125px; height: 125px; }
    #materials_list_container li .material-img img { height: 125px; }
    #materials_list_container li .material-lead { max-height: calc(4 * 19px); }
}

@media (max-width: 399.98px) {
    #materials_list_container li .material-lead { max-height: calc(3 * 19px); }
}