.window {
    border: 1px solid #ccc;
    position: absolute;
    z-index: 1000;
    border-radius: 3px;
    box-sizing: border-box;
    transform: scale(1);
}

    .window:not(.window_no_animation):not(.window_moving) {
        transition: transform 0.2s, width 0.1s, height 0.1s, left 0.02s, right 0.02s;
    }

    .window * {
        position: relative;
        box-sizing: border-box;
    }

    .window.window_alway_on_top {
        z-index: 10;
    }

        .window.window_alway_on_top.window_selected {
            z-index: 11;
        }

    .window .window_bar {
        border-bottom: 1px solid #ccc;
        background-color: #eee;
        height: 2.5em;
        border-radius: 3px;
    }

    .window .window_bar, .text_not_selectable {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

        .window .window_bar > * {
            display: inline-block;
        }

        .window .window_bar * {
            transition: all 0.2s;
        }

        .window .window_bar .window_icon {
            margin: 0 10px;
            text-align: center;
            vertical-align: middle;
            cursor: pointer;
        }

        .window .window_bar .window_title {
            cursor: default;
            padding: 5px;
            overflow: hidden;
            max-width: calc(100% - 50px);
            vertical-align: middle;
            right: 50px;
            color: #fff;
            font-size: 14px;
        }

        .window .window_bar .window_toggle_buttons {
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            vertical-align: top;
            margin-left: 10px;
            z-index: 2;
        }

            .window .window_bar .window_toggle_buttons:after {
                clear: both;
            }

            .window .window_bar .window_toggle_buttons > * {
                padding-top: 3px;
                /*padding-bottom: 5px;*/
                width: 30px;
                text-align: center;
                cursor: pointer;
                height: 100%;
                overflow: hidden;
                display: inline-block;
                font-size:large;
            }

                .window .window_bar .window_toggle_buttons > *:hover {
                    background-color: #ccc;
                }

    .window.window_not_maximizable .window_button_toggle_maximize, .window.window_not_minimizable .window_button_minimize {
        display: none;
    }

    .window .window_bar .window_toggle_buttons .window_button_close:hover {
        background-color: #ccc;
    }

    .window .window_content {
        overflow: auto;
        background-color: #fff;
        position: absolute;
        top: 2em;
        right: 0;
        left: 0;
        bottom: 0;
    }

    .window.window_maximized:not(.window_minimized) {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .window.window_minimized {
        transform: scale(0);
    }

    .window.window_hidden {
        display: none;
    }

    .window.window_selected {
        -webkit-box-shadow: 0px 0px 17px -4px rgba(0,0,0,0.73);
        -moz-box-shadow: 0px 0px 17px -4px rgba(0,0,0,0.73);
        box-shadow: 0px 0px 17px -4px rgba(0,0,0,0.73);
        z-index: 1001;
    }

        .window.window_selected .window_bar {
            background-color: #579;
        }

            .window.window_selected .window_bar .window_toggle_buttons .window_button_close:hover {
                background-color: #f12;
                color: #fff;
            }

    .window.window_maximized .window_resize_handle, .window.window_not_resizable .window_resize_handle, .window.window_resizing .window_resize_handle {
        display: none;
    }

    .window .window_resize_handle {
        position: absolute;
        display: block;
        opacity: 0;
    }

    .window .window_resize_handle_n, .window_resize_handle_s {
        height: 10px;
        left: 0;
        right: 0;
    }

    .window .window_resize_handle_w, .window .window_resize_handle_e {
        width: 10px;
        top: 0;
        bottom: 0;
    }

    .window .window_resize_handle_n, .window .window_resize_handle_ne, .window .window_resize_handle_nw {
        top: -10px;
    }

    .window .window_resize_handle_s, .window .window_resize_handle_se, .window .window_resize_handle_sw {
        bottom: -10px;
    }

    .window .window_resize_handle_w, .window .window_resize_handle_sw, .window .window_resize_handle_nw {
        left: -10px;
    }

    .window .window_resize_handle_e, .window .window_resize_handle_ne, .window .window_resize_handle_se {
        right: -10px;
    }

    .window .window_resize_handle_ne, .window .window_resize_handle_se, .window .window_resize_handle_sw, .window .window_resize_handle_nw {
        width: 10px;
        height: 10px;
    }

    .window.window_bar_hidden .window_bar {
        display: none;
    }

    .window.window_bar_hidden .window_content {
        top: 0;
    }

    .window .window_body {
        height: calc(100% - 30px);
        width: 100%;
        padding: 0px;
        background-color: #ddd;
        border-radius: 3px;
    }

        .window .window_body > iframe {
            border: 0;
            border-radius: 3px;
        }

.window_back {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000;
    opacity: 0.3;
}
.window_button_close {
    background-color: #f12;
    border-radius: 3px;
    font-weight:600;
}
/*@media screen and (max-width: 767px) {
    .window_button_close {
        background-color: #f12;
        border-radius: 3px;
    }
}*/