.j-outer-container {
    display: none;
    width: 100%;
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    transition: 2s;
    overflow-y: auto;
    overflow-x: hidden;

}

.j-outer-container .modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    border: 1px solid rgb(177, 176, 176);
    width: 60%;
    border-radius: 3px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: janimatetop;
    animation-duration: .4s;
    position: relative; 
    overflow: auto;
}

@keyframes janimatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
  }
  
  @media screen and (max-width: 900px) {
    .j-outer-container .modal-content {
        width: 70%;
        margin: 15% auto;
    }
}

@media screen and (max-width: 500px) {
    .j-outer-container .modal-content {
        width: 80%;
    }
}

