.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    opacity: 0;
    -webkit-transition: opacity .3s ease;
            transition: opacity .3s ease;
    -webkit-overflow-scrolling: touch;
            overflow-x: hidden;
            overflow-y: auto;

    outline: 0;
    z-index: 1050;
    background: rgba(0,0,0,.5);
}
.modal.hide { display: none; }
.modal.fade { opacity: 1; }

.modal-dialog {
    margin: 30px auto;
    opacity: 0;
    transform: scale(.95);
    -webkit-transition: opacity .3s ease, transform .3s ease;
            transition: opacity .3s ease, transform .3s ease;
}
.modal.fade > .modal-dialog {
    opacity: 1;
    transform: scale(1);
}



.modal-content {
    position: relative;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 6px;
    outline: 0;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
    box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
}
.modal-header {
    min-height: 16.42857143px;
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
}
.modal-header .close {
    float: right;
    margin-top: -2px;
    padding: 0;

    color: #000;
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
    text-shadow: 0 1px 0 #fff;

    -webkit-appearance: none;
            appearance: none;
    border: 0;
    opacity: .2;
    cursor: pointer;
    background: transparent;
}
.modal-header .close:hover,
.modal-header .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    opacity: .5;
}

.modal-title {
    margin: 0;
    line-height: 1.42857143;
}
.modal-body {
    position: relative;
    padding: 15px;
}
.modal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;

    padding: 12px 15px 24px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
}
.modal-footer .btn + .btn {
    margin-bottom: 0;
}
.modal-footer .btn {
    margin-top: 12px;
    font-size: 0.9em;
}
.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

@media (min-width: 768px) {
    .modal-dialog {
        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-footer:after {
        clear: both;
    }
    .modal-content {
        border-radius: 0;
    }
    .modal-header .close {
        font-size: 1.8em;
    }
}

.modal-title {
    text-transform: uppercase;
    font-size: 1.5em;
    font-weight: normal;
    letter-spacing: 0.4px;
}
.modal-body {
    padding: 0;
}
.modal-text {
    margin: 20px 30px;
    color: #2D2D2D;
    font-size: .94em;
    line-height: 21px;
    letter-spacing: -0.3px;
}
.modal-body .modal-text p {
    margin-top: 0;
    margin-bottom: 1em;
}
.modal-works {
    font-size: 0.68em;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    color: #fff;
    margin: 25px 20px;
}
.modal-works span {
    background-color: #3399ff;
    padding: 5px 10px;
}
.modal-works span:not(:last-child) {
    margin-right: 6px;
}
.modal-works span.status-finished {
    background-color: #33cc33;
    margin-right: 15px;
    padding: 5px 10px;
}
.modal-works span.status-inprogress {
    background-color: #fec503;
    margin-right: 15px;
    padding: 5px 10px;
}
.modal-works span.status-notstarted {
    background-color: #cc0000;
    margin-right: 15px;
    padding: 5px 10px;
}
.img-responsive {
    max-width: 100%;
    height: auto;
}
b {
    font-weight: bold;
}

.btn {
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 100;
    user-select: none;
    text-decoration: none;
    -webkit-transition: background-color ease 0.5s;
            transition: background-color ease 0.5s;
}
.btn:not(:first-child) {
    margin-left: 12px;
}
.btn-primary {
    font: inherit;
    color: #fff;
    background-color: #337ab7;
}
.btn-primary:hover {
    background-color: #1d4e79;
}
.btn-secondary {
    font: inherit;
    color: #fff;
    background-color: #212a38;
}
.btn-secondary:hover {
    background-color: #0d1117;
}
.btn-disable {
    color: #333;
    background-color: #ccc;
}
.btn-disable:hover {
    background-color: #888;
}