/* Add animation (Chrome, Safari, Opera) */
@-webkit-keyframes ef_modal_alerta {
    from {top:-100px;opacity: 0;}
    to {top:0px;opacity:1;}
}

/* Add animation (Standard syntax) */
@keyframes ef_modal_alerta {
    from {top:-100px;opacity: 0;}
    to {top:0px;opacity:1;}
}

/* The modal's background */
.modal {
    /*display: none;*/
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);    
    justify-content: center;
    /*align-items: center;*/
    display: none;

}

.modal #body_modal {
    padding: 2px 0px;
    height: calc(100% - 49px);
    background: #f7f7f7;
    overflow: auto;
    margin: 5px 1px !important;
}

.modal-center {
    /*display: none;*/
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    display: flex;



}

/* Display the modal when targeted */
.modal:target {
    display: table;
    position: absolute;
}

/* The modal box */
    .modal-dialog-css {
        /*
        display: table-cell;
        vertical-align: middle;
        width: 100%;
        display: inline;
        */
        vertical-align: middle;
        width: 100%;
        height: 100%;
    }

@media (max-width: 750px){
    .modal-dialog-css .modal-content-css {
        height: 100%;
    }
}

/* The modal's content */
.modal-dialog-css .modal-content-css {
    margin: auto;
    background-color: #f3f3f3;
    position: relative;
    padding: 0;
    outline: 0;
    border: 1px #777 solid;
    text-align: justify;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

    /* Add animation */
    -webkit-animation-name: ef_modal_alerta; /* Chrome, Safari, Opera */
    -webkit-animation-duration: 0.5s; /* Chrome, Safari, Opera */
    animation-name: ef_modal_alerta;
    animation-duration: 0.5s;
    border-radius: 8px;
}

@media (min-width: 750px){

    .modal{
        padding-top: 20px;
    }

    .modal-dialog-css .modal-max1 {
        width: 95%;
        height: 98%;
    }

    .modal-dialog-css .modal-max2 {
        width: 90%;
        height: 98%;
    }

    .modal-dialog-css .modal-max3 {
        width: 88%;
        height: 98%;
    }

    .modal-dialog-css .modal-med1 {
        width: 70%;
        height: 98%;
    }

    .modal-dialog-css .modal-med2 {
        width: 70%;
        height: 98%;
    }

    .modal-dialog-css .modal-med3 {
        width: 70%;
        height: 98%;
    }

    .modal-dialog-css .modal-peq1 {
        width: 50%;
        height: 50%;
    }

    .modal-dialog-css .modal-peq2 {
        width: 50%;
        height: 50%;
    }

    .modal-dialog-css .modal-peq3 {
        width: 50%;
        height: 50%;
    }

    .modal-dialog-css .modal-min1 {
        width: 40%;
        height: 30%;
    }

    .modal-dialog-css .modal-min2 {
        width: 40%;
        height: 30%;
    }

    .modal-dialog-css .modal-min3 {
        width: 40%;
        height: 30%;
    }
}

@media (min-width: 750px){
    .modal-dialog-css .modal-med1 {
        width: 98%;
        height: 98%;
        max-width: 1075px;
    }
}

@media (max-width: 750px){

    .modal{
        padding: 10px;
    }
    .modal-dialog-css .modal-max1, .modal-peq1, .modal-med1 .modal-max2, .modal-peq2, .modal-med2 .modal-max3, .modal-peq3, .modal-med3{
        width: 95%;
        height: 98%;
    }
    .modal-dialog-css .modal-min{
        width: 90%;
        max-height: 50%;
    }
}

/* The button used to close the modal */
.modal .closebtn {
    text-decoration: none;
    float: right;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin: -8px 3px 0 0;
}

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

.modal .container-cad {
    padding: 2px 11px;
    height: calc(100% - 78px);
    background: #f7f7f7;
    overflow: auto;
}

.modal .container {
    padding: 2px 0px;
    height: calc(100% - 49px);
    background: #f7f7f7;
    overflow: auto;
}

.modal header {
    font-size: 25px;
    height: 40px;
    background: #7891a1; 
    padding: 5px 5px; 
    color: #fff; 
    border: 2px solid;
    border-radius: 7px 7px 0px 0px;
}

.modal footer {
    position: relative;
    padding: 4px 7px;
    background-color: #e9e9e9;
    font-size: 20px;
    color: white;
    /*position: absolute;*/
    width: -webkit-fill-available;
    bottom: 0px;
    border-radius: 0 0 7px 6px;
    height: 38px;
}





.modal-header {
    background: #7891a1;
    padding: 5px 5px;
    color: #fff;
    border: 2px solid;
    border-radius: 7px 7px 0px 0px;
    height: 36px;
}

.modal-title {
    /* float: left; */
    /* font-size: 18px; */
    /* font-weight: 300; */
    /* margin: 0; */
}
.modal-title {
    margin: 0;
    line-height: 1.42857143;
}
.modal-title {
    float: left;
    font-size: 18px;
    font-weight: 300;
    margin: 0;
}
