.modal-open {
    height: 100%;
    /*overflow: hidden;*/
    /*position: fixed;*/
    width: 100%;
}

body.modal-open {
    height: 100%;
    /*position: fixed;*/
    /*overflow: hidden;*/
    width: 100%;
}

.modal-fullsize {
    bottom: 0;
    left: 0;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 0;
}

.modal-dialog-fullsize {
    height: 100%;
    margin: 0;
    padding: 0;
    position: fixed;
    width: 100%;
}

.modal-content-fullsize {
    -webkit-background-clip: padding-box;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
    background-clip: padding-box;
    background-color: #fff;
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 6px;
    bottom: 0;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
    left: 0;
    outline: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.modal-header-fullsize {
    border-bottom: 1px solid #e5e5e5;
    height: 32px;
    left: 0;
    padding: 10px;
    position: absolute;
    right: 0;
    top: 0;
}

.modal-header-fullsize .close {
    background: none;
    border: none;
    float: right;
    margin-top: -2px;
}

.modal-title-fullsize {
    color: #fff;
    font-size: 2em;
    font-weight: 300;
    line-height: 30px;
}

.modal-body-fullsize {
    -webkit-overflow-scrolling: touch;
    bottom: 60px;
    font-weight: 300;
    overflow: auto;
    position: absolute;
    top: 53px;
    width: 100%;
}

.modal-footer-fullsize {
    border-top: 1px solid #e5e5e5;
    bottom: 0;
    height: 60px;
    left: 0;
    padding: 0px;
    position: absolute;
    right: 0;
    text-align: right;
}

.modal-footer-fullsize .btn + .btn {
    margin-bottom: 0;
    margin-left: 5px;
}

.modal-footer-fullsize .btn-group .btn + .btn { margin-left: -1px; }

.modal-footer-fullsize .btn-block + .btn-block { margin-left: 0; }



.modal {
    -webkit-overflow-scrolling: touch;
    bottom: 0;
    display: none;
    left: 0;
    outline: 0;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 10px; /*235*/
    z-index: 1050;
}

.modal.fade .modal-dialog {
    -ms-transform: translate(0, -25%);
    -o-transform: translate(0, -25%);
    -o-transition: -o-transform .3s ease-out;
    -webkit-transform: translate(0, -25%);
    -webkit-transition: -webkit-transform .3s ease-out;
    transform: translate(0, -25%);
    transition: transform .3s ease-out;
}

.modal.in .modal-dialog {
    -ms-transform: translate(0, 0);
    -o-transform: translate(0, 0);
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal-dialog {
    margin: 10px;
    position: relative;
    width: auto;
}

.modal-content {
    -webkit-background-clip: padding-box;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
    background-clip: padding-box;
    background-color: #fff;
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 6px;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
    outline: 0;
    position: relative;
}

.modal-backdrop {
    background-color: #000;
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1040;
}

.modal-backdrop.fade {
    filter: alpha(opacity=0);
    opacity: 0;
}

.modal-backdrop.in {
    filter: alpha(opacity=50);
    opacity: .2;
}

.modal-header {
    border-bottom: 1px solid #efefef;
    padding: 15px;  
}

.modal-header .close {
    background: none;
    border: none;
    float: right;
    margin-top: -2px;
}

.modal-title {
    font-size: 13px;
    line-height: 1.42857143;
    margin: 0;
    text-align: center;
}

.modal-body {
    padding: 15px;
    position: relative;
}

.modal-footer {
    border-top: 1px solid #e5e5e5;
    padding: 15px;
    text-align: right;
}

.modal-footer .btn + .btn {
    margin-bottom: 0;
    margin-left: 5px;
}

.modal-footer .btn-group .btn + .btn { margin-left: -1px; }

.modal-footer .btn-block + .btn-block { margin-left: 0; }

.modal-scrollbar-measure {
    height: 50px;
    overflow: scroll;
    position: absolute;
    top: -9999px;
    width: 50px;
}

@media (min-width: 768px) {
    .modal-dialog {
        margin: 30px auto;
        width: 600px;
    }

    .modal-content {
        -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
        box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
    }

    .modal-sm { width: 300px; }
}

@media (min-width: 992px) {
    .modal-lg { width: 900px; }
}

.modal-header:before,
.modal-header:after,
.modal-footer:before,
.modal-footer:after {
    content: " ";
    display: table;
}

.modal-header:after,
.modal-footer:after { clear: both; }

.glyphicon-modal-window:before { content: "\e237"; }

.btn-primary {
    border-radius: 5px;
    padding: 5px 15px;
}