/*<!-- This is a button toggling the modal -->*/
/*<button uk-toggle="target: #my-id" type="button"></button>*/

/*<!-- This is the modal -->*/
/*<div id="my-id" uk-modal>*/
/*    <div class="uk-modal-dialog uk-modal-body">*/
/*        <h2 class="uk-modal-title"></h2>*/
/*        <button class="uk-modal-close" type="button"></button>*/
/*    </div>*/
/*</div>*/

.brc-modal {
    position: fixed;
    display: block;
    z-index: 9996;
    display: none;
}

.brc-modal:target, .brc-modal.visible {
    display: block;
}

.brc-modal:after {
    position: fixed;
    background: rgba(0,0,0,.5);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9997;
}

.brc-modal > .brc-modal-in {
    position: fixed;
    padding: 5px;
    min-width: 300px;
    min-height: 300px;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    background: #fff;
    z-index: 9998;
    max-width: 95%;
    max-height: 95%;
    border-radius: 5px;
}

.brc-modal-close {
    float: right;
}

.brc-modal > .brc-modal-in > header,
.brc-modal > .brc-modal-in > footer,
.brc-modal-body {
    padding: 5px;
}

.brc-modal > .brc-modal-in > footer {
    height: 62px;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
}

.brc-modal > .brc-modal-in {
    padding-bottom: 62px;
    overflow: hidden;
    height: 100%;
}

.brc-modal-body {
    overflow: auto;
    height: calc(100% - 62px);
}