/* The Modal (background) */
.modal,
[modal] {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 600;
    /* Sit on top */
    padding: 15vh 10vw 5em 10vw;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    _min-width: 800px;
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content */
#modalContent,
[modal_content] {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: animate_down;
    animation-duration: 0.3s;

}

.modal[locked] {
    background-color: rgba(100, 100, 100, .85);
    /* Black w/ opacity */
}

.modal[locked] #modalContent,
.modal[locked] [modal_content] {
    opacity: .7;

}



[andown] {
    animation-name: animate_down;
    animation-duration: .3s;
}


@keyframes animate_down {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

[anm_up] {
    animation-name: animate_up;
    animation-duration: .5s;
    animation-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95)
}

@keyframes animate_up {
    from {
        top: 0px;
        opacity: 0
    }

    to {
        top: -500px;
        opacity: 1
    }
}

/* The Close Button */
#modalCloseBtn {
    color: #ccc;
    float: right;
    font-size: 1.5em;
}

#modalCloseBtn:hover,
#modalCloseBtn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#modalHeader {
    padding: 1em;
    color: white;
}

#modalTitle {
    width: 75%;
    display: inline-block;
    /* position: absolute; */
    margin-top: 0.3em;
    margin-left: 1em;
    color: #152378;
    font-weight: bold;
    font-size: 1.3em;
    /*text-align: center;*/
}

#modalBody {
    margin: 0 1em;
}

#modalBody input,
#modalBody select,
#modalBody textarea {
    margin-top: 0;
    /* line-height: 1.2em; */
}

#modalBody textarea {
    /*min-height: 2em;*/
}

#modalFooter {
    text-align: right;
    height: 80px;
    padding: 25px 25px;
    color: white;
}

.modalBtn {
    user-select: none;
    color: white;
    background-color: #337ab7;
    padding: 6px 15px;
    margin-left: .5em;
    border: 1px solid white;
    border-radius: 4px;
    padding: 6px 15px;
    -webkit-transition-duration: 0.1s;
    transition-duration: 0.1s;
}

.modalBtn:active {
    outline: none;
    border: none;
}

.modalBtn:focus {
    outline: 0;
}

.modalBtn:hover {
    border: 1px solid #bbb;
}

.modalBtnDanger {
    color: white;
    background: #e2373f;
}

.modalBtnPrimary {
    color: white;
    background: #2f98b7;
}

.modalLabel {
    vertical-align: middle;
    font-weight: normal;
    font-family: monospace;
    font-size: .9em;
    color: gray;
    /*margin-right: 1em;*/
}

[blinded=not-menu] [view_placing_reference] {
    z-index: 601 !important;
}

.modal table[simple] th {
    background: #dbdbdb;
}