.mpopup {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}
.mpopup-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 60%;
    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
}

.mpopup-head {
    padding: 2px 16px;
    /*background-color: #ff0000;*/
    color: #000;
}
.mpopup-main {padding: 2px 16px;}
.mpopup-foot {
    padding: 2px 16px;
    color: #000;
    text-align: right;
    font-style: italic;
    margin-bottom:10px;
}

/* add animation effects */
@-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}
}

/* close button style */
.close {
    color: #000;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover, .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}


@media screen and (min-width: 320px)and (max-width: 600px) {

.mpopup-content  {


      width: 100%;
      margin: 2% auto;
      padding: 5px;
  }


}

@media screen and (min-width: 601px) and (max-width:1024px){
  .mpopup-content{

      width: 100%;
      margin: 3% auto;
      padding: 5px;
  }


  }
