.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 40px;
    border-radius: 10px;
    width: 60%;
    position: relative;
    text-align: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

@media (min-width:320px) and (max-width:767px) {
    .modal-content {
        background-color: white;
        margin: 2% auto;
        padding: 20px!important;
        border-radius: 10px;
        width: 90%!important;
        position: relative;
        text-align: center;
        z-index: 99999!important;
    }

}