

.modal {
    display :block;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: scroll;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #f4f4f4;
    margin: 5% auto;
    width: 60%;
    box-shadow: 0 5px 8px 0px rgba(0, 0, 0, 0.2), 0 7px 20px 0px rgba(0, 0, 0, 0.17);
    animation-name: modalopen;
    animation-duration: 1s;
}

.modal-header h2, .modal-footer h3 {
    margin: 0;
}

.modal-header {
    background: #337ab7;
    padding: 15px;
    color: #fff;
}

.modal-body {
    padding: 10px 20px;
}

.modal-footer {
    background: #f8f8f8;
    padding: 15px;
    color: #fff;
    text-align: center;
}

.closeBtn {
    color: #fff;
    float: right;
    font-size: 30px;
}

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

@keyframes modalopen {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}
@media only screen and (max-width: 640px) {
    .modal-content {
        background-color: #f4f4f4;
        margin: 5% auto;
        width: 95%;
        box-shadow: 0 5px 8px 0px rgba(0, 0, 0, 0.2), 0 7px 20px 0px rgba(0, 0, 0, 0.17);
        animation-name: modalopen;
        animation-duration: 1s;
    }

    .modal-header {
        background: #337ab7;
        padding: 5px;
        color: #fff;
    }

    .modal-body {
        padding: 5px 5px;
    }
}

