.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 99; /* Sit on top */
    padding-top:10%; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    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 {
    z-index: 999999999;
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 380px;
    height: 310px;
    /*box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);*/
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

.close {
    position: absolute;
    color: Red;
    right: 30px;
    top: 10px;
    font-size: 30px;
    font-weight: bold;
    z-index: 999999999;
}

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

.modal-header {
    padding: 0px 16px;
    background-color: #027ac4;
    color: white;
}

.modal-body {
    position:absolute;
    padding: 0;
    overflow: hidden
}
.modal-bodyici {
    padding:30px;
    font-family:Verdana;font-size:30px;
    display: flex;
    align-items: center;
    justify-content: center
}

    .modal-body img {
        width:100%;
    }

.modal-footer {
    padding: 2px 14px;
    background-color: Green;
    color: white;
}

@media (max-width: 768px) {

    .modal-content {
        width: 90%;
        height: 310px;
    }

    .close {
        right:47%;
        top: auto;
        bottom:-8px;
        z-index: 999999999;
    }

    .modal {
        padding-top: 25%;
    }
}



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

    to {
        top: 0;
        opacity: 1
    }
}

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

    to {
        top: 0;
        opacity: 1
    }
}
